Code to measure frequency

  • #1

Main Question or Discussion Point

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
57,307
7,302
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,589
595
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
1
Views
809
  • Last Post
Replies
8
Views
499
  • Last Post
Replies
1
Views
2K
Replies
1
Views
5K
  • Last Post
Replies
1
Views
4K
  • Last Post
Replies
13
Views
1K
Replies
15
Views
2K
  • Last Post
Replies
8
Views
1K
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
2
Views
2K
Top