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:
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,