V-USB and mega128

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Valeron
Posts: 7
Joined: Wed Aug 11, 2010 6:04 am
Contact:

V-USB and mega128

Post by Valeron » Wed Aug 11, 2010 6:27 am

Hello All,
I have made the project on mega16 and I want to migrate on mega128. But status of my device is "undefined" (In English I do not know this message, I work on Windows Russian Edition).
I have followed a working (on mega32, 12MHz) example "hid-custom-rq" and have changed:
1) Target MCU -> mega128
2) In usbconfig: USB port = PORTD, D- = PD1, D+ = PD0.

Can it is necessary correct something here?
/* #define USB_INTR_CFG MCUCR */
/* #define USB_INTR_CFG_SET ((1 << ISC00) | (1 << ISC01)) */
/* #define USB_INTR_CFG_CLR 0 */
/* #define USB_INTR_ENABLE GIMSK */
/* #define USB_INTR_ENABLE_BIT INT0 */
/* #define USB_INTR_PENDING GIFR */
/* #define USB_INTR_PENDING_BIT INTF0 */
/* #define USB_INTR_VECTOR SIG_INTERRUPT0 */

Thanks, Valeriy

Valeron
Posts: 7
Joined: Wed Aug 11, 2010 6:04 am
Contact:

Re: V-USB and mega128

Post by Valeron » Wed Aug 11, 2010 11:32 am

Problem solved. Incorrect quantity of zero in F_CPU=12 000 00

Post Reply