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
481 stars 78 forks source link

Timer OCR values should be buffered #76

Closed urish closed 3 years ago

urish commented 3 years ago

According the the datasheet, OCRnx values should be buffered in several Waveform Generation modes (e.g. table 15-5). The current code always updates them immediately.