Page 1 of 1

autocalibration with tiny45

Posted: Tue Aug 12, 2008 4:55 pm
by butrus.butrus
Hi!

I've tried the autocalibration from EasyLogger (I replaced the driver with the newest one, 2008-05-13), but it doesn't work. I however switched the D- and D+ (i.e. D- is PB2 and D+ PB0) and changed the usbconfig.h accordingly (I need to catch USB suspend).

In EEPROM the first byte is 0xfe after an attempt to autocalibrate...

Is this supposed to work (and there is some other hardware error), or the autocalibration isn't supported for switched D- and D+?

Thanks!

Petr

Posted: Tue Aug 26, 2008 6:29 pm
by christian
The auto calibration code does not cope with swapped D+ and D-. Simply modify the assembler routine usbMeasureFrameLength() to use the other data line. And check whether other parts of the auto calibration also refer to a data line...