AVR virgin checklist ?

OK Got AVRstudio4 and GCC installed and trying it out with a very simple pwm routine, on a tiny13 for the first time in anger, I just added #include, then the usual flip a port pin stuff

It all seems to compile and run and simulates ok

I'm wading through the AVRtiny datasheet and AVR092 appnote. I'll be using AVRDUDE programmer as I just found this

formatting link

Any other gotcha's I should look out for, while I wait for the chips to arrive, been to avrfreaks etc.

martin

Reply to
Martin Griffith
Loading thread data ...

Oops meant Ponyprog not avrdude

martin

Reply to
Martin Griffith

icros/siprog.html

A lot of AVR gotchas seem to involve misprogramming the various fuses. You can end up with the wrong clock source, or a clock that's

8 times slower than you think, or a RESET pin that doesn't, etc. And don't try to program them faster than 1/4 the clock speed.

But in my own experience I've found them to be pretty bulletproof to program.

Mike

Reply to
Mike Silva

this

formatting link

I'd gathered that, so that is why I did not do any bit twiddling of anything other than the DDR.

Thanks for the clock speed/program tip

martin

Reply to
Martin Griffith

The DDR is in a different space than the AVR fuses. The fuses are essentially dip switches which configure the device the instant power is applied. Does things that need to be done before the program starts running such as selection of clock (RC, crystal, resonator, etc), dividers, startup delay, enable/disable of DebugWire or JTAG, etc. Not normally reachable from a running program.

What Mike was cautioning was that if one only has easy access to JTAG its easy to goof and disable the JTAG interface and have to fire up an ISP to re-enable JTAG. Have read many horror stories where someone managed to mess up the fuses and had a hard time getting back inside the chip to set them to sane values.

Reply to
David Kelly

That's exactly why our first phase was Jtag only, second phase was Jtag and Spi, third phase is Spi only and four phase will be 6502 ROM.

Reply to
linnix

Have heard the 6502 was available as a library for integration into FPGAs. She was a nice old lady who never really tested the MCU market.

Reply to
David Kelly

Yes, we found a company to integrate the 6502 with an LCD controller. It's tough to work with, but it's cheap.

Reply to
linnix

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.