Page 1 of 1

Porting powerswitch project to Atmega8

Posted: Mon Jul 09, 2007 11:51 am
by guzma
I've been trying to port the powerswitch project to work with an atmega8 avr for a few days now (having read all posts in this forum regarding this topic..) but didn't really manage to get the thing working.

I understand that i should change the

Code: Select all

static void outputByte(uchar b) 


function to be compatible with the atmega8, but i don't really understand howto.

when I update the usbconfig.h file with the PORTB-> PORTD changes and change the outputByte function like this:

Code: Select all

static void outputByte(uchar b)
{
PORTD = (PORTD & ~0xfc) | (b & 0xfc);
PORTD = (PORTD & ~0x30) | ((b << 4) & 0x30);
}


it simply doesn't do anything.

If someone has a working implementation of this ported, please let me know, as my circuit is ready, but i just can't get the usb comm working.

Thanks for your help,
regards,
guz

Posted: Mon Jul 09, 2007 9:16 pm
by guzma
never mind.. i figured it out :)

but, hey! I'ts a great driver... thanks! :lol: :lol: :lol:

Posted: Mon Sep 03, 2007 10:20 pm
by 0815user
Hi,

could you please post the modified firmware?

greets

Re: Porting powerswitch project to Atmega8

Posted: Sun Mar 13, 2011 11:42 am
by hud-hud
Hello everybody!

I made atmega8 powerswitch
but computer doesn't show
device vid and pid

It just shows massage “unknown device”

Please help me to connect to USB