Search found 1013 matches

by christian
Sat Apr 11, 2009 9:11 pm
Forum: V-USB
Topic: avrdoper debug serial interface
Replies: 7
Views: 5200

Re: avrdoper debug serial interface

Yes. Programming works either through the USB CDC or HID device class. Drivers for both are included with every operating system. Debugging is a custom extension which requires a separate driver on Windows (not on all other operating systems).
by christian
Sat Apr 11, 2009 9:10 pm
Forum: V-USB
Topic: disable the UART transmitter on the 88
Replies: 4
Views: 3925

Re: disable the UART transmitter on the 88

To enable debugging in AVR-USB, compile with -DDEBUG_LEVEL=1 or -DDEBUG_LEVEL=2. Debug output is sent to TxD at 19200 bps consisting primarily of hex dumps.

I would recommend to enable the watchdog only if everything else works.
by christian
Sat Apr 11, 2009 8:24 pm
Forum: V-USB
Topic: avrdoper debug serial interface
Replies: 7
Views: 5200

Re: avrdoper debug serial interface

Do you have the filter version of libusb-win32 installed? This is required in order to connect to a device already associated with a different driver.
by christian
Sat Apr 11, 2009 7:15 pm
Forum: V-USB
Topic: USB Transient Supressor instead of 3.6V zener
Replies: 1
Views: 2301

Re: USB Transient Supressor instead of 3.6V zener

Don't know whether they would work. You need to clamp the voltage at ca. 3.3 V.

If you can't get zeners, you could try to reach the same limit with LEDs in forward direction.
by christian
Sat Apr 11, 2009 7:14 pm
Forum: V-USB
Topic: avrusb and sleeping
Replies: 2
Views: 3293

Re: avrusb and sleeping

These are two different issues. USB2LPT is about drawing less power when the host is in sleep mode. What you want to do is consume less (battery?) power if not connected to USB or if there is no USB traffic. It should be safe to put the AVR into sleep mode as long as the hardware interrupt can wake ...
by christian
Sat Apr 11, 2009 7:05 pm
Forum: V-USB
Topic: PCINT instead of INT0?
Replies: 12
Views: 15055

Re: PCINT instead of INT0?

This does work, provided that you don't use the higher priority hardware interrupts and that you configure the interrupts correctly. See the end of usbconfig-prototype.h.
by christian
Sat Apr 11, 2009 7:02 pm
Forum: V-USB
Topic: can't compile the driver
Replies: 1
Views: 2356

Re: can't compile the driver

You should implement usbFunctionSetup() in your code. See the examples which ship with avr-usb...
by christian
Sat Apr 11, 2009 7:00 pm
Forum: V-USB
Topic: usb polling disrupted by UART interrupts
Replies: 10
Views: 7161

Re: usb polling disrupted by UART interrupts

Running UART interrupts with global interrupts enabled is tricky, because with the naive approach you end up in an infinite interrupt loop. I've done the following: #define REG_UARTFLAGS_B GPIOR1 register uchar uartScratch asm("r2"); ISR(SIG_USART_RECV, ISR_NAKED) { // be careful not to mo...
by christian
Sat Apr 11, 2009 6:53 pm
Forum: V-USB
Topic: AVR-DOPER Vista 64 bit Dirver??
Replies: 1
Views: 1943

Re: AVR-DOPER Vista 64 bit Dirver??

Try HID mode with avrdude...
by christian
Sat Apr 11, 2009 6:53 pm
Forum: V-USB
Topic: avrdoper debug serial interface
Replies: 7
Views: 5200

Re: avrdoper debug serial interface

I think the debug interface works only in HID mode. But then it should work on Windows as well.
by christian
Sat Apr 11, 2009 6:51 pm
Forum: V-USB
Topic: AVRUSB and CodevisionAVR
Replies: 1
Views: 2578

Re: AVRUSB and CodevisionAVR

There is no progress yet. The newer versions of CodeVision AVR fix many bugs which made the port impossible. However, there are still some major obstacles. We have factored out the compiler dependent stuff into usbportability.h and some work for CodeVision AVR has already been done. Feel free to wor...
by christian
Sat Apr 11, 2009 6:49 pm
Forum: V-USB
Topic: 1k5 k pull-up on D-
Replies: 9
Views: 63262

Re: 1k5 k pull-up on D-

Just a note: Please use 1k5, not 2k2. The current through the zeners is so high that you are close to the threshold voltage with 2k2.
by christian
Sat Apr 11, 2009 6:46 pm
Forum: V-USB
Topic: Storage class implementation
Replies: 1
Views: 1820

Re: Storage class implementation

The problem here is that you need to use bulk endpoints which are not allowed for low speed devices. You can still declare them, but some operating systems won't accept them.
by christian
Sat Apr 11, 2009 6:45 pm
Forum: V-USB
Topic: 12 mhz vs 20 mhz
Replies: 2
Views: 3313

Re: 12 mhz vs 20 mhz

Of course. However, the time spent in the USB interrupt is the same.
by christian
Sat Apr 11, 2009 6:44 pm
Forum: V-USB
Topic: Patch for AVRDOPER HVSP mode
Replies: 1
Views: 1833

Re: Patch for AVRDOPER HVSP mode

Thanks for the patch! This will be in the next release of AVR-Doper.