Page 1 of 1

Substitute of INT0 pin for AVR-USB D+

Posted: Mon Apr 07, 2008 7:40 am
by Stephen
In ATMega8, there are only three I/O port PB0 - PB7, PC0-PC6, PD0 - PD7. My device will be communicate to other device by 8-bit parallel interface. Since PB6 and PB7 is used for crystal oscillation, so the remained choice is PD0 - PD7. However, the PD2(INT0) is used for D+ interrupt communication.

My question, can i use ATMega88 which has got PCINT0 - PCINT23? That's mean I use PD0 - PD7 for 8-bit parallel interface and take another pin from PB or PC for D+ connection.

In datasheet of ATMega88 said, "The external interrupts are triggered by INT0 and INT1 or any of PCINT23..0 pins".

Thanks.

Posted: Mon Apr 07, 2008 10:10 am
by christian
Yes, this is possible. You need to modify the interrupt configuration at the end of usbconfig.h. And you MUST make sure that no higher level interrupt is used (except if you know exactly what you are doing).