0% found this document useful (0 votes)
171 views18 pages

Frequency TwoMode UART

This device is a 60MHz LCD frequency counter that can measure frequency, voltage, and temperature. It has two modes: 1) frequency counter with temperature and voltage meter, and 2) frequency counter with a user-defined IF offset. Frequency can be measured from 1Hz to 60MHz with accuracy of ±0.01%. It interfaces with a computer via UART to output frequency data.

Uploaded by

dani385ar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
171 views18 pages

Frequency TwoMode UART

This device is a 60MHz LCD frequency counter that can measure frequency, voltage, and temperature. It has two modes: 1) frequency counter with temperature and voltage meter, and 2) frequency counter with a user-defined IF offset. Frequency can be measured from 1Hz to 60MHz with accuracy of ±0.01%. It interfaces with a computer via UART to output frequency data.

Uploaded by

dani385ar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

60MHz LCD Frequency Counter

Temperature & Voltage Meter


IF Offset (User definable)
Read Frequency Counter value
from UART Interface
This board is Frequency Counter which was already assembled and
tested.
Frequency measurement 1Hz to 60MHz and Auto Range.
Frequency Input Sensitivity 200mV to 300mV.
Frequency Measure cycle 1 second.
Frequency Measure Accuracy: Guarantee 0.01%.
Onboard Microchip PIC16F883 (Crystal Oscillator 20MHz, +/-20
ppm), better than others onboard PIC16F628A (4MHz) Frequency
Counter.
Power Circuit (TO-220, 7805, Vin=7V~16V, Vout=5V).
16x2 Character LCD Display Module HD44780 Controller blue black
light.
Three Keyboards Circuit to select two Mode:
(1)60MHz Frequency Counter +Temperature & Voltage Meter
(2)60MHz Frequency Counter + IF Offset (User definable IF Offset)
The programmable Mode and IF offset parameters are stored in
PIC16F883 non-volatile EEPROM.
Programmable display calculation: Direct, VFO+IF, VFO-IF, IF-VFO.
Display Voltage Meter & Temperature (You must buy Digital
Temperature DS18B20 in additional).
Read Frequency Counter value from UART Interface:
UART interface Circuit (VCC,RX,TX,GND Pin) :19200 bps, 8 bits data,
1 stop bit, 1 start bit.
Hyper Terminal which is free from Microsoft. to catch up the data to
show on the screen
PCB Size: 83x48mm.
PressEnter=>Enter Setup Mode Function
Press Up =>Frequency Counter +Temperature & Voltage Meter
Press Shift=>Frequency Counter + IF Offset
I. 60MHz LCD Frequency Counter +
Temperature & Voltage Meter
(1) Display Frequency Counter 1HZ to 60MHz
(2) Voltage Meter(Voltage Range =0V~55V)
(3) Temperature measure range= -50 to +125C (You must buy Digital
Temperature DS18B20 in additional).
MAXIM DS18B20 Pin Configurations
II. 60MHz LCD Frequency Counter + IF Offset
(User definable IF Offset)
(1)Press Up Select=> Direct, VFO+IF, VFO-IF, IF-VFO
(2)Press Enter=>Enter IF Offset Value Function
(3)Press Up or Shift=>Setup IF Offset Value

Frequency Counter LCD Display Rule:


case "Direct":
LCD Display Line1=>VFO
case " VFO+IF":
LCD Display Line1=>VFO+IF
case "VFO-IF":
if (VFO>IF)
LCD Display Line1=>"VFO-IF"
if (VFO<IF)
LCD Display Line1=>0
case "IF-VFO":
if (IF>VFO)
LCD Display Line1=>"IF-VFO"
if (IF<VFO)
LCD Display Line1=>0
III. 60MHz LCD Frequency Counter to UART Data
Read Frequency Counter value from UART Interface:
UART interface Circuit (VCC,RX,TX,GND Pin)
19200 bps, 8 bits data, 1 stop bit, 1 start bit.

Note:
If you use the USB to UART TTL Cable module PL2303 Converter
connect to Computer, you cannot use V_In=7~16V otherwise the USB
to UART TTL Cable module PL2303 Converter will be damaged.
Hyper Terminal which is free from Microsoft. to catch up the data
to show on the screen
USB to UART TTL Cable module PL2303 Converter:
(You must buy this Cable in additional).
Brand New and High Quality
PL-2303HX USB to Serial Controller adopted
Approximately 1m long cable
4 connecting wires, 2.54mm pitch type. red= 5V , black= GND ,
white= RXD , green= TXD
Supports baud rate from 75 to 128000
Support Win 98 or above (Win 7 64-bit Supported) , MAC OS X or
above , Linux
Official Drivers for Win 98 or above (Win 7 64-bit Supported) , MAC
OS X or above , Linux
(http://www.prolific.com.tw/eng/downloads.asp?ID=31)
Drivers for Win Vista and 7 if you received CODE 10 with official
drivers -
(http://www.r3cube.com/Drivers-software/PL-2303-Vista7-Driver-In
staller.exe)

Note:
USB to UART TTL Cable module PL2303 Converter:
Red: 5V, Black: GND, White: RXD, Green: TXD.
System Circuit Diagram:

LCD 16x2 Module Circuit


PIC16F883 Circuit

Power Circuit (Vin=7V~16V,Vout=5V)

Voltage Input Circuit (Voltage Range =0V~55V)


A1=Voltage Input*[10k/(100K+10K)]
Ex: Voltage Input=45V
A1(PIC16F883 AN0,Pin 2) =>45V*(10K/110K)=4.09V
ADC Value=(4.09/5)*1024=838
Frequency & RPM Input Circuit(fmax=50MHz)
It was needed only an amplifier stage to raise the input signal level
from 200-300 mV p.p. to about 3 volts p.p. A self biased common emitter
amplifier produces a pseudo-TTL driving signal. The 10uH inductor in the
collector lead helps extend the high frequency response. Any "fast" NPN
transistor should be suitable. The basic idea comes from the AN592
Microchip application note: "Frequency counter using PIC16C5x" where
you may find a simple software with implements a frequency counter
using a PIC micro controller. I wrote a specifically designed software to
improve the counter resolution, to handle the IF mode and value by
means of an operating menu, to decode and edit the read frequency on
an LCD display. The result was a simple and effective device.
Frequency Test Board Diagram & Report:

Note:
Frequency measurement 1HZ to 60MHz and Auto Range.
Frequency Input Sensitivity 200mV to 300mV.
Frequency Measure cycle 1 second.
Frequency Counter Accuracy: Guarantee 0.01%.
Onboard Microchip PIC16F883 (Crystal Oscillator 20MHz, +/-20 ppm),
better them others onboard PIC16F628A (4MHz) Frequency Counter.
74390=TI SN74LS390
Frequency Test Board OSC= 32.000000MHz
OSC=32MHz, Frequency Measure =32.000030MHz

OSC%10=3.2 MHz, Frequency Measure =3.200002MHz

OSC%100=320 KHz, Frequency Measure =320.001KHz


OSC%1000=32 KHz, Frequency Measure =32.000KHz

OSC%10000=3.2 KHz,Frequency Measure =3.200KHz

You might also like