7-digit counter |
|
This is 7-digit counter (frequency meter) measuring frequency up to 35 MHz. The decimal point is after MHz digit. Hardware is very simple: It contains :
Note: The counter uses internal prescaler of PIC as low byte of counter, TMR0 as middle byte and some register as high byte of counter. Some ideas were taken from "Simple low-cost digital frequency meter using a PIC 16C54" (frqmeter.asm) written by James Hutchby, MadLab Ltd. 1996 LCD interfacing was taken from AN587 and mainly from LCD.ASM written by Peter Ouwehand. This software is free for private usage. It was created for HAM radio community members. Commercial exploatation is allowed only with permission of authors.
The measuring period is 100 000 us.
Number of procesor cycles per measuring period:
The main steps of measuring period:
Total timing formula:
N = 25 000 x fx = ((9*T1+4)*T2+4)*T3+5+9*T4+Z
How to set T1,T2....? Take prepared program! You need also include files.
|