How to make RX and TX faster ?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Activity points
9,442
Friends,

I tried to interface serial RS232 as a transmitter (PC) and mcs51 as a receiver (RX) with 433Mhz, 2400 Baud,
MCS51 is receiving data I have sent, but the response is very slow, why is that ?
Can I put antenna to extend the distance ?

How can I put antenna ? and how can I make the response faster ?

In the receiver :
Code:
	switch(serial_char)
	       {
		   
				 case 'a': //forward car
				      forward_car();
					 delay_100(150);
					 
					 stop_car();
					 delay_100(150);
					 forward_car();
		             break;

I used these modules


currently I'm using putty for transmitting....
Any ideas ?

thanks
 

why are you using delay in a Switch Case ? if you know how switch Case works with static state Diagram you don't have to use delay. and Delay also block other function when it use delay function

I think that the transmitter has a limiter of bandwidth that why you can't send faster, but look in the data sheet. also the bandwidth formula if you can get the input amplitude smaller then the frequency modulation also will drop in FM mode
 

One of way is to use higher baud rate....as Ivan said ...remove all nu-necessary delay in your code ....Also optimization of code will help you bit ....

Good Luck
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…