[General] General Purpose Input Output(GPIO)

Status
Not open for further replies.

K Srinivas Pavan Kumar

Member level 3
Joined
Jun 20, 2015
Messages
66
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Visit site
Activity points
524
Hi,
How can we say that input pins are readable and output pins are both readable and writable in
Genearl Purpose Input/output(GPIO)
 

Doesn't matter what micro controller we are speaking about. It is true. Output stage is always latched and can be readed. In case of short circuit output 1 will be readed as 0. Enabling pin to output means just hold one of two push-pull transistor opened. Also, pull-up and pull-down combination can be specified as a semi-output or e.t.c.
 

Every micro controller having internal pull-up resistors.
Depending on the direction register value the particular pin will acts as input or output.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…