Reverse polarity in Direct serial data


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,980

    Default Reverse polarity in Direct serial data

    I was struggling to get it right with direct serial data (no rs232 drivers etc).

    One PIC, a 16F1827, was set to transmit RS-232 serial at TTL level and the bit 4 of BAUDCTL was set for this. The output drives a ASK little transmitter with appropriate data to keep the DC level somewhere in the middle, so the receiver's data slicer can extract the data.

    The other PIC, a 16F886 was set to receive the data from the ASK receiver module and I was naive enough to trust that bit 4 of the famous BAUDCTL register was enough to get the job done.

    Three days to discover the little detail in the data sheet, that this little bit 4 inverts ONLY the data to be transmitted and NOT the incoming to RX pin.

    True, datasheet states that little phrase "transmit inverted data to RB7/TXCK pin" but was too careless to spot really see it. A simple inverter like a transistor or opamp will do the job but was happy to believe a bit 4 can save few parts here.

    Hope this helps others on this pitfall.

    Ioannis

  2. #2
    Join Date
    Aug 2011
    Posts
    439

    Default Re: Reverse polarity in Direct serial data

    If you have the pins available you could run the RX through the comparator to invert it.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,980

    Default Re: Reverse polarity in Direct serial data

    Never thought of that! Very good idea. A little bit of rearranging might do it.

    Thanks!

    Ioannis

Similar Threads

  1. Drawing a blank on trigger pin polarity
    By ERMEGM in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 23rd October 2013, 04:36
  2. usb to usb direct data transfer
    By sharath in forum USB
    Replies: 0
    Last Post: - 17th July 2011, 14:23
  3. How to reverse polarity on output pulse??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th June 2009, 14:25
  4. How do I detect a polarity change on an input?
    By jessey in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 29th May 2008, 00:25
  5. max232 vs direct serial
    By Peter1960 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th August 2005, 02:07

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts