Connect with us

RS232 addressing

Discussion in 'Microcontrollers, Programming and IoT' started by pmciprian, Sep 3, 2011.

Scroll to continue with content
  1. pmciprian

    pmciprian

    1
    0
    Sep 3, 2011
    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
     
  2. sid2286

    sid2286

    102
    1
    Aug 24, 2011
    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;
    }
     
  3. OLIVE2222

    OLIVE2222

    690
    25
    Oct 2, 2011
    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
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-