yamine
Member level 1
hi,
i want to my pic12f675 to enter in sleep mode, and wake up by pin interrupt;
this is my code:
by this code i can wake up by MCLR but i want also wake it by GP2/INT pin,
what should i add to this code to wake up with GP2/INT pin *??
regards,
i want to my pic12f675 to enter in sleep mode, and wake up by pin interrupt;
this is my code:
Code:
INTCON=0xD0;
OPTION_REG=0;
IOC=0x0f;
WPU=0x27;
TRISIO = 0x0F; // output GP4
#asm
sleep;
#endasm
while (1);
by this code i can wake up by MCLR but i want also wake it by GP2/INT pin,
what should i add to this code to wake up with GP2/INT pin *??
regards,