Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

pic12f675 sleep mode

Status
Not open for further replies.

yamine

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top