signal too weak for RS232?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    3

    Default signal too weak for RS232?

    hi,

    i've got a simple PBPro routine to send basic ASCII commands via RS232 to another embedded device. i'm running a 12f675 at 4MHz (internal osc) and communicating at 300bps 8N2. everything is working properly - the LED blinks, LCD displays, and i've confirmed that a PC can see the ASCII as expected.

    my problem is that the other embedded device doesn't react to the PIC. if i send the same ASCII with my PC (same settings), the embedded device reacts. could it be that my PIC isn't putting out enough voltage? i'm not using anything to give true CMOS voltage levels - just 0 and +5V output. this has always been enough before on other projects, but this dude isn't responding.

    any similar experiences out there?

    thanks!
    Pat

  2. #2
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298

    Smile MAX232 translates...

    Quote Originally Posted by emptyset View Post
    hi,

    i've got a simple PBPro routine to send basic ASCII commands via RS232 to another embedded device. i'm running a 12f675 at 4MHz (internal osc) and communicating at 300bps 8N2. everything is working properly - the LED blinks, LCD displays, and i've confirmed that a PC can see the ASCII as expected.

    my problem is that the other embedded device doesn't react to the PIC. if i send the same ASCII with my PC (same settings), the embedded device reacts. could it be that my PIC isn't putting out enough voltage? i'm not using anything to give true CMOS voltage levels - just 0 and +5V output. this has always been enough before on other projects, but this dude isn't responding.

    any similar experiences out there?

    thanks!
    Pat
    Hi Pat,

    Welcome to the Forum.

    PIC = +5V or 0V (logic rs232)
    RS232 = +24V or -24V (real rs232)

    IC named MAX232 MAX233 translates logic 232 to real 232 both ways

    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073

    Default

    You don't need a MAX232 for PIC-to-PIC RS232 0-5V is adequate. All the MAX 232s will do is boost it and then drop it back to 0-5V on the other end.

    You need inverted RS232 between the PICs and the PC. PIC-to-PIC doesn't matter but both send/receive need to be the same, either inverted or non-inverted..

  4. #4
    Join Date
    Feb 2008
    Posts
    3

    Default thanks... the PC works but the other device doesn't

    thanks Adam and Dave for the quick response. i've used the MAX chips in the past but it is always easier to use inverted PIC-to-PC.

    the PC part is just fine. the other embedded device i'm speaking to won't respond, so i'm wondering if it is waiting for the 24V levels...

    i don't know what micro is in the device - maybe i'll open it up and see what is in there.

    does anyone know if the MAX232 chip can handle a 0-5V input properly? if embedded device has a MAX232 inside it, and my PIC is talking to the MAX part, will it read 5V as a "1" input?

    thanks again!
    Pat

  5. #5
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298

    Wink Here is where I would look...

    Max232 Data Sheet
    Found under:
    RS-232 RECEIVERS
    Input Threshold Low
    Input Threshold High
    Input Hysteresis
    -Adam-
    Ohm it's not just a good idea... it's the LAW !

Similar Threads

  1. Replies: 24
    Last Post: - 1st December 2009, 08:01
  2. Decoding an incoming infrared signal: need advice
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th May 2008, 16:28
  3. 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
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  5. Rc signal help
    By geckogrotto in forum mel PIC BASIC Pro
    Replies: 42
    Last Post: - 27th August 2006, 00:10

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