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.

PIC12f683 Ext IRQ on non-IRQ pin (GPIE or similar)

Status
Not open for further replies.

AlGeorge

Member level 1
Joined
Nov 17, 2009
Messages
39
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Waihi Beach
Activity points
1,606
Wanting to use MCLR as interrupt port change state - its set high. Prefer to use weak internal pull-up.
Tried this:
ioc.3=1; intcon.GPIE=1; //enable IOC bit for GP3, then GPIE
//in ISR checked for state when button pressed high to low thusly:
if (GPIE && intcon.GPIF)
//nosuch IRQ not being called
The logical port to use would be GP2/ext int port, unfortunately thats taken for something else.
If not possible on GP3 perhaps GP4/GP5 but have to turn off oscillator gates to stop internal oscillator and set the port high with weak pullup. Have had no joy there either. If anyone can point me to more information appreciated tks.
Alistair.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top