Microcontroller › AVR › how to take input › set DDRx regeister to set
February 4, 2011 at 6:58 am
#5409
Amit Joshi
Participant
set DDRx regeister to set i/o pin of ports.
For example DDRA=0xF0; //this shows PA0-PA3 are input pins and PA4-PA7 are ouput.