Differences

This shows you the differences between two versions of the page.

Link to this comparison view

blog:2022:08:09:2022-08-09_-_slowly_programming_slow_avrs [2022/08/09 19:24] – created baszblog:2022:08:09:2022-08-09_-_slowly_programming_slow_avrs [2022/08/21 19:06] (current) – fix ATtinty comparison page basz
Line 6: Line 6:
 ===== genesis ===== ===== genesis =====
  
-since the thing is solar-powered, it's crucial to keep power usage as low as possible (step-up DC/DC losses + blinking LED are already eating up a lot), so i decided to go with [[ATtiny microcontroller comparison chart|ATtiny13]]'s lowest possible frequency -- internal RC oscillator, running at 128kHz, with internal prescaler set to 8... ending up at 16kHz! :D felt awesome... until i've flashed fuse-bits to enable the oscillator and chip stopped responding.+since the thing is solar-powered, it's crucial to keep power usage as low as possible (step-up DC/DC losses + blinking LED are already eating up a lot), so i decided to go with [[wp>ATtiny microcontroller comparison chart|ATtiny13]]'s lowest possible frequency -- internal RC oscillator, running at 128kHz, with internal prescaler set to 8... ending up at 16kHz! :D felt awesome... until i've flashed fuse-bits to enable the oscillator and chip stopped responding.
  
 first i though i screwed up fuse bit values, and disabled serial programming (happened to me in the past). since this is SMD, i'd need to re-solder a new unit to make it working... instead i decided to drill down a bit and see what's up. [[https://www.engbedded.com/fusecalc/|AVR fuse calc]] confirmed i've set all the bits correctly (cross-checked with datasheet). then i came across a post on [[https://www.logikdev.com/2011/02/15/reset-clock-fuse-bits-on-avr/|how to reset fuse bits via programmer]]. long story short -- you can reset fuses like this: first i though i screwed up fuse bit values, and disabled serial programming (happened to me in the past). since this is SMD, i'd need to re-solder a new unit to make it working... instead i decided to drill down a bit and see what's up. [[https://www.engbedded.com/fusecalc/|AVR fuse calc]] confirmed i've set all the bits correctly (cross-checked with datasheet). then i came across a post on [[https://www.logikdev.com/2011/02/15/reset-clock-fuse-bits-on-avr/|how to reset fuse bits via programmer]]. long story short -- you can reset fuses like this:
blog/2022/08/09/2022-08-09_-_slowly_programming_slow_avrs.txt · Last modified: 2022/08/21 19:06 by basz
Back to top
Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0