Hi!
Could anyone help me to adopt ASM code to PIC12F675?
I have found, that it is required to modify start with next strings:
start
ORG 0x000 ; Coding begins here
bcf STATUS,RP0 ;Bank 0
clrf GPIO ;Init GPIO
movlw 07h ;Set GP<2:0> to
movwf CMCON ;digital IO
bsf STATUS,RP0 ;Bank 1
clrf ANSEL ;Digital I/O
movlw B'00011011' ;Set GP<4,3,1,0 > as inputs
movwf TRISIO ;and set GP<5,2> as outputs
Could anyone help me to adopt ASM code to PIC12F675?
I have found, that it is required to modify start with next strings:
start
ORG 0x000 ; Coding begins here
bcf STATUS,RP0 ;Bank 0
clrf GPIO ;Init GPIO
movlw 07h ;Set GP<2:0> to
movwf CMCON ;digital IO
bsf STATUS,RP0 ;Bank 1
clrf ANSEL ;Digital I/O
movlw B'00011011' ;Set GP<4,3,1,0 > as inputs
movwf TRISIO ;and set GP<5,2> as outputs