Author Topic: LED for TX and RX of MAX232N  (Read 5384 times)

0 Members and 1 Guest are viewing this topic.

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
LED for TX and RX of MAX232N
« on: November 29, 2012, 10:20:21 pm »
Hi all,

I have made a PC serial to CMOS level circuit (if this kind of circuit all called this!) using MAX232. It works fine, but I want to add 2 LEDs so I can see data going out or coming in to the chip. I want this to the CMOS level side of chip (T2IN and R2OUT pins).

Can I just hook up to LED's to this pins and ground? If not, what should I do? I looked in datasheet but didn't find anything on this regard.
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline digsys

  • Supporter
  • ****
  • Posts: 2209
  • Country: au
    • DIGSYS
Re: LED for TX and RX of MAX232N
« Reply #1 on: November 29, 2012, 11:13:20 pm »
Assuming a 5V system, use 2K2-2K5 resistors (~2mA) and "good" leds. 50-100mcd (or high efficiency). Similar price to "cheap" leds.
That way you won't load the signals at all. I wouldn't try to run 20mA on a standard led.
OR IF you are not using the other 2 channels on the MAX232, link the 2 pairs together and use the 2nd pair just for leds.
Hello <tap> <tap> .. is this thing on?
 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: LED for TX and RX of MAX232N
« Reply #2 on: November 29, 2012, 11:56:25 pm »
Thanks, got the idea.
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline aluck

  • Regular Contributor
  • *
  • Posts: 242
  • Country: ru
Re: LED for TX and RX of MAX232N
« Reply #3 on: November 30, 2012, 01:15:54 am »
Wouldn't it be better to put a small BJT to drive those LEDs?
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 2591
  • Country: us
  • Not An Expert
Re: LED for TX and RX of MAX232N
« Reply #4 on: November 30, 2012, 01:33:45 am »
Logic level FETs are great for this kind of stuff.  2N7002LT1 or something like that. 
 

Offline hlavac

  • Frequent Contributor
  • **
  • Posts: 536
  • Country: cz
Re: LED for TX and RX of MAX232N
« Reply #5 on: November 30, 2012, 05:39:36 pm »
If you want a nice visible indication even for a single bit you could build two pulse stretchers
from single 74hct00 chip.
Look at the right side of my logic probe schematic to see what I mean...

Good enough is the enemy of the best.
 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: LED for TX and RX of MAX232N
« Reply #6 on: December 04, 2012, 12:13:40 am »
Thanks for ideas!

I made the circuit. For TX/RX indicator LEDs I am facing a small or big problem! The CMOS level side of chip is always at 5v when idle. I connected a normal 5mm led to the GND and RX of cmos side and it is always on...when I send some data to chip, it slightly dims for a mili sec (I think it tries to show low bits !).

Any idea how to invert this process?
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline kxenos

  • Frequent Contributor
  • **
  • Posts: 284
  • Country: gr
Re: LED for TX and RX of MAX232N
« Reply #7 on: December 04, 2012, 12:31:21 am »
Connect the cathode of the LED to the signal and it's anode to Vcc.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf