Code to measure frequency

  • #1
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.
 

Answers and Replies

  • #2
berkeman
Mentor
59,660
9,803
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?
 
  • #3
Averagesupernova
Science Advisor
Gold Member
3,848
774
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.
 

Related Threads on Code to measure frequency

  • Last Post
Replies
2
Views
15K
Replies
23
Views
5K
Replies
12
Views
10K
  • Last Post
Replies
12
Views
7K
Replies
2
Views
2K
  • Last Post
Replies
8
Views
1K
  • Last Post
Replies
20
Views
2K
Replies
7
Views
2K
Replies
20
Views
362
  • Last Post
Replies
1
Views
897
Top