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.

STOPWATCH: PIC16F877A Questions

Status
Not open for further replies.

helloiamkat

Newbie level 4
Joined
Apr 24, 2010
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
LPC
Activity points
1,330
Hi. I am planning to create a stopwatch using switches (to signal the start and end of the watch) and PIC16F877A. I plan to use C++ for my programming.

I have a question though, how fo I choose the oscillator? I mean, should I consider this since I want the timer to be like real time??

Also, what other factors should I consider?

I have been doing some reading and I figured I need to use Timer1 for my project.

Thanks! Will be waiting for your replies. :)
 

C will be more suitable.
For real time, it is better to use an external RTC chip with the PIC or use a PIC with internal RTC.
The oscillator can be internal or external, I guess no problem with taht.
--
Amr
 

With RTC do you mean DS1307 or DS1302? A friend suggested I should look into those. :)
 

These are good options.
--
Amr
 

A DS1302/1307 will be of no use if the timing accuracy has to be very accurate. Their counting intervals are too long.

I would suggest using timer interrupts to generate 10mS intervals then counting them in software. It would be more accurate than an external timer IC and uses less (none!) extra components.

Brian.
 
Can it count 10 ms precisely?
--
Amr
 

At 20MHz clock speed, the '877A timer can count internal clock cycles at 5MHz (= 200nS). Counting as slow as 10mS is VERY easy!

The DS130x ICs can only count in increments of one second, that's 100 times less precise.

Brian.
 

My question is it wont be precise 10 ms.
--
Amr
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top