Page 1 of 1

D+ and D- on different ports

Posted: Wed Jan 24, 2018 2:27 pm
by SamFozz
Hi,

I'm trying to get VUSB working on an attiny44, where INT0 is on portB, and portB has no other usable ports when an external oscillator is attached.

Would it be possible to doctor the code to support D+ and D- being on different ports? - at the moment the setting "USB_CFG_IOPORTNAME" only accepts one value.

I feel like this would not be a huge change if I knew where to look!? - any pointers would be appreciated ....

Re: D+ and D- on different ports

Posted: Fri Jan 26, 2018 7:17 pm
by horo
Hi SamFozz,

I don't know if you can use different ports, but it is possible to use the pin change int instead of INT0:
viewtopic.php?f=8&t=11057

Ciao, Martin

Re: D+ and D- on different ports

Posted: Fri Jan 26, 2018 7:28 pm
by ulao
This should be relatively easy by adding a
USB_CFG_IOPORTNAME1
and
USB_CFG_IOPORTNAME2
and just doing a rename in the correct files and pay attention to the changes where minus and plus pins are used.