News for hackers. Stuff that matters.
Re:Building a USB SNES Controller by vvoid on Friday January 19, 2024 @06:28PM (#39062836)
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.

Re:Building a USB SNES Controller by chybby on Friday January 19, 2024 @10:55PM (#39064504)
Thanks for the tip to turn off interrupts when working with precise timing!