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.

external interrupt for timer0 in PIC16F877A (urgent)

Status
Not open for further replies.

sana_akhtar

Member level 2
Joined
Apr 21, 2012
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,606
Hey

I am trying to start timer on the positive transition from external source like when I push the button, timer start counting.
The code I wrote works well with internal instruction clock but not from external source. I am really frustrated for not figure out whats wrong with this. Can someone please help me out. Please?
 

A typical push-button generates multiple transitions when you press it. This is known as 'switch bounce'

So either by circuitry (usually a R and C connected properly) or by means of clever software code, you have to 'de-bounce' your switch before it can be meaningfully used.

You can google these terms and see what you find.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top