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.

pic 18F4520 interrupts

Status
Not open for further replies.

srjth.m1

Full Member level 3
Joined
Aug 6, 2012
Messages
157
Helped
6
Reputation
12
Reaction score
6
Trophy points
1,298
Location
India
Activity points
2,126
how can i enable external interrupts(RB0) in pic18F4520 am using Micro C Pro compiler
 

You would need to enable Global Interrupt by setting GIE=1. You then need to set the required INT module interrupt by setting, eg, INT0IE=1. Configure which edge to "use" for generating the interrupt by selecting the correct value for the required INTEDG bit. Go to section 9.0 - Interrupts in the datasheet for the registers.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top