Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, it is real time, but due to interrupts you have to manage critical sections with cli() and sei() and your time base is a 16.000 MHz crystal.

Most instructions for ATmega and ATtiny execute in 1 clock cycle so writing deterministic, time-critical code is straightforward.



Thanks for the tip to turn off interrupts when working with precise timing!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: