Atmega128, to change INT0 on INT4
Atmega128, to change INT0 on INT4
Help me please to change INT0 on INT4 for ATmega128
Re: Atmega128, to change INT0 on INT4
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?
#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?
Re: Atmega128, to change INT0 on INT4
All works!
D+ has been connected to other port than D-
D+ has been connected to other port than D-