Post Created date
avr-g++ treats SFRs differently re constexpr in v 5.4 v/s 7.2
El Tangas wrote: The one with static_assert gives errors in gcc 7.2:   main.cpp(42,1): error: non-constant condition for static assertion static_assert (testok, "not...
Wednesday, 25 October 2017 - 10:28
How to do a reset in Assembler?
Scroungre wrote:For example, I as practically cut-n-paste boilerplate always have my AVRs set all their pins to high-impedance inputs as about the first thing in every program....
Wednesday, 25 October 2017 - 10:08
How to do a reset in Assembler?
Scroungre wrote:I generally assume that no state on powerup can be trusted. Again, I can't agree. Initial state of the MCU on powerup or reset for any other reason is indicated in...
Wednesday, 25 October 2017 - 09:09
How to do a reset in Assembler?
volterius wrote:Hello, how to do a reset without having to press the button of the  Atmega 2560 microcontroller, using ASM? Volterius, why do you want to reset the MCU?
Wednesday, 25 October 2017 - 08:30
How to do a reset in Assembler?
Scroungre wrote:True, the MCU could be left in some indeterminate state, but since my code initializes everything important right after reset, what the rest of the CPU is doing is...
Wednesday, 25 October 2017 - 08:17
ATMEGA1284P
So this is Atmega1284, not Atmega1284P. The correct signature is 1e 97 06.
Wednesday, 25 October 2017 - 07:08
How to do a reset in Assembler?
Scroungre wrote:jmp 0 or rjmp 0x0000 would do nicely This is not good way to reset. It only restarts your code, not the microcontroller.
Wednesday, 25 October 2017 - 06:48
avr-g++ treats SFRs differently re constexpr in v 5.4 v/s 7.2
skeeve wrote:I deliberately did not use const on testok. const is required by static_assert
Wednesday, 25 October 2017 - 06:44
avr-g++ treats SFRs differently re constexpr in v 5.4 v/s 7.2
skeeve wrote:// an ugly workaround constexpr int test=43; static int testok=(test==(int)&PORTD); int main() { // compilation failure if testok not known true if(!testok) asm...
Tuesday, 24 October 2017 - 20:37
ATMEGA1284P
I think 1e 97 06 is device signature for ATmega1284, not ATmega1284P. Are you sure your microcontroller is ATmega1284P, not ATmega1284?
Tuesday, 24 October 2017 - 11:47
Transistor failure in switching circuit even with freewheel diode
Are you going to show us the circuit diagram?
Tuesday, 24 October 2017 - 09:37
Storing a Value to EEPROM When Power is Shut Off to a ATtiny841
Use oscilloscope to find out how quiclky supply voltage drops so you will know how much time you actually have to write EEPROM. I recommend to use CLKPR register to lower clock...
Wednesday, 18 October 2017 - 05:48

Pages