Page 1 of 1
Atmega128, to change INT0 on INT4
Posted: Thu Aug 19, 2010 9:54 am
by Valeron
Help me please to change INT0 on INT4 for ATmega128
Re: Atmega128, to change INT0 on INT4
Posted: Thu Aug 19, 2010 3:25 pm
by Valeron
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?
Re: Atmega128, to change INT0 on INT4
Posted: Fri Sep 03, 2010 5:40 am
by Valeron
All works!
D+ has been connected to other port than D-