BootloadHID, atmega88, TWO IO pins.
Posted: Thu Sep 17, 2009 4:56 am
Hi,
I have successfully used the bootloadHID (and avrusbboot) for the atmega88. I have recently built a development board for this chip, with all manner of 'goodies', but it only leaves two IO's for the USB - one of which is the mandatory INT0 (PD2 on the '88). However the only other available pin for USB is PB0.
Now, I realise that some V-USB projects use the attiny45, only using two IO's for the USB, but they are on the same port. When I checked the usbconfig.h file, it requires the port for the USB connections, the plus and the minus to beon the same port, as well as a connection to INT0.
Is there a way to have D+ on INT0 (PD2), but have D- on a different port? (PB0) Or is the interupt purely used as an interrupt and not for reading the USB line? *meaning we still need two lines for reading the D+/-).
If its possible, it would be great, because I've managed to make almost every peripheral available on that board, without dual fucntion pins, meaning that, tecnhically, all interfaces could be used at the same time....and if this works, that includes USB. Meaning one could have a USB to I2C/SPI/UART/PWM/ADC dongle at teh same time - very handy for an engineer for debugging.
Regards,
Scott.
I have successfully used the bootloadHID (and avrusbboot) for the atmega88. I have recently built a development board for this chip, with all manner of 'goodies', but it only leaves two IO's for the USB - one of which is the mandatory INT0 (PD2 on the '88). However the only other available pin for USB is PB0.
Now, I realise that some V-USB projects use the attiny45, only using two IO's for the USB, but they are on the same port. When I checked the usbconfig.h file, it requires the port for the USB connections, the plus and the minus to beon the same port, as well as a connection to INT0.
Is there a way to have D+ on INT0 (PD2), but have D- on a different port? (PB0) Or is the interupt purely used as an interrupt and not for reading the USB line? *meaning we still need two lines for reading the D+/-).
If its possible, it would be great, because I've managed to make almost every peripheral available on that board, without dual fucntion pins, meaning that, tecnhically, all interfaces could be used at the same time....and if this works, that includes USB. Meaning one could have a USB to I2C/SPI/UART/PWM/ADC dongle at teh same time - very handy for an engineer for debugging.
Regards,
Scott.