Type in the full discussion title or a part of it.
Discussion Title Created date
Why it is promoted to int?
I have a simple function that should wait some number of ticks of Timer/Counter 2 (the target is ATMega48, C++). #define byte uint8_t void blockingDelay(byte ticksToWait) {...
Saturday, 12 September 2020 - 10:43
Power consumption during EEPROM write
A have a tiny low power project using ATTiny13A running from the internal 128kHz oscillator. I would like to save a few bytes to the EEPROM when power fails. I have tried to find...
Thursday, 11 June 2020 - 08:36
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