Search found 162 matches

by Grendel
Tue Mar 18, 2008 9:32 pm
Forum: V-USB
Topic: HIDKeys with atmega168
Replies: 5
Views: 13227

Try E:0xF9 H:0xDD L:0xDF
by Grendel
Mon Mar 17, 2008 3:13 am
Forum: V-USB
Topic: First key is not sent (hid keyboard)
Replies: 11
Views: 15342

Uhm, you may want to update your AVR_USB to a version >= 20070807..

* Release 2007-08-07

- More config options: USB_RX_USER_HOOK(), USB_INITIAL_DATATOKEN, USB_COUNT_SOF
by Grendel
Fri Mar 14, 2008 11:14 pm
Forum: V-USB
Topic: AVR Studio with assembler example?
Replies: 2
Views: 4738

Check out 3DProasm.S, 3DPro.c, & 3DPro.h from the 3DP-Vert project (look for the link "Project archive 2008-02-09" near the bottom of the page.) More details about embedding AVR assembler can be found in the AVR Libc Reference Manual that's installed w/ WinAVR (AVR Studio --> Help --> ...
by Grendel
Thu Mar 13, 2008 8:16 pm
Forum: V-USB
Topic: USB on Mega664 not working
Replies: 5
Views: 6441

Looks like you are runing the chip at 5V -- try adding 3V6 Z-diodes to GND on D+/D- and change the 1k5 R to 2k2.
by Grendel
Wed Mar 12, 2008 8:03 pm
Forum: V-USB
Topic: USBaspLoader filesize
Replies: 2
Views: 3971

The original was probably compiled w/ WinAVR 20070525.
by Grendel
Wed Mar 12, 2008 8:19 am
Forum: V-USB
Topic: HIDKeys with atmega168
Replies: 5
Views: 13227

Fuses set right ?
by Grendel
Fri Mar 07, 2008 9:39 pm
Forum: V-USB
Topic: Atmega16+32 not found with 16MHz crystal on some Hosts
Replies: 20
Views: 22198

Odd. My original design uses a mega8 w/ 3V3 diodes and 82R resistors, 12/15/16MHz -- no problems an anything from 865-ICH9R. I recently modified one proto to 3V6, 68R w/o any different behavior. OTOH, I redesigned the device using an ATtiny461. It would not work w/ 3V3/68R but works fine w/ 3V6/68R....
by Grendel
Thu Mar 06, 2008 3:48 am
Forum: V-USB
Topic: AVRUSBBoot Atmega16
Replies: 8
Views: 9912

The error says it all -- your code is to big to fit into the boot loader section by 30 bytes. There are different ways of solving this: - try to squeeze 30 bytes out of your code - use a 16MHz crystal, the code path is 106 bytes smaller than the 12MHz path - use an older version of WIN-AVR, creates ...
by Grendel
Wed Mar 05, 2008 12:23 am
Forum: V-USB
Topic: Report descriptor for joystick gives weird results in MAME
Replies: 4
Views: 6836

Report looks ok to me. Try to move the buttons that are on the handle into the pointer collection. On my stick that looks like: ... 0x05,0x09, // USAGE_PAGE (Button) 0x19,0x01, // USAGE_MINIMUM (Button 1) 0x29,0x04, // USAGE_MAXIMUM (Button 4) 0x81,0x02, // INPUT (Data,Va...
by Grendel
Fri Feb 22, 2008 10:05 pm
Forum: V-USB
Topic: questions on AVR doper
Replies: 4
Views: 7344

The serial number is a string, better define it as

#define USB_CFG_SERIAL_NUMBER '1', '2', '3', '4'
#define USB_CFG_SERIAL_NUMBER_LEN 4
by Grendel
Mon Feb 18, 2008 4:00 am
Forum: V-USB
Topic: Watchdog reset doesn't work properly
Replies: 9
Views: 13906

Funny, I just ran into the same thing after I switched from a mega8 to a tiny461 :)
by Grendel
Sat Feb 09, 2008 9:26 am
Forum: V-USB
Topic: Watchdog reset doesn't work properly
Replies: 9
Views: 13906

How is that delay() function defined ? Do you have a "dynamic" speed R that allows you to use usbDeviceConnect() and usbDeviceDisconnect() ? I use the same logic to reset my converter but w/ a usbDeviceDisconnect() just before the forever loop. Works every time Plus, you don't need to crea...
by Grendel
Sun Jan 27, 2008 10:02 am
Forum: V-USB
Topic: MAIN.HEX COMPILE ERROR??
Replies: 3
Views: 5545

Edit the checksize script and change awk to gawk -- that should fix it.
by Grendel
Wed Nov 21, 2007 1:47 am
Forum: V-USB
Topic: General joystick HID question
Replies: 35
Views: 49776

After X and Y, I fill the report descripter properly with 4 bits, to get 4 * 8 in total. How do you put your 10bit values together in the buffer? The bits are sort of "reversed" in the bytes of the report: The report data array is defined as: uint8_t sw_report[7] ; // USB report data // U...
by Grendel
Fri Nov 09, 2007 10:05 am
Forum: V-USB
Topic: General joystick HID question
Replies: 35
Views: 49776

Here's a working report descriptor for a "live" joystick for reference, 4 axis -- X (10bit), Y (10bit), Rz (9bit, handle twist), throttle (10bit, slider) -- 8 buttons (4 on the stick, 4 on the base), and a POV hat switch. #define CFG_HID_REPORT_DESC_SZ_3DP 102 PROGMEM char usbHidReportDesc...