вопрос в следующем
спящий режим не работает так как описано ткните gj;пожалуста пальцем что делается не так
авр студио 4.18
протеус кнопки на инт0-1 порт Б мигает светодиодами для наглядности
тинька не просыпается из PWR_DOWN mcucr 0x35
из режима Холостой-Idle просыпается от int0-1 mcucr 0x25
.include "tn2313def.inc"
.LIST
.def temp=r16;
.cseg;
.org 0x0000
rjmp reset
.org 0x0001
rjmp llll
.org 0x0002
rjmp llll
reset:
ldi temp, RAMEND;
out SPL,temp;
ldi temp,0xff;
out DDRB,temp
out PORTB,temp;
out PORTD,temp;
ldi temp,0x35
out mcucr,temp
ldi temp,0xc8
out gimsk,temp
sei
;======
main:
inc temp
out portb,temp
sleep
;======
rjmp main
llll:
reti


