Pages: [1]   Go Down
Author Topic: Can you use txd and rxd as digital input/outputs  (Read 1423 times)
0 Members and 1 Guest are viewing this topic.
uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

just wondering if you can use pins, 2,3 (txd, and rxd) as input/outputs or are they simply used for transmitting/recieving data? im sure thay are just want to be sure, they are marked up as IO1 and Io2 on the circuit diagram.

thank you
« Last Edit: April 29, 2012, 11:05:36 am by jonisonvespa » Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 95
Posts: 4089
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

They can operate as GPIO pins as well as serial I/O, just not at the same time smiley
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 221
Posts: 13848
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yes, but you prob mean pin 0 and 1 ?

but you cannot use them when you also use them as serial.

you can also use 1 pin e.g. serial out for serial (e.g. msg to PC) and the other as a digital IO .
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok thanks for the info just wanted to be sure.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 495
Posts: 19040
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Be aware that there is a pull-up from the USB driver chip, through the 1K resistors connecting pins 0 and 1 to it. If you try to use them as inputs (particularly Rx I think) there will be a voltage on it/them.
Logged


Pages: [1]   Go Up
Jump to: