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

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