Shop OBEX P1 Docs P2 Docs Learn Events
TTL Serial Details — Parallax Forums

TTL Serial Details

william chanwilliam chan Posts: 1,326
edited 2008-09-12 05:15 in General Discussion
I have heard that for Inverted Logic, idle is at low.
Does this mean that the Start Bit for Inverted Logic is high ( logic 0 ) ?

Does this also mean that for True Logic, idle is high? and Start Bit is low ( logic 1) ?


Is the Stop Bit always equal to the idle level?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2008-09-12 01:04
    Rightwise, in RS232, idle is a negative voltage, the start bit is a positive voltage and the stop bit is a negative voltage.

    "Ideally", TTL would interface with a MAX232 (or similar), which is an inverter.

    So, TTL, in this situation, would have idle a positive, the start bit is 0V, and the stop bit is 0V.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-09-12 01:50
    william chan said...(trimmed)
    Does this mean that the Start Bit for Inverted Logic is high ( logic 0 ) ?
    Does this also mean that for True Logic, idle is high? and Start Bit is low ( logic 1) ?
    William, did you mean Logic high is logic 1 and logic low is logic 0?· They look backward to me.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • william chanwilliam chan Posts: 1,326
    edited 2008-09-12 02:04
    Sorry,
    Somebody said...

    Does this also mean that for True Logic, idle is high? and Start Bit is low ( logic 1) ?

    this one should read (logic 0).

    Does this mean that we should use Inverted logic for driving an IR transmission because idle is Low voltage leading to zero LED current? ( we don't want the IR LED to be continuously on when idle ).

    To receive such an IR transmission, should the receiver should be True Logic
    because most Sharp IR receivers pull the data pin low when receiving a 40Khz IR signal?

    I tried this but the receiver kept receiving wrong byte values.....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.fd.com.my
    www.mercedes.com.my
  • Mike GreenMike Green Posts: 23,101
    edited 2008-09-12 05:15
    Yes, the receive end should be true logic because the usual IR receivers are low true. The transmit end depends on how you're driving the IR LED. You should transmit the start bit and other zero bits and leave the IR LED off for idle.
Sign In or Register to comment.