Hello
I am facing issue while wake up ATtiny424 from Standby mode. In data sheet mentioned that controller can wake from Standby using Port pin also need to Set the RUNSTDBY and i have set that also.
still facing issue.
Configuration which i have done using Atmel start online tool attached
Here i am sharing simple code please have look, please have look and let me know if any have solution of this issue.
ISR(PORTA_PORT_vect) { //printf("Enter In ISR\r\n"); PORTA.OUT |= PIN7_bm; PORTA.OUT |= 0x10; PORTA.OUT |= 0x40; PORTA.OUT |= 0x08; PORTA.INTFLAGS |= PIN5_bm; // set pin as interrupt _delay_ms(10000); //printf("Exit ISR\r\n"); } int main(void) { /* Initializes MCU, drivers and middleware */ atmel_start_init(); PORTA_set_pin_dir(PIN2_bm, PORT_DIR_OUT); PORTA.DIR |= 0x10; PORTA.DIR |= 0x40; PORTA.DIR |= 0x08; _delay_ms(10000); //printf("Program Start\r\n"); while (1) { PORTA.OUT &= ~PIN7_bm; PORTA.OUT &= ~0x10; PORTA.OUT &= ~0x40; PORTA.OUT &= ~0x08; //printf("Enter In Sleep\r\n"); //USART_0_write('A'); sleep_mode(); _delay_ms(200); //printf("\n"); _delay_ms(1000); PORTA.OUT &= ~PIN7_bm; PORTA.OUT &= ~0x10; PORTA.OUT &= ~0x40; PORTA.OUT &= ~0x08; } }