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

USART bitsPerChar looking at the wrong register #52

Closed urish closed 3 years ago

urish commented 3 years ago

According to the [datasheet](), the USART Character Size is determined by the UCSZn2:0 bits in registers UCSRnB and UCSRnC. However, we're currently looking at UCSRnA instead of UCSRnC.