Hello, I am using a ATSAMS70 and I set back up mode in order to keep RTT between uses and reduce power consumption at its minimum without removing the batteries.
My question is where should the code go after exiting back up mode.
Restarting and going to the line where main function begins or going to a specific interrupt routine?
I am using WKUP pin 4 to wake up the chip.
Before calling "supc_enable_backup_mode(SUPC);", I do:
pio_configure_interrupt(SWS_PIO, SW4_PIN_MSK, SWS_ATTR_BOTHMODES);
supc_set_wakeup_inputs(SUPC, SUPC_WUIR_WKUPEN4, SUPC_WUIR_WKUPT4_LOW);
supc_set_wakeup_mode(SUPC, 0); "
I would like to confirm if my board behaves correctly.
Thanks in advance!
AT91EB40A, EB55, EB42 Evaluation Boards , AT91RM9200-DK, RM3400-DK will be the focus of the discussions: hardware guidance, embedded software, use,...
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest