Porting powerswitch project to Atmega8

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
guzma
Posts: 2
Joined: Mon Jul 09, 2007 11:21 am

Porting powerswitch project to Atmega8

Post by guzma » Mon Jul 09, 2007 11:51 am

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

guzma
Posts: 2
Joined: Mon Jul 09, 2007 11:21 am

Post by guzma » Mon Jul 09, 2007 9:16 pm

never mind.. i figured it out :)

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

0815user
Posts: 1
Joined: Mon Sep 03, 2007 10:17 pm

Post by 0815user » Mon Sep 03, 2007 10:20 pm

Hi,

could you please post the modified firmware?

greets

hud-hud
Posts: 1
Joined: Sun Mar 13, 2011 11:31 am

Re: Porting powerswitch project to Atmega8

Post by hud-hud » Sun Mar 13, 2011 11:42 am

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

Post Reply