NURULHAIZA
- 11th May 2010, 09:57
hi,
i'm currently working on a project dealing with PIC16f886,xbee and also LCD. the problem is, i need to display my data received from a sensor node in lcd. here i provide u with the TX and RX code.
TX code:
@ device hs_osc
define OSC 20
dta var word
dta=83
main:
High PORTB.0
pause 50
serout2 PORTB.1, 84, ["A",dta]
low portB.0
Pause 50
goto main
end
RX code:
@ device hs_osc
define osc 20
dta var word
main:
high portb.0
pause 50
serin2 portc.7,84,[wait("A"),dta]
pause 50
serout2 portc.6,16468,[dta]
low portb.0
pause 50
goto main
from the above code, how can i display the characterS to LCD?
tq
i'm currently working on a project dealing with PIC16f886,xbee and also LCD. the problem is, i need to display my data received from a sensor node in lcd. here i provide u with the TX and RX code.
TX code:
@ device hs_osc
define OSC 20
dta var word
dta=83
main:
High PORTB.0
pause 50
serout2 PORTB.1, 84, ["A",dta]
low portB.0
Pause 50
goto main
end
RX code:
@ device hs_osc
define osc 20
dta var word
main:
high portb.0
pause 50
serin2 portc.7,84,[wait("A"),dta]
pause 50
serout2 portc.6,16468,[dta]
low portb.0
pause 50
goto main
from the above code, how can i display the characterS to LCD?
tq