START:
;29ms+8cycles
CLRW
MOV A, #00001011B ;WDT=29MS*8 00001000B:--WDT=29MS*1
MOV OPTION,A
MOV A,#10010000B
MOV SYSCLK,A
CLRW
;
JSR $1FE
MOV OC,A
;
MOV A,#11110000B ; PA[7-4] INPUT PULL-UP
MOV PAPU,A ;
CLR PAW
CLR PBW
MOV A,#0FFH ; PB[7:0]INPUT PULL-UP
MOV PBPU,A ;
MOV PBK,A ;PB[7-0]
MOV A,#01110000B
MOV PAK,A ;PA[6-4]
谁能帮看看怎么看的? 新人该怎么快速入门 |