8 Home
ccppi edited this page 2024-03-09 10:39:58 +00:00

AVR Timer Calculator

https://eleccelerator.com/avr-timer-calculator/

AVR Fuse Calculator

http://eleccelerator.com/fusecalc/fusecalc.php?chip=attiny85&LOW=E2&HIGH=DF&EXTENDED=FF&LOCKBIT=FF

AVR-gcc Docs

https://www.nongnu.org/avr-libc/user-manual/group__avr__power.html

Others

On ulatra strange behavior remember gcc optimizations gan fuck with your code. See Flags: -Os <--- does for example remove empty while loops, which can be crusial for embedded devices. In that case use something like -O0 if possible(because of flash size).

Disable Clk prescaler

  1. set presclaer fuses

2.clock_prescale_set(x)

https://www.mikrocontroller.net/topic/291951

Datasheet

https://ww1.microchip.com/downloads/en/devicedoc/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf

Tutorials

https://de.wikibooks.org/wiki/C-Programmierung_mit_AVR-GCC:Timer_und_Counter#Timer_0/_2