Burn Atmega8 with Diecimila


I've found a crazy project over the Internet about turning a simple SNES controller into an USB one. But it is necessary to write some assembly code on an Atmega8.

It is possible, with some creativity (and longer steps compared to a direct circuit) to use my Arduino and some electronic components to do it? I've tried to follow these steps to burn a bootloader, for future purposes, but my IDE didn't respond as I expected: http://arduino.cc/en/Tutorial/ArduinoISP http://arduino.cc/en/Tutorial/ArduinoToBreadboard

Regards, Caesar.

arduino isp will work but you need to disable the auto reset feature with a capacitor, also dont use 1.0 software, apparently there is something messed up with the arduino ISP sketch, though I dont know the details (like is it 1.0 with uno or 1.0 with everything?)

You'll never be able to do this in the IDE (with straight C code). The USB assembly routines are extremely tight code written with timing down to the clock cycle to make sure the USB protocol replies happen within spec. Separate code is used for each crystal speed and the tolerances are pretty demanding -- i.e., don't use a ceramic resonator as your oscillator.

If you read the software "virtual USB" library docs, they even say things like: we can't do error checking because we can't calculate the CRC in the time required before we have to acknowledge receipt.

EDIT: Uh, I think I misunderstood your question. You're asking if there's a way to burn the HEX file to the chip via the IDE?

Also, FWIW, I'm using the 1.0 ISP sketch with an Uno and standalone 328 on a breadboard with the Uno bootloader, and it works just dandy. Actually I've never used anything previous to 1.0.