RS232 addressing

pmciprian

Sep 3, 2011
1
Joined
Sep 3, 2011
Messages
1
Hello,

I would like to know if anyone could get me started on a project for designing a circuit that will check the first byte sent over RS232 and if it matches a set of dip switches, it will passthrough the rest of the RS232 signal to another controller, otherwise it will passthrough nothing. Any advice would be greatly appreciated.

Thanks
Phil
 

sid2286

Aug 24, 2011
102
Joined
Aug 24, 2011
Messages
102
Are your dip switches connected to certain port?
1.read the port status first.
2. Check the incomming byte from RS-232

using if condition or a while
eg

if(port_status==Incomming_byte)
{
pass to other controller;
}
else
{
do nothing;
}
 

OLIVE2222

Oct 2, 2011
690
Joined
Oct 2, 2011
Messages
690
Hi,

As RS232 is not intended to be chained you need to work on hardware side too.

here under a link to such an application:

http://www.weedtech.com/an100.pdf

having a µC with 2 UARTS (like the ATMEGA644P) will also be a solution

cheers,
Olivier
 
Top