Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: Admin 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)
-
Hmm, I'm no expert, but I found this:
http://ieeexplore.ieee.org/iel5/4234/20101/00929606.pdf
-
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.
-
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?
-
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.
-
Where did you find this in the datasheet (which section)?
-
http://www.atmel.com/dyn/resources/prod_documents/doc2486.pdf - page 242 - Electrical Characteristics