useful signal voltages for USART?


Closed Thread
Results 1 to 3 of 3
  1. #1

    Default useful signal voltages for USART?

    hi,

    I'm making use of serial interupts with the USART, and basing this on code found here:
    http://www.melabs.com/resources/samp...bp/serbufx.bas

    This has worked fine for me before, but now I have a different application. Incoming serial is at 57600 baud, with a default high of 3v dropping low during transmission. I'm not sure how low though! I'm assuming 0v - and though I don't have an osciliscope I see a dip in voltage on a mutlimeter happening where I would expect it to happen.

    My problem is that it's not low enough to trigger the hardware interrupt, let alone make any sense the incoming bytes. To test this, I put aside the USART routine, and created a loop looking for LOW on the PIN receiveing the incoming serial, it did not ever register LOW.

    So, can anyone help with this, and suggest what I might do to this signal to read the bytes?

    bests,
    Tobie

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Look in the Electrical Specifications section of the datasheet for the PIC you're using.

    If the USART RX pin is an ST Schmitt Trigger type, it's going to require signal levels
    somewhere from ground to 0.2 * Vdd for a logic low, and 0.8 * Vdd to Vdd for a logic
    1 level input.

    If your external device operates at 3V, and can't provide these logic level signals, you
    may need some kind of level shifting like a small signal transistor or FET between the
    two. Or just select a PIC that can operate from a 3V supply.

    Here's a nice Microchip app note with tips & tricks for 3.3V interfacing;
    http://www.microchip.com/stellent/gr...c/en026368.pdf

    Look at Figure 6-1 for a very simple 3.3V to 5V MOSFET translator. For non-inverting, just
    move the resistor/PIC input to the source side VS drain side.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Thanks for that Bruce, there is some useful detail in the document you pointed me to.

    I finally bought a USB oscilloscope, and low and behold the 3v IC is not actually sending any serial - so that solves that!

Similar Threads

  1. Replies: 24
    Last Post: - 1st December 2009, 08:01
  2. Measuring p-p of a 1.5v to 12v ac signal?
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th October 2009, 16:22
  3. Decoding an incoming infrared signal: need advice
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th May 2008, 16:28
  4. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  5. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36

Members who have read this thread : 1

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

Posting Permissions

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