Where can I find a draft of C code to measure frequency using PIC16F84?

Click For Summary
SUMMARY

The discussion centers on writing C code to measure the frequency of a square wave input at the RA4/T0CKI pin of the PIC16F84 microcontroller. Participants emphasize the importance of self-learning and understanding the timer/counter resources available on the PIC16F84. They recommend consulting the microcontroller's datasheet and utilizing basic C programming skills to develop the code independently. Key considerations include the frequency range of the input signal and the specific capabilities of the PIC16F84.

PREREQUISITES
  • Understanding of PIC16F84 microcontroller architecture
  • Basic knowledge of C programming
  • Familiarity with timer/counter functionality in microcontrollers
  • Ability to read and interpret microcontroller datasheets
NEXT STEPS
  • Research timer/counter configuration for PIC16F84
  • Learn about frequency measurement techniques in embedded systems
  • Explore C programming best practices for microcontroller applications
  • Review example projects using PIC16F84 for frequency measurement
USEFUL FOR

Embedded systems developers, electronics engineers, and students learning about microcontroller programming and frequency measurement techniques.

prescott2006
Messages
24
Reaction score
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.
 
Engineering news on Phys.org
prescott2006 said:
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?
 
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.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
4K
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
2
Views
3K
Replies
3
Views
3K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K