Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

help to use a wireless serial comm with TLP and RLP 315Mhz (from Laipac)

Status
Not open for further replies.

dzakriel

Junior Member level 3
Junior Member level 3
Joined
Oct 4, 2010
Messages
27
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,481
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.
 

intialise the serial communication
initialise which port u r using(out put/input)
transfer/receive data
wait for the interrupt
store SBUF in to some register
clear receive/tx flag

---------- Post added at 14:44 ---------- Previous post was at 14:41 ----------

org 0h
call initserial

mov p0,#0h ??????what it mean MAKE IT AS INPUT/OUTPUT PORT
mov a,#0h
;
Start:
jnb ri,$;

mov a,sbuf
clr ri
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.

I HOPE IT MAY WORK else contact back
 
hi embedded parter you quit good on describing the main progres of this operation, but the output is always full of noise so I can't tell which it is swhowin the data I send, with TLP or the noise. I use AT89S51 for recieve the data and Hyperterminal to send the data.
 

whether u have connected hyper terminal directly to controller and sending the data?

---------- Post added at 14:55 ---------- Previous post was at 14:49 ----------

i have written the code in c just check it

u may find the exact procesure
eventho if u r not .. contact
 

Attachments

  • serial communication.rar
    1 KB · Views: 180

well if i use regular transmission use RS232 only, the program (above) it went well. I mean correct. I only found problem when I use the wireless comm use this paired IC (TLP and RLP 315Mhz)
 

I only have two question for the code i just download from you,
1. why don't you describe the port for data Output when it's receive data?
2. can I download it to my MCU? my AT89S51?

by the way if don't reply again after this that means I already off. So I'm sorry, I really don't have any mean to be rude.
thank you.
 

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


if not then there is some problem with the receiver side try to kip devices near by n check ...........
 

Hi dzakriel,

Two suggestions; first, reduce your baud rate to 2400 (or even lower, if your requirement allows it).

Secondly, are you sure the polarity of your transmission isnt getting inverted at the output? If it is, try sticking in an NPN transistor as an inverter at the output of your transmitter.

Although this is for the Basic Stamp, not Atmel, it might be a good reference to start.

RF Remote Control For The BASIC Stamp

Regards,

Anand
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top