I have very big problems to write the code to read a byte that arrives on port A (B3, for example) and display it on an LCD
I have a code they do but the assembler problemme is that there are n has not adapted Flowcode
Code: Select all
bits0
clrf codlue
movlw .8
movwf cmpt
;read 1 octet
lec_bit0
call clk
btfss PORTA,3
goto non
bsf STATUS,0
rlf codlue,f
decfsz cmpt,f
goto lec_bit0
goto wite_onEeprom
non
bcf STATUS,0
rlf codlue,f
decfsz cmpt,f
goto lec_bit0
clk
bsf PORTA,0
nop
bcf PORTA,0
nop
return
wite_onEeprom
movfw lencode
movwf EEADR
movfw codlue
movwf EEDATA
BANK1
bcf EECON1,EEIF
bsf EECON1,WREN
movlw 0x55
movwf EECON2
movlw 0XAA
movwf EECON2
bsf EECON1, WR
incf lencode
decfsz compt,f
goto bits0
please helpe to convert this code to flowcode because it a probleme on compilation to .hex