Code to measure frequency

  • #1
prescott2006
25
0
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
63,265
14,233
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
4,143
989
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.
 

Suggested for: Code to measure frequency

Replies
20
Views
1K
Replies
8
Views
779
Replies
5
Views
221
Replies
12
Views
541
  • Last Post
Replies
20
Views
2K
Replies
54
Views
1K
  • Last Post
Replies
10
Views
669
Replies
15
Views
521
Replies
17
Views
860
Replies
13
Views
537
Top