Hello,
I am currently using a mc9s08qe128, I have it configured to use the FLL, the reference clock is set to the internal 32.768k. DRS = 00, DMX32 = 1, I should have a DCO frequency of 19.92Mhz. Every time I reset the board through P&E True-Time Sim, I get a differnt clock!
Frequency change to ~9491227hz.
Frequency change to ~9858172hz.
Frequency change to ~9832800hz.
Frequency change to ~9467767hz.
Why is this? Is this just the inaccuracy of the interal reference? My ICS setup rountine is:
ICSSetup:
lda #%00000111 ; FLL out sel'ed, 32.768k, int.ref. sel and EN'd,
sta ICSC1 ; Bus = div1, FEI Mode, Internal CLK
lda #%00001100
sta ICSC2
lda #%00110000 ; Low range, DMX32=1 => 19.92MHz Clock
sta ICSSC
rts
Thanks,
Adam
Added p/n to subject.