wokwi / avr8js

Arduino (8-bit AVR) simulator, written in JavaScript and runs in the browser / Node.js
https://blog.wokwi.com/avr8js-simulate-arduino-in-javascript/
MIT License
463 stars 73 forks source link

Wrong prescaler for Timer2 #5

Closed urish closed 4 years ago

urish commented 4 years ago

Currently all timers share the same prescaler table. However, has a slightly different list of prescalers. From instance, settings CS22:0 to 6 should result in 256 prescaling instead of an using an external clock source.