D+ and D- swapped attiny85

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

D+ and D- swapped attiny85

Post by jmuraca » Fri May 04, 2012 4:45 am

As the subject says, I have swapped D+ and D- on my board. I am using an attiny85.
I have read some other posts about using PCINT0 instead of INT0 but these are not attiny85 specific and I am struggling to find the correct values for the "Optional MCU Description" section
Could somebody help me out with what should go into these?

Thanks in advnace
James

jmuraca

Re: D+ and D- swapped attiny85

Post by jmuraca » Fri May 04, 2012 5:00 am

my current settings are:

/* ---------------------------- Hardware Config ---------------------------- */
#define USB_CFG_DMINUS_BIT 2
#define USB_CFG_DPLUS_BIT 0

/* ----------------------- Optional MCU Description ------------------------ */
#define USB_INTR_CFG PCMSK
#define USB_INTR_CFG_SET (1 << PCINT0)
#define USB_INTR_CFG_CLR 0
#define USB_INTR_ENABLE GIMSK
#define USB_INTR_ENABLE_BIT PCIE
#define USB_INTR_PENDING GIFR
#define USB_INTR_PENDING_BIT PCIF
#define USB_INTR_VECTOR SIG_PIN_CHANGE

jmuraca

Re: D+ and D- swapped attiny85

Post by jmuraca » Fri May 04, 2012 11:54 am

ok so i read around a bit more and tried to change the clock speed to 10Mhz as it is 3.6V as per:

Speed Grade
– ATtiny25V/45V/85V: 0 – 4 MHz @ 1.8 - 5.5V, 0 - 10 MHz @ 2.7 - 5.5V
– ATtiny25/45/85: 0 – 10 MHz @ 2.7 - 5.5V, 0 - 20 MHz @ 4.5 - 5.5V

but still no luck.

anyone got any advice?

jmuraca

Re: D+ and D- swapped attiny85

Post by jmuraca » Fri May 04, 2012 12:42 pm

tried changing it to 5V but still nothing.
i'm stumped!

Post Reply