i have some problem copy a save temp data to PORTC
first:
BANKSEL RCSTA
movlw 0
movwf RCSTA
i will turn off serial port being use in PORTC.
second:
BSF STATUS,5
clrf TRISC
BCF STATUS,5
clrf PORTC
make the portc as output port.
e.g: already bit set bit0,1,2 then wanna store into a temp file register
temp inside value will be 0x7. which mean bit,0,1,2 will be in high stats
movf PORTC,W
movwf temp ; temp register
then for some reason want copy back to portc
movf temp,W
movwf PORTC
here the problem i faced, it gave me 0 value in PORTC.
Help Help Help
anyone know the problem here ? urgently
thank you
Bookmarks