V-USB and mega128
Posted: 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
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