Search found 68 matches

by iphi
Sat Jul 07, 2007 5:18 pm
Forum: V-USB
Topic: need help for deeper understanding of USB with AVRs
Replies: 3
Views: 4364

need help for deeper understanding of USB with AVRs

Hello, I have successfully played with power switch and also did some software modifications. So far, I have learned how the host can send and receive some data with control messages. Questions: 1. Is it possible that the USB device sends some kind of notification to the Windows host, e.g. asking fo...
by iphi
Tue Jul 03, 2007 7:41 am
Forum: V-USB
Topic: Powerswitch: changing USB terminals from Port B to Port D
Replies: 2
Views: 3788

Found it.

The port directions were hard coded and did not make use of USB_CFG_IOPORTNAME.
by iphi
Mon Jul 02, 2007 6:26 pm
Forum: V-USB
Topic: Powerswitch: changing USB terminals from Port B to Port D
Replies: 2
Views: 3788

P.S. I have just seen this code segment in main.c: /* This is the AT90S2313 version of the routine. Change for others. */ static void outputByte(uchar b) { PORTB = (PORTB & ~0xfc) | (b & 0xfc); PORTD = (PORTD & ~0x30) | ((b << 4) & 0x30); } Could my problem come from the fact that I ...
by iphi
Mon Jul 02, 2007 6:18 pm
Forum: V-USB
Topic: Powerswitch: changing USB terminals from Port B to Port D
Replies: 2
Views: 3788

Powerswitch: changing USB terminals from Port B to Port D

Hi, in powerswitch I would like to use port D as connection port to the USB cable instead of port B. When I change in usbconfig.h from #define USB_CFG_IOPORTNAME B ... to #define USB_CFG_IOPORTNAME D #define USB_CFG_DMINUS_BIT 0 #define USB_CFG_DPLUS_BIT 1 recompile and rewire the USB connections, t...
by iphi
Sun Jul 01, 2007 1:24 pm
Forum: V-USB
Topic: simulate avr firmware on PC?
Replies: 2
Views: 3723

simulate avr firmware on PC?

Is there a way to simulate the firmware on a PC with source code view? I'd like to step through the code to learn how it's working.

I can load the .bin file in AVR studio, but the source code info is gone.

Thanks for your help.
by iphi
Thu Jun 28, 2007 10:42 pm
Forum: V-USB
Topic: Beginner's question: How to compile firmware in AVR Studio?
Replies: 0
Views: 2893

Beginner's question: How to compile firmware in AVR Studio?

I have successfully compiled the PowerSwitch firmware in Programmers Notepad of WinAVR. Now I would like to do the same in AVR Studio in order to use the built-in simulator. GCC is recognized by AVR Studio. Can somebody give me a hint what I have to do to compile the PowerSwitch firmware as is? Can ...
by iphi
Wed Jun 27, 2007 6:20 am
Forum: V-USB
Topic: Beginner's question: compiling AVR firmware for powerswitch
Replies: 5
Views: 5972

Which WinAVR release would I have to download in order to get gcc3?

Thanks, Thomas
by iphi
Mon Jun 25, 2007 11:52 am
Forum: V-USB
Topic: Beginner's question: compiling AVR firmware for powerswitch
Replies: 5
Views: 5972

Beginner's question: compiling AVR firmware for powerswitch

Hello, I have just built up the powerswitch project and it works perfectly . For the start I just flashed the hex file from the download. In a second experiment I recompiled the firmware with WinAVR and programmer's notepad by the "make all" command. Compilation was successful and the agai...