Type in the full discussion title or a part of it.
Discussion Title Created date
What "Rr" in assembly means
I cannot find what "Rr" register name in assembly mnemonics means. "Rd" is probably Destination register but where comes the "r" from? "Source"?
Friday, 22 November 2019 - 10:54
ATMega48V - longer startup delay with external crystal
Hi, when using external crystal it should take only 14CK (+ optional WDT timeout) to "wake up" from reset. With ATMega48V I have tried different crystals (both clock crystal and a...
Thursday, 10 October 2019 - 09:53
How to change only part of the code with self-programming?
Hi, in my project I have remote sensors - they are based on ATMega328p as brains and nRF24L01+ for RF link. Since the signal range is marginal and there is no single channel that...
Saturday, 13 April 2019 - 10:10
Undocumented glitch in USART?
Hi, I am trying to make half duplex (over single wire) communication between ATTiny2313A and ATMega48V. I am using hardware USART on both devices. The Mega is running at 8Mhz with...
Wednesday, 5 September 2018 - 10:52
Check if two #defines define same register
Hi, I am using #defines for pin manipulation to make change of used pin easier such as  #define MyPin (1<<PB1) #define PORTMyPin PORTB ... PORTMyPin|=MyPin;It works...
Friday, 24 August 2018 - 19:21
Remove unused function warning for functions for #include files
Hi, for my (small) projects I am declaring all functions static because I believe it makes more optimizations possible (such as inlining the function). In my recent project I use...
Tuesday, 10 July 2018 - 08:55
Is timed sequence needed when changing WDT prescaler?
Hi, until today I have believed changing Watchdog prescaler in AVRs need the timed sequence - setting WDE and WDCE and in 4 clock cycles change the prescaler. But I did not use it...
Thursday, 5 July 2018 - 18:29
More devices in one project
Hi, for my project I have two ATMegas communicating wirelessly. So far I have one project for TX side and one project for RX side. When I want to change some definitions for the...
Wednesday, 3 January 2018 - 10:04
Too high power consumption of ATMega in Power-down
Hi, I would like to make low power project (<10uA average) and use ATMega for it. During the first test it had higher consumption than expected. So I removed code and...
Wednesday, 13 September 2017 - 19:24
[SOLVED] How to make volatile register variable
Hi, I would like to make 16 bit counter by increasing a variable on every overflow of 8 bit counter (on ATTiny13). To save cycles I wanted to use register variable and increment...
Tuesday, 8 August 2017 - 13:38
Timing of interrupts after enabling [SOLVED]
Hi, I know from Datasheet that when interrupts are enabled via SEI instruction one more instruction is executed before pending interrupts are executed (if any). But I did not find...
Tuesday, 20 June 2017 - 20:17
Characteristics of input protection diodes
Hi, AVR have (ESD protection?) clamp diodes on all inputs (except for reset). But the Datasheet tells little about them. I am aware about the app note about ZC detection. It says...
Thursday, 1 June 2017 - 07:53