Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/02/07 03:57
Read: times


 
#138427 - Here's my 4X code in Assy....
Responding to: ???'s previous message
Ahmet,

Perhaps this may be of some help.


clock_mult:

; 	Init Default no multiplier

	MOV 	PMR,#080H 

; 	Wait for ring modulator to stop

wait_rgmd:
	MOV 	A,EXIF
	JB 	ACC.2,wait_rgmd

; 	Clear the CTM bit

	MOV 	PMR,#080H

; 	*** Must set XTAL multiplier prior to setting CTM ***

	MOV	PMR,#88H

;	*** Set CTM to latch crystal multiplier setting ***
	
	MOV 	PMR,#98H

;	*** Wait for CKRY, (EXIF.3) to set indicating at Freq ***

wait_ckry:
	MOV 	A,EXIF
	JNB 	ACC.3,wait_ckry

;	*** Set CTM, to enable crystal multiplier of @ rate of 4

	MOV	PMR,#10H
	ret


List of 2 messages in thread
TopicAuthorDate
Clock multiplier            01/01/70 00:00      
   Here's my 4X code in Assy....            01/01/70 00:00      

Back to Subject List