Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2016, 11:22:42 23:22


Login with username, password and session length


Pages: [1]
Print
Author Topic: 50MHZ Frequency meter + PIC18F452  (Read 2371 times)
0 Members and 1 Guest are viewing this topic.
pumper
Junior Member
**
 Muted
Offline Offline

Posts: 35

Thank You
-Given: 13
-Receive: 17


« on: March 24, 2012, 01:40:23 13:40 »

Hi this is my first post in this forum and I wanted to share something to you
this is part of my last project and this part is a 1-50 mhz frequency meter using pic18f452 and mplab-c18
this can be modified for other ranges.
I hope this will be useful for somebody. 
Logged

C++ is designed to give the programmer choice, even if this makes it possible for the programmer to choose incorrectly
SteveyG
V.I.P
Newbie
*****
Offline Offline

Posts: 21

Thank You
-Given: 2
-Receive: 9


« Reply #1 on: March 25, 2012, 08:58:44 20:58 »

Thanks for sharing. Have you thought about using the capture compare module instead, to avoid the potential inaccuracy in your timer ISR caused by the PIC18's 16 bit read/writes to the timer registers?
Logged
pumper
Junior Member
**
 Muted
Offline Offline

Posts: 35

Thank You
-Given: 13
-Receive: 17


« Reply #2 on: March 25, 2012, 09:36:17 21:36 »

If you look at the code before reading the frequency i make the LATA4 out put and make it 0 .
using this the timer 0 clock disabled and in the ISR period we have no clock in the pina3
Logged

C++ is designed to give the programmer choice, even if this makes it possible for the programmer to choose incorrectly
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC