Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 26th April 2004, 08:18 AM   (permalink)
Default Stop watch, please help

Im currently working on a project with Pic 16f877, simulating a stopwatch with 3 seven seg display. 1 shows munite, and other 2 show 00->59 secs.
Can someone give me a sample code for it? I just need a counter of TMR1 and update the display every 1 sec. No buttons.
I will be so grateful for any replies.
Newbie 911
911 is offline  
Old 26th April 2004, 09:41 AM   (permalink)
Default Re: Stop watch, please help

Quote:
Originally Posted by 911
Im currently working on a project with Pic 16f877, simulating a stopwatch with 3 seven seg display. 1 shows munite, and other 2 show 00->59 secs.
Can someone give me a sample code for it? I just need a counter of TMR1 and update the display every 1 sec. No buttons.
I will be so grateful for any replies.
Newbie 911
Use timer2, it's a lot easier - I'm currently playing with timer2 running a clock - displaying hours, minutes, seconds, and hundredths on an LCD module. I'll probably be adding it as a tutorial later this year - from what I've got so far it would be extremely simple to add stopwatch facilities, and I'll be doing so as part of the tutorial.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 26th April 2004, 11:16 AM   (permalink)
Default

Oh Nigel, I visited you web tutorial. It is greatly helpful. If you dont minde, is it possible to give me some hints / sample code? :P
911 is offline  
Old 26th April 2004, 11:24 AM   (permalink)
Default

Quote:
Originally Posted by 911
Oh Nigel, I visited you web tutorial. It is greatly helpful. If you dont minde, is it possible to give me some hints / sample code? :P
Send me your email address in a PM and I'll send you my existing code when I get home - what clock frequency are you using?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 05:28 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker