[atmega8] Can't wake up from sleep mode

Hi.

I am working with Atmega8 and I installed Timer/Count2 interrupt service routine. Following the Atmega8 manual, it is possilble that Timer/Count2 ISR can wake up sleep mode(power save)if AS2 is set in ASSR.

But, My code never wake up.

#include #include #include #include

void Uart_Put_Char(unsigned char data) { while ( !( UCSRA & (1

Reply to
ilovecpp
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.