Skip to main content

Picked up a handful of #AVR chips (ATMEGA168) and am familiarizing myself with the datasheet, but it makes me wonder: can you really call it a "datasheet" if it's 653 pages long? 🤔

Coffee ⏚ reshared this.

Question for the #AVR crowd of the fediverse: What kind of ISP programmer do y'all recommend (for people using #Linux ) these days? An old tutorial recommended the USBtinyISP, but it appears to be out of stock (and possibly outdated?) everywhere I look. #AskFedi

reshared this

It was also fun to assemble.

@savanni hey, just to mention that you may also build your own #AVR programmer probably even cheaper (but more DIY) with the
#VUSBtiny project:

I've had mine for ~8 years and still use it. You can see it in the background on this post.


This absolutely unremarkable blink is actually quite cool to me at the moment since it's being controlled by a timer/counter, two compare matches and an interrupt service routine. This is just as a test for how I'm thinking of implementing HSYNC.

The pin is configured to toggle when the counter reaches a top value, via a compare match. That would make the LED blink by itself. However there is a second compare match at half (configurable) that top value which is forcing a compare match. So the pin can generate a pulse of configurable duration and period.

And not that I have written this I realise I seem to have just implemented a convoluted PWM lol. Should check if I can just use PWM for what I need.


This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.