View Full Version : code to measure frequency
prescott2006
Mar1-10, 12:00 PM
i want to use measure the frequency of the square wave input at RA4/T0CKI of PIC16F84. so how should i start writing the code? anyone can provide some draft of the c code? thanks.
berkeman
Mar1-10, 12:09 PM
i want to use measure the frequency of the square wave input at RA4/T0CKI of PIC16F84. so how should i start writing the code? anyone can provide some draft of the c code? thanks.
You should be writing your own code -- that's how you learn. What timer/counter resources does that PIC have to offer? What frequency range does your input square wave have?
Averagesupernova
Mar1-10, 02:30 PM
When I started in PICs I had never wrote a line of C and had never done any programming of any microcontroller at all. I handled it just fine without anything except the datasheet for the microcontroller and a book (very basic) on C. I'm sure you can do it.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.