CH341 USB TO I2C/SPI/EPP
Waveform Generator
AHT21, MAX6675 Thermometer
USB to I2C OLED
USB to LCD
USB Input Output
SD CARD
CH376 USB Picture Frame
SD FAT32 Player PIC12F1822
W25Q64 Flash Recorder
Picture Frame PIC16F690
Color OLED Picture Frame
SD FAT32 TFT Display
Doorbell with SD/EEPROM
SD Talking Clock
SD Sound Recorder
SD FAT32 wav Player
SD Arduino Recorder
Arduino Picture Frame
FREQUENCY COUNTER
AD9833 Waveform Generator
Chrome Browser Counter
Arduino LED MAX7219 Counter
LCD Accurate Counter
OLED Accurate Counter
MilliHertz Counter
PIC Counter For Android
MAX7219 LED Counter
WiFi Frequency Counter
Frequency Generator
OLED Counter PIC12F629
Talking Frequency Counter
TFT Counter PIC16F628A
SSD1306 Counter PIC16F628A
SSD1331 Counter PIC16F628A
Arduino Counter for PC
OLED Arduino Counter
OLED Frequency Counter
TFT 10MHz Counter
PC Counter
LED Counter
Scope Screen Counter
LCD 16 x 2 Counter
LCD Arduino Counter
6MHz Android Counter
NIXIE Android Counter
Bluetooth Counters
USB Counter
OBD2
OBD2 RPM meter PIC16F876A
OBD2 Engine Rev Counter
OBD2 Diagnostic app
OSCILLOSCOPE
Logic Analyzer
PIC12F1822 Scope for PC
Arduino Oscilloscope for PC
Arduino OLED Oscilloscope
Android Oscilloscope
TFT Oscilloscope
USB Oscilloscope
THERMOMETER
Thermocouple 1023 Deg
Thermometer For Browser
OLED Thermometer PIC12F629
OLED Room Thermostat
TFT Clock and Thermometer
LED Thermometer
USB Thermometer
Serial Thermometer
Serial Thermostat
USB DS18B20 Sensor
TIMER / CLOCK
Cuckoo Clock
Real Time Clock DS3231
LED TM1637 Timer
OLED Timer Thermometer
TFT Timer Thermometer
LED Timer
LCD Timer
Clock Thermometer
Talking Clock PIC16F628A
Android Talking Clock
WiFi
WiFi, Ethernet
WiFi Thermometer
WiFi ESP8266
USB
IO for Chrome Browser
USB 16x2 LCD
USB TFT display BMP
USB Meter
USB Input-Output
USB Input-Output Android
DATA ACQUISITION
Analogue to USB (CH341)
MCP3201 on Serial Port
PC Analog Input (USB-UART)
SERIAL PORT
Serial TFT Text
Serial Inputs Outputs
Serial Port LCD
Analogue Signal to Serial
OTHERS
HC-SR04 Sensor
OLED Amp Meter
PC digital I/O (no coding)
Analogue Signal to LPT
LCD Display on LPT
Water Softener
3.7V to 5V
Solar Charger
PIC Music
Code Lock
SMALL PROJECTS  
  Technical Tips  

FREQUENCY COUNTER DISPLAYED ON OSCILLOSCOPE

The display is a fast switching squarewave, on CRT display the vertical traces are hardly visible so the visible dotes are the horizontal traces. Each dot of the display is a trace of 20 uS. The voltage level for the dot is generated by the Vref generator which is part of the PIC16F628. PIC asm and C code, and a circuit diagram are included.
The counter time base is 1 second. During 1 second count the display is on, it goes off for the duration of the conversion from binary to decimal. The C version uses the compiler method of converting binary to decimal and the conversion time is about 0.5 second. In my assembler version the conversion requires 10 instructions for each bit hence 10 seconds for 1 MHz.
Set the oscilloscope time base to 1mS/div. Connecting the Trigger is optional but very useful. Set the scope input to 50mV/div. The signal level depends on the resistor connected across the output of the PIC, see circuit diagram. The purpose of the resistor is to compensate for low quality probe, with good probe the resistor can be removed and setting the scope input to 1V/div.
For the method of displaying text on oscilloscope screen I was mostly influenced by Emilio Pietro's project: http://ficara.altervista.org/microchip.php
Software includes PIC code (6KB). You are free to use the circuit diagram and the software with no limitations.

Circuit Description
See also Technical Tips

5V is the supply to the microcontroller.

Pin 12 is the frequency input, input signal has to be TTL type (for 5V supply).
Pin 11 is a trigger signal for the oscilloscope. If your scope has a good internal trigger then you can do without it.
The 3K3 resistor is to compensate for low quality probe, with good probe the resistor can be removed or increased to 10K.
The output signal level depends on the value of the resistor.
The other pins are not in use but must be left open circuit.



Name:

Comments and questions

Copy the number from the picture It stops net-robots from adding comments.



03.09.2016 - 22:14
Name: kris_from Cheshire England
Comment: Great little circuit - built one and fitted it to a probe style case all works - thank you for putting this up Regards kris - and happy building.

30.05.2015 - 23:29
Name:
Comment:

16.01.2013 - 16:58
Name: tohu
Comment:

iconFlag Countermoty22.co.uk  2008-2024