Expanding powerswitch

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
martinus.org
Posts: 5
Joined: Sun Nov 15, 2009 9:42 pm

Expanding powerswitch

Post by martinus.org » 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.

martinus.org
Posts: 5
Joined: Sun Nov 15, 2009 9:42 pm

Re: Expanding powerswitch

Post by martinus.org » Sat Nov 28, 2009 8:12 pm

OK, I have finally succeeded in reading the inputs as well, i is not very difficult, once I started to understand how V-USB works :-)

asafparis
Posts: 1
Joined: Tue Jan 26, 2010 9:30 am

Re: Expanding powerswitch

Post by asafparis » Tue Jan 26, 2010 11:16 am

The link to the files isn't working. ¿Could you post them again?

Thanks

Post Reply