dzakriel
Junior Member level 3
i use TLP and RLP 315Mhz produced by laipac to send and receive serial data. the plan is i send data from my PC use hyperterminal on Comport 1, then comport 1 connect to RS232, RxOut connect to TLP tx pin, then the data should be receive by my RLP that connected to my MCU and the data displayed to a LED Module. i use this line of program,
org 0h
call initserial
mov p0,#0h
mov a,#0h
;
Start:
jnb ri,$;
clr ri
mov a,sbuf
mov p0,a
sjmp Start
initserial:
mov scon,#50h;initialize serial mode 1
mov tmod,#20h;timer1 mode 2
mov th1,#0fdh;Reload value for baud rate 9600
setb tr1
ret
end
I only have test this program when I use RS232 connection but never work for wireless conection. can anybody help?
ow by the way I use AT89S51 MCU.
org 0h
call initserial
mov p0,#0h
mov a,#0h
;
Start:
jnb ri,$;
clr ri
mov a,sbuf
mov p0,a
sjmp Start
initserial:
mov scon,#50h;initialize serial mode 1
mov tmod,#20h;timer1 mode 2
mov th1,#0fdh;Reload value for baud rate 9600
setb tr1
ret
end
I only have test this program when I use RS232 connection but never work for wireless conection. can anybody help?
ow by the way I use AT89S51 MCU.