Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Pages: [1]   Go Down
Author Topic: Can you use txd and rxd as digital input/outputs  (Read 1513 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: 97
Posts: 4118
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: 234
Posts: 14296
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
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 535
Posts: 19769
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

http://gammon.com.au/electronics
Please post technical questions on the forum - not by personal message. Thanks!

Pages: [1]   Go Up
Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Jump to: