View previous topic :: View next topic |
Author |
Message |
Jonte Guest
|
OT: LED connected to UART pins |
Posted: Fri Nov 11, 2005 9:08 am |
|
|
Hi!
Sorry for this off-topic one, but I'm not sure where else to ask...
If I want two LEDs connected to the UART RX/TX pins for indication of trafic. Is it OK to connect with a resistor to the TTL line (before a 485 chip) or do I need a buffer like AC05 or simular? Runing at 3.3 volt if it makes any difference...
GreatfullApreciating any help.
/Jonte |
|
|
MikeValencia
Joined: 04 Aug 2004 Posts: 238 Location: Chicago
|
|
Posted: Fri Nov 11, 2005 9:21 am |
|
|
I have seen similiar applications where there are LEDs to indicate two motor encoder lines.
They definitely do not run it right through an LED as this would cause a significant voltage drop that the microcontroller might mis-interpret the logic levels.
So i think the answer to your question is: Don't distort the logic levels by running it thru an LED.
I don't know what buffer to use though. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Fri Nov 11, 2005 10:22 am |
|
|
Quote: | If I want two LEDs connected to the UART RX/TX pins for indication of trafic. Is it OK to connect with a resistor to the TTL line (before a 485 chip) or do I need a buffer like AC05 or simular? Runing at 3.3 volt if it makes any difference... |
Yes you can connect the LEDs directly to the TTL lines but keep the current consumption low (<5mA). This means your series resistor should be >= 300R _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Nov 11, 2005 11:41 am |
|
|
Quote: |
but keep the current consumption low (<5mA). This means your series resistor should be >= 300R |
3.3v / 300 ohms = 11 ma |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Fri Nov 11, 2005 12:00 pm |
|
|
(3.3V - Vled) / 300 <= 7mA |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Nov 11, 2005 1:03 pm |
|
|
You're right. |
|
|
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
RE |
Posted: Mon Nov 14, 2005 12:44 am |
|
|
Hi,
I have done something similar, but I used a 74123 for this purpose. With this IC you can actually see the LEDs flashing, this is otherwise not possible by just simply connecting the LED to the pins.
thanks
arunb |
|
|
|