|
mov SFRPAGE, #000h
mov FLSCL, #00010000b ; FLASH Memory Control
mov SFRPAGE, #00Fh
mov OSCXCN, #01100110b ; EXTERNAL Oscillator Control Register
mov a,OSCXCN
jnb acc.7,$-2 ; ??????? ?????? ?????????? ? ?????
mov PLL0DIV, #6 ; PLL pre-divide Register
mov PLL0MUL, #50 ; PLL Clock scaler Register
mov PLL0FLT, #00011111b ; PLL Filter Register
mov PLL0CN, #00000101b ; PLL Control Register
mov b,#100
djnz b,$
mov PLL0CN, #00000111b ; PLL Control Register
mov a,PLL0CN
jnb acc.4,$-2
mov CLKSEL, #00000010b ; Oscillator Clock Selector
mov OSCICN, #0 ; Internal Oscillator Control Register
E-mail: info@telesys.ru