Expanding powerswitch
Posted: Thu Nov 26, 2009 8:00 pm
Hi all,
I have finally succeeded in getting powerswitch to work for me. Now I am able to control outputs on ATmega8 via PC and get their status.
My question is, would it be possible to get status of some inputs as well?
I have DIP switches connected to PORT C (PC0 - PC5). I hope there is an easy way to do this.
These are my files I use:
http://leteckaposta.cz/312508205
the link leads to 3 files:
main.c - my code for AVR
powerSwitch.c - standard powerswitch application
AVR.pdf - schematics.
I have finally succeeded in getting powerswitch to work for me. Now I am able to control outputs on ATmega8 via PC and get their status.
My question is, would it be possible to get status of some inputs as well?
I have DIP switches connected to PORT C (PC0 - PC5). I hope there is an easy way to do this.
These are my files I use:
http://leteckaposta.cz/312508205
the link leads to 3 files:
main.c - my code for AVR
powerSwitch.c - standard powerswitch application
AVR.pdf - schematics.