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 ...
                
            
       
        
            
                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'...
                
            
       
        
            
                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
                
            
       
        
            
                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 ...
                
            
       
        
            
                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 ...
                
            
       
        
            
                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.
...
                
            
       
        Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
avr × 1932atmega × 438
microcontroller × 425
arduino × 229
c × 204
attiny × 146
atmel × 127
interrupts × 126
uart × 108
spi × 96
avr-gcc × 94
avrdude × 91
adc × 79
assembly × 75
timer × 71
atmega328p × 70
isp × 70
pwm × 69
usb × 66
i2c × 61
programming × 57
embedded × 54
serial × 50
programmer × 50
bootloader × 43