sir i connected a push button to pin 1^1Using WINAVR I used this:
PORTA = 0b10000000;
DDRA = 0b01111111;
DDRB = 0b00001000;
Where PORTA is the output of PORTA, and DDRA is the data direction register of Port A. On the AVR controllers setting a bit in data direction register to "1" causes the corresponding port pin to be an output.
sir i have attached the schematic diagram of my circuitThis looks like the blind leading the blind. Best to wait for somebody who understands your question.
|Thread starter||Similar threads||Forum||Replies||Date|
|Recurrent sound heard in a PC, every time audio is required.||Off-Topic||2|
|Dielectric absorption question||General Electronics Chat||20|
|G||WW2 Anti-Aircraft Gun Motor Guidance required.||Power Electronics||5|
|D||LM2567 Switching Regulator - Heat Sink required...?||Power Electronics||5|
|What Kind Of Screwdriver Tip Is Required Here?||Technical Repair||23|
by Jake Hertz