problems changing clock multiplier to 4X on the DS80C400

"Koen Swinters" <[email protected]> Sun, 23 May 2004 09:48:40 +0200
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <000501c4409a$5df0f430$0302a8c0@mobiel>
Hello,

I'm trying to set the clock multiplier on 4x . For this I use the following
code:
;
; Multiply crystal frequency by 4
;
mov pmr, #10001000b ; Set for crystal * 4
mov pmr, #10011000b ; Enable multiplier
WaitCrystal:
mov a, exif ; Wait for multiplier to be ready
jnb acc.3, WaitCrystal ; Jump if CKRY is low
mov pmr, #00011000b ; Go to crystal * 4

I've also written a small test program to test the speed of the
DS80C400.this program just toggles a pin at full speed for a few msec with
disabled interrupts.
The axternal cristal frequency is 14.7456MHz.
Can someone tell my what is going wrong with changing the clock multiplier
to 4X and how i can solve this.

regards




_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini