TAQOZ sysclock confusion
Colin (bigtreeman) reported a possible problem with the KISS board. He says he can't get a stable system clock and as consequence serial communication and PWM/NCO outputs have problems due to clock jitter.
I don't think it is a hardware problem because when I setup the clock in Spin2 everything is working as expected.
CON _xtlfreq = 25_000_000 _clkfreq = 180_000_000 PUB go() pinstart (32, P_NCO_FREQ + P_OE, 1, $20000000)
outputs exactly 22.50MHz. However if I type the following in TAQOZ
25000000 CLKHZ 32 PIN $40000000 NCO
I only get 6.17 instead of 6.25MHz. The KISS board I'm using has a 25MHz instead of the standard 20MHz crystal. I think it's only a configuration or documentation misinterpretation problem. The official TAQOZ doc doesn't tell much about the CLKHZ command. What is the correct way to tell TAQOZ that there is a 25MHz crystal connected?