go away spammer

Author Topic: resistors on tx/rx lines  (Read 5459 times)

0 Members and 1 Guest are viewing this topic.

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
resistors on tx/rx lines
« on: October 12, 2007, 07:08:40 AM »
this is mostly a stupid check for me . . .

I want to protect my tx/rx lines with resistors, so is this correct?

txA --- 1.18k resistor ---- rxB
rxA --- 1.18k resistor ---- txB
gndA ------------------------- gndB

anyone know how much current the UART for an ATmega needs? I couldn't find it on the datasheet, although Im sure its hidden somewhere in its 400+ pages of glory . . .

(and in case you were wondering, the 1.18k resistor was cheaper than the 1k resistor for 0402 smd)

Offline jsmoker

  • Full Member
  • ***
  • Posts: 118
  • Helpful? 2
Re: resistors on tx/rx lines
« Reply #1 on: October 12, 2007, 09:48:19 AM »
Hmm, I'm no expert, but I found this:

http://ieeexplore.ieee.org/iel5/4234/20101/00929606.pdf

Offline hgordon

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 373
  • Helpful? 7
    • Surveyor Robotics Journal
Re: resistors on tx/rx lines
« Reply #2 on: October 12, 2007, 01:15:44 PM »
I always use 2.7k resistors for i/o protection - that basically limits current to a bit more than 1mA on 3.3V circuits and a bit less than 2mA on 5V circuits, which puts things in the range that most microcontroller interfaces can handle.
Surveyor Corporation
  www.surveyor.com

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: resistors on tx/rx lines
« Reply #3 on: October 12, 2007, 02:02:19 PM »
Hmmmm Im assuming that the Rx/Tx lines on the connecting device (unknown at the moment) will also have protection resistors . . . any idea what the minimum allowable current is?

Offline hgordon

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 373
  • Helpful? 7
    • Surveyor Robotics Journal
Re: resistors on tx/rx lines
« Reply #4 on: October 12, 2007, 02:24:26 PM »
It looks like they have pretty good protection on their chips.  An ATmega8 data sheet shows 40mA current handling per i/o pin, and pull-up resistors are spec'd at 30-80kohm, which implies that minimum currents are in the ballpark of 0.1mA.
Surveyor Corporation
  www.surveyor.com

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: resistors on tx/rx lines
« Reply #5 on: October 12, 2007, 02:51:07 PM »
Where did you find this in the datasheet (which section)?

Offline hgordon

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 373
  • Helpful? 7
    • Surveyor Robotics Journal
Re: resistors on tx/rx lines
« Reply #6 on: October 12, 2007, 03:08:17 PM »
Surveyor Corporation
  www.surveyor.com

 


Get Your Ad Here

data_list