Noob question about Windows HID
Posted: Fri Jan 20, 2012 3:21 pm
Hello to all,
I'm going to connect my first vusb board to a windows machine. Here the schematic:
Here the fuse settings:
Using AVR Studio 5 I compiled the hid-data example for ATmega644 (even if on my board there's a ATmega644P, actually).
The MCU is running at the correct frequency of 20 MHz. I tested it with a sample program.
I'm still in trouble with the host software (I have errors with minGW) but in the meanwhile I tried to connect the USB cable to the computer.
Nothing happens. I'm wondering if I should see the new HID device in the device manager.
These are the main options in usbconfig.h :
Thanks in advance!
Mark
I'm going to connect my first vusb board to a windows machine. Here the schematic:
Here the fuse settings:
Code: Select all
BODLEVEL = 4V3
OCDEN = [ ]
JTAGEN = [ ]
SPIEN = [X]
WDTON = [ ]
EESAVE = [X]
BOOTSZ = 4096W_7000
BOOTRST = [ ]
CKDIV8 = [ ]
CKOUT = [ ]
SUT_CKSEL = EXTXOSC_8MHZ_XX_16KCK_65MS
Using AVR Studio 5 I compiled the hid-data example for ATmega644 (even if on my board there's a ATmega644P, actually).
The MCU is running at the correct frequency of 20 MHz. I tested it with a sample program.
I'm still in trouble with the host software (I have errors with minGW) but in the meanwhile I tried to connect the USB cable to the computer.
Nothing happens. I'm wondering if I should see the new HID device in the device manager.
These are the main options in usbconfig.h :
Code: Select all
#define USB_CFG_IOPORTNAME D
#define USB_CFG_DMINUS_BIT 4
#define USB_CFG_DPLUS_BIT 2
#define USB_CFG_CLOCK_KHZ (20000)
#define USB_CFG_CHECK_CRC 0
#define USB_CFG_PULLUP_IOPORTNAME D
#define USB_CFG_PULLUP_BIT 5
#define USB_CFG_HAVE_INTRIN_ENDPOINT 1
#define USB_CFG_HAVE_INTRIN_ENDPOINT3 0
#define USB_CFG_EP3_NUMBER 3
#define USB_CFG_IMPLEMENT_HALT 0
#define USB_CFG_SUPPRESS_INTR_CODE 0
#define USB_CFG_INTR_POLL_INTERVAL 100
#define USB_CFG_IS_SELF_POWERED 1
#define USB_CFG_MAX_BUS_POWER 50
#define USB_CFG_IMPLEMENT_FN_WRITE 1
#define USB_CFG_IMPLEMENT_FN_READ 1
#define USB_CFG_IMPLEMENT_FN_WRITEOUT 0
#define USB_CFG_HAVE_FLOWCONTROL 0
#define USB_CFG_DRIVER_FLASH_PAGE 0
#define USB_CFG_LONG_TRANSFERS 0
#define USB_COUNT_SOF 0
#define USB_CFG_CHECK_DATA_TOGGLING 0
#define USB_CFG_HAVE_MEASURE_FRAME_LENGTH 0
#define USB_USE_FAST_CRC 1
#define USB_CFG_VENDOR_ID 0xc0, 0x16 /* = 0x16c0 = 5824 = voti.nl */
#define USB_CFG_DEVICE_ID 0xdf, 0x05 /* obdev's shared PID for HIDs */
#define USB_CFG_DEVICE_VERSION 0x00, 0x01
#define USB_CFG_VENDOR_NAME 'o', 'b', 'd', 'e', 'v', '.', 'a', 't'
#define USB_CFG_VENDOR_NAME_LEN 8
#define USB_CFG_DEVICE_NAME 'D', 'a', 't', 'a', 'S', 't', 'o', 'r', 'e'
#define USB_CFG_DEVICE_NAME_LEN 9
#define USB_CFG_DEVICE_CLASS 0
#define USB_CFG_DEVICE_SUBCLASS 0
#define USB_CFG_INTERFACE_CLASS 3
#define USB_CFG_INTERFACE_SUBCLASS 0
#define USB_CFG_INTERFACE_PROTOCOL 0
#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH 22
Thanks in advance!
Mark