New answers tagged

0

Atmel Studio uses the GCC toolchain and GNU make. Presumably ICCAVR is using a different toolchain. Your options appear to be: Keep the ICCAVR toolchain and integrate it into Atmel Studio if you can get the HEX and ELF files required for programming and debugging. Migrate to the GCC toolchain in which case take it slow, move one module across at a time and ...


0

The official USBasp has no connection on pin 3, so whether it is grounded or left open circuit doesn't matter. Pins 4 and 6 go to TXD and RXD in the programmer. TXD has a 270 Ω resistor in series so it is safe to 'short' it to ground, but better to leave it open circuit. RXD can be grounded or left open, as the serial port is not used in normal ...


0

Yes it will divide the CPU frequency, no matter what is the clock source.


0

It relies on the fact that CPU starts executing at location 0, and since no interrups are used, there is no need for the vector table and code can be put there. In general that is not a suggested way of doing things, but with this specific AVR model and with this specific code it works. So it is a bad example for serious engineering work, but sometimes when ...


2

I’m assuming you’re using the Arduino IDE here... which I realize might not be what you’re looking for. It’s possible to use any crystal or ceramic oscillator up to 20MHz with the right capacitors (or no capacitors if you use a ceramic oscillator with built-in caps). You could also use the internal 8MHz oscillator. You could use a non-standard bootloader ...


1

You can go with 12 MHz. The other frequencies are not supported by the MCU as such. Please note that you should have right settings in the clock distribution internally so that the tick is right. If you directly use 12 MHz instead of 16 MHz, the timing will be slower by 25%. Last option is also to use the not accurate low frequency internal RC ...


Top 50 recent answers are included