I am trying to write a code to double frequency of bus clock. Here is what I have:
I am really unsure about it. All I know is that the steps are to turn PLL on and provide appropriate status to SYNR and REFDV. I think I did that, but I feel like it is wrong...
Rich (BB code):
PROGRAM_ADD EQU $0800
PLLCTL EQU $003A
CLKSEL EQU $0039
SYNR EQU $0034
REFDV EQU $0035
FREQUENCY_ADD EQU $0900
ORG FREQUENCY_ADD
SYN_MULT DB $0
REF_DV DB $1
ORG PROGRAM_ADD
BSET PLLCTL,$01000000 ;turn PLL on
MOVB SYN_MULT,SYNR
MOVB REF_DV,REFDV
SWI