请教高手: 我用PIC12F675,想用它的I/O弱上拉 我把端口设成输入模式:TRISO(85H)=0X3FH 打开弱上拉位: WPU(95H)=0X3FH 开使能:OPTION_REG(81H)=0X07H 置位:GPIO(05H)=0XFFH 关模拟:ANSEL(9FH)=0X00H;CMCON(19H)=0X07H
MOVLW 07H MOVWF 19H BSF 03H, 5 CLRF 1FH MOVLW 3FH MOVWF 05H BCF 01H, 7 MOVLW 3FH MOVWF 15H BCF 03H, 5 MOVLW 3FH MOVWF 05H COMF 05H, 1 GOTO $-1 END
我主要是想要GP0/GP1/GP2 有弱上拉.可怎么都看不到想要的结果! 请各位大侠指教! 谢谢! |