D+ and D- on different ports

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
SamFozz

D+ and D- on different ports

Postby SamFozz » Wed Jan 24, 2018 2:27 pm

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 ....

horo
Rank 2
Rank 2
Posts: 63
Joined: Tue Mar 04, 2008 2:26 pm
Location: Berlin & Lindau, Germany

Re: D+ and D- on different ports

Postby horo » Fri Jan 26, 2018 7:17 pm

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

ulao
Rank 4
Rank 4
Posts: 480
Joined: Mon Aug 25, 2008 8:45 pm

Re: D+ and D- on different ports

Postby ulao » Fri Jan 26, 2018 7:28 pm

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.


Return to “V-USB”

Who is online

Users browsing this forum: sswcharlie and 2 guests