Attiny25 OSCALL calibration
Posted: Sat Apr 18, 2009 6:03 am
Hi,
I'm quite new to the AVR micro, but anyway what I'm trying to accomplish shouldn't be that hard.
I've just found a nice USB-Snes which use your driver
http://hobbyelektronik.org/wiki/index.p ... NES-Joypad (Translate using Google )
I've manage to remove some bytes from the original source code (as it was compiling to more than 2048K on my PC) and it now fit on my Attiny25.
My only concern is the calibration of the oscall. I can't seem to find a working oscall value. I've only tryed about 10-15 value "by hand".
I've been trying for the last 3 days to create a little code (based on the Easy logger) only to populate the EEPROM with a calibration value. I don't have any equipment to do this by hardware so I was hopping that maybe if I can calibrate a specific Attiny25 chip with this little peice of code. Than keep the EEPROM oscall value. Flash the Snes-Usb code. Reflash EEPROM.... Plug in USB... I was hopping it should now work fine.
I can't seem to get it going. I'm using the LED to know when the code is loopping inside the calibration. It appear to stop for no apparent reason, but still I don't have any value in the EEPROM and the device doesnt get reconized by windows.
Anyone have a clue?
Here's the fact :
I've disabled Watchdog to make sure no Watchdog reset would occur during calibration.
I'm using the autocalibration mecanism found in the latest EasyLogger sources.
I'm using a breadboard to test my circuit.
I'm using Zenner diode on the Data pin with a 1.5k pull-up resistor on D-. ..Should I change the pull-up to something else?
Thanks !
I'm quite new to the AVR micro, but anyway what I'm trying to accomplish shouldn't be that hard.
I've just found a nice USB-Snes which use your driver
http://hobbyelektronik.org/wiki/index.p ... NES-Joypad (Translate using Google )
I've manage to remove some bytes from the original source code (as it was compiling to more than 2048K on my PC) and it now fit on my Attiny25.
My only concern is the calibration of the oscall. I can't seem to find a working oscall value. I've only tryed about 10-15 value "by hand".
I've been trying for the last 3 days to create a little code (based on the Easy logger) only to populate the EEPROM with a calibration value. I don't have any equipment to do this by hardware so I was hopping that maybe if I can calibrate a specific Attiny25 chip with this little peice of code. Than keep the EEPROM oscall value. Flash the Snes-Usb code. Reflash EEPROM.... Plug in USB... I was hopping it should now work fine.
I can't seem to get it going. I'm using the LED to know when the code is loopping inside the calibration. It appear to stop for no apparent reason, but still I don't have any value in the EEPROM and the device doesnt get reconized by windows.
Anyone have a clue?
Here's the fact :
I've disabled Watchdog to make sure no Watchdog reset would occur during calibration.
I'm using the autocalibration mecanism found in the latest EasyLogger sources.
I'm using a breadboard to test my circuit.
I'm using Zenner diode on the Data pin with a 1.5k pull-up resistor on D-. ..Should I change the pull-up to something else?
Thanks !