pic12f675 sleep mode

Status
Not open for further replies.

yamine

Member level 1
Joined
May 4, 2012
Messages
37
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,507
hi,
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,
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…