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.

Setting a pin as digital one for External Interrupts

Status
Not open for further replies.

natraj20

Member level 3
Joined
Oct 28, 2010
Messages
65
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Florida
Activity points
1,769
Why do we have to define a pin as a digital one for external interrupt ??
Is that to just differentiate the pin working in two different states high and low for a trigger ? Or is there any specific reason for doing this ??
 

hi,

Think you have hit the nail on the head there - plus as some pins default to analogue at power up, its important you clearly define them as Digital.
 

Thanks wp100,
Another problem i have is that whenever i try to set the external interrupt pin INT0/RB0 as a digital one in the PIC 18F47J53 controller, the interrupt flag bit INT0IF is being set at the same step and could not be cleared by software in the subsequent statements. I know this is weird but i could not understand why or what is the association between these two bits. For all other external interrupts, it works perfect with the ANCON and INTCON registers. Is there anyway i could debug this problem? :(

---------- Post added at 09:25 ---------- Previous post was at 09:18 ----------

Sorry for the above post, When i switched the Edge detection on the external interrupt from rising edge to the falling edge, it is working the way it should.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top