Atmega128, to change INT0 on INT4

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:

Atmega128, to change INT0 on INT4

Post by Valeron » Thu Aug 19, 2010 9:54 am

Help me please to change INT0 on INT4 for ATmega128

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

Re: Atmega128, to change INT0 on INT4

Post by Valeron » Thu Aug 19, 2010 3:25 pm

This construction does not work :

#define USB_INTR_CFG EICRB
#define USB_INTR_CFG_SET ((1 << ISC40) | (1 << ISC41))
#define USB_INTR_CFG_CLR 0
#define USB_INTR_ENABLE EIMSK
#define USB_INTR_ENABLE_BIT INT4
#define USB_INTR_PENDING EIFR
#define USB_INTR_PENDING_BIT INTF4
#define USB_INTR_VECTOR SIG_INTERRUPT4

Where my error?

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

Re: Atmega128, to change INT0 on INT4

Post by Valeron » Fri Sep 03, 2010 5:40 am

All works!
D+ has been connected to other port than D-

Post Reply