Skip to main content
6 votes

Air Quality Index from BME688 environmental sensor with new AVR 8-Bit MCU

I'm not aware of a single specific standard for indoor air quality to be measured with a single, non-selective sensor like that; however we got this: In contrast to sensors selective for one specific ...
Marcus Müller's user avatar
4 votes
Accepted

Where did using the name "UBBR" instead of "UBRR" for the AVR UART Baud Rate Register come from?

There seems to be a propensity for humans to misread or mistype double letters. It's rather like "Common Mode Rejection Ratio" and "Power Supply Rejection Ratio", or CMRR/PSRR. I'...
Simon Fitch's user avatar
  • 61.2k
3 votes

Where did using the name "UBBR" instead of "UBRR" for the AVR UART Baud Rate Register come from?

Dyslexia probably, in the official docs of the first AVR chip ever it is UBRR https://github.com/avrdudes/avr-libc/blob/main/include/avr/iom8515.h#L66
Jeroen3's user avatar
  • 24.9k
3 votes

AVR GCC: How do I improve code optimization

The code you posted cannot be compiled, and period is obviously in static storage. Moreover, let's aussume we are on a device like ATtiny861A where ...
emacs drives me nuts's user avatar
2 votes

Accessing 16-bit Registers: Is this an error in the ATTiny102 datasheet?

TL;DR; I believe this is a mistake in the datasheet - they occur sadly quite frequently. For write do High then Low, for read do Low then High. From the datasheet, you have: Accessing the low byte ...
Tom Carpenter's user avatar
1 vote

Accessing 16-bit Registers: Is this an error in the ATTiny102 datasheet?

You can use this online compiler to see the ASM output. https://godbolt.org/ And we can see that the proper order for the write operation is HIGH -->LOW. And for the read it is LOW ---> HIGH. ...
G36's user avatar
  • 17.6k

Only top scored, non community-wiki answers of a minimum length are eligible