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
D+ and D- swapped attiny85
Re: D+ and D- swapped attiny85
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
/* ---------------------------- 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
Re: D+ and D- swapped attiny85
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?
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?