GPIO Pin dead due to wrong DDR Register?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
Is it possible that an io pin dies if you set it as an Output, while an external switch forces it to direct GND?
I had the DDRx Rgister as Output and the PORTx to 1 (PullUp in case of Input).
The IO Pin does not act as output or input any more. The level is about 4,7V (VCC =5V), and does not change.
The other portpins on the same port are OK!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Possible and not to be recommended. Usually the port pin would survive such abuse but you may have damaged it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Mysterious things also happen if some of the power supply pins of the AVR are disconnected for some reason. All power supply pins (VCC, AVCC, GND, AGND) must be connected for proper operation.