Search found 39 matches

by mojo
Mon Sep 21, 2009 8:53 pm
Forum: V-USB
Topic: HID Composite device with reports bigger than 8 bytes
Replies: 8
Views: 8980

Re: HID Composite device with reports bigger than 8 bytes

Oh, I tried with this too:

Code: Select all

while (!usbInterruptIsReady()) usbPoll();


Didn't help.
by mojo
Mon Sep 21, 2009 8:37 pm
Forum: V-USB
Topic: HID Composite device with reports bigger than 8 bytes
Replies: 8
Views: 8980

Re: HID Composite device with reports bigger than 8 bytes

Christian, can you elaborate a little? When you say you need to make sure the buffer is available with usbInterruptIsReady(), do you mean before every call to usbSetInterrupt() or just once before all the calls? For example, this does not seem to work properly: if(usbInterruptIsReady()) { /* called ...
by mojo
Tue Jun 09, 2009 12:24 am
Forum: V-USB
Topic: 15MHz not working with some hubs
Replies: 10
Views: 7023

Re: 15MHz not working with some hubs

Thank you, V-USB an a very nice framework!
by mojo
Sun Jun 07, 2009 8:32 pm
Forum: V-USB
Topic: 15MHz not working with some hubs
Replies: 10
Views: 7023

Re: 15MHz not working with some hubs

Okay, I got to the bottom of it! The problem is to do with the way the port the USB data lines were on was being configured. Originally I had them set as inputs with pull-ups on the 861, and it only worked on some USB ports. I noticed that the mega8 code had them as outputs pulled low initially. It ...
by mojo
Sat Jun 06, 2009 11:58 pm
Forum: V-USB
Topic: 15MHz not working with some hubs
Replies: 10
Views: 7023

Re: 15MHz not working with some hubs

You can try the the very old version on the new chip first. If it does not fix anything, then it's probably not a firmware issue. Yeah, will try that tomorrow and report back. Since you say that you decode a 2 MHz bus: You are aware that the USB interrupt MUST have highest priority? This means that...
by mojo
Sat Jun 06, 2009 9:19 pm
Forum: V-USB
Topic: 15MHz not working with some hubs
Replies: 10
Views: 7023

Re: 15MHz not working with some hubs

Okay, I am working my way back down the versions, but it will take a bit of time to find the exact cut off point, if there even is one. It could still be down to some difference between the mega8 and tiny861. As for the voltage issue, I changed the pull-up resistor from 2k2 to 1k and that pulled the...
by mojo
Fri Jun 05, 2009 9:00 pm
Forum: V-USB
Topic: 15MHz not working with some hubs
Replies: 10
Views: 7023

Re: 15MHz not working with some hubs

I checked and I get 2.8V at idle. I am using 3.6V zeners to clamp it. It's a bit low but within spec... I checked some older builds using an ATmega8 and found the same thing, however the mega8 builds work perfectly on all hubs. Some are using a modified version of Igor's code and some AVR-USB as it ...
by mojo
Wed Jun 03, 2009 8:54 pm
Forum: V-USB
Topic: 15MHz not working with some hubs
Replies: 10
Views: 7023

Re: 15MHz not working with some hubs

Okay, I think I have discovered the problem. For some reason at 15MHz the start-up time for the AVR needs to be set to set to maximum (16CK/14CK+65ms). I had it set one lower than that (16CK/14CK+4.1ms) and it would not detect on all hubs, even powered ones where you would expect Vcc rise time to be...
by mojo
Wed Jun 03, 2009 12:53 am
Forum: V-USB
Topic: 15MHz not working with some hubs
Replies: 10
Views: 7023

15MHz not working with some hubs

Hi. I have been looking to upgrade from 12MHz to a 15MHz crystal so I have some more processing time available. Unfortunately, I am having problems getting 15MHz to work reliably. At 12MHz the device detects on all hubs as well as directly connected to the PC and works properly. At 15MHz, a few hubs...
by mojo
Sun May 03, 2009 10:18 pm
Forum: V-USB
Topic: MacroPad
Replies: 11
Views: 8578

Re: MacroPad

I already made something like this as a quick hack. No schematic yet but the code should speak for itself. I will try and update my web site soon. Need to find some key stickers http://img300.imageshack.us/img300/9193/quickkeys800.jpg #include <avr/io.h> #include <avr/interrupt.h> #include <avr/pgms...
by mojo
Mon Mar 23, 2009 2:36 pm
Forum: V-USB
Topic: Internal RC oscillator 16.5MHz reliability & compatibili
Replies: 0
Views: 2144

Internal RC oscillator 16.5MHz reliability & compatibili

I am working on an open source project that I hope to produce kits for eventually. I am tempted to use an ATTiny461 with the internal oscillator and self calibration because it would allow me to cram the whole thing into a much smaller and cheaper case. The problem is that I can't find any data on t...
by mojo
Thu Apr 03, 2008 4:44 pm
Forum: V-USB
Topic: USB Device Not Recognised with AVR Studio and D1/2 for D-/+
Replies: 9
Views: 9296

I finally cracked it. The problem seems to stem from the makefile. The makefile supplied with the HIDKeys project does not work with AVR Studio, because AVR Studio expects the output to be named project_name.hex, and also requires ELF binaries to be built for debugging. As such, I started by making ...
by mojo
Tue Apr 01, 2008 11:53 pm
Forum: V-USB
Topic: USB Device Not Recognised with AVR Studio and D1/2 for D-/+
Replies: 9
Views: 9296

Okay, I tried compiling the 3Dvert project with simple changes to reflect my new pin configuration, and it didn't work. The only thing I can think to do now is make a PowerSwitch on a bit of breadboard and try it with the original firmware and one I compile myself.
by mojo
Tue Apr 01, 2008 10:02 pm
Forum: V-USB
Topic: USB Device Not Recognised with AVR Studio and D1/2 for D-/+
Replies: 9
Views: 9296

Thanks, but I think I need a project based on AVR Studio and WinAVR. I am starting to think the problem could be a problem with the makefile for AVR Studio or something.
by mojo
Tue Apr 01, 2008 6:06 pm
Forum: V-USB
Topic: USB Device Not Recognised with AVR Studio and D1/2 for D-/+
Replies: 9
Views: 9296

Here is my current code: PORTD = 0b00111001; DDRD = 0b11110101; j = 0; while(--j) { i = 0; while(--i); } PORTD = 0b00111001; DDRD = 0b11110001; As you can see, I have both PD1 and PD2/INT0 as inputs. D- is on PD1 and D+ on PD2/INT0. Are the any examples of working code on a...