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.

[SOLVED] RB0 interrupt in Pic16f877a

Status
Not open for further replies.

vinodstanur

Advanced Member level 3
Joined
Oct 31, 2009
Messages
751
Helped
114
Reputation
234
Reaction score
114
Trophy points
1,333
Location
Kerala (INDIA)
Activity points
7,054
Can i configure(software) RB0 interrupt(in PIC16F877A) in such a way that interrupt occurs on a high to low transition at the RB0?
I had already connected a TSOP o/p to RB0. But TSOP is an active low device.

Otherwise i need to NOT the TSOP o/p before connecting to RB0.:-(
 

yes definitely you can select high to low or low to high either.
you just have to set the bit INTEDG in OPTION_REG..
just read that if your compiler gives you an option or you have to do it yourself..
in CCS compiler we have a seperate function for that..
ext_int_edge( 2, L_TO_H); // Set up PIC18 EXT2
ext_int_edge( H_TO_L ); // Sets up EXT
 
thanks hussain....and just now only i had seen it in the datasheet of pic16f877a.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top