This project is for measuring frequency of a digital signal. The project offer programmable selections and have many interesting features, below is a short summary of the working features of this project.:
It measures frequency directly.
By changing sampling or counting time , we can count pulses.
Auto resets after completing one counting time.
Displays the result for 2 Secs to note the number of pulses in that time.
Auto zeros, and start re-counting.
It allows manual operation like; start counting, Stop counting, reset to zero.
It allows user to change the time preset values of 0.1 Sec, 0.5 Sec, 1.0 Sec, 5.0 Sec, 10.0 Sec, 30.0 Sec, 60.0 Sec, and 120.0 Sec.
Easy to change to use different operations of counter.
Construction of Programmable Frequency and pulse counter. This project have multi-task and general purpose digital pulse counter, and can be simply called counter/ timer. The construction of this counter/ timer involves as under:
Micro-controller 8051 family, in this project i used at89c51 but any 8051 family microcontroller can be used.
Multiplexed Seven Segment display (common anode) with six digit display is used.
The Seven segments are directly controlled and interfaced with port 0 of micro-controller.
Selection of digits is made with port 2 of at89c51 micro-controller.
As port P0 do not have internal pull-up resistors, so at this port external pull-up resistor network or pack of 10K x 8 is used.
In the schematic of counter / timer circuit , you will see, TTL 47ls04 inverter is used, it works fine, but if you feel the brightness of display is slightly low, then you can replace this with any general purpose PNP transistor.
To start and stop counting, a digital gate is used , this is formed with TTL 74ls08, the AND GATE, which have two inputs and one output. One of the input is connected to microcontroller port pin P3.2 and other is input of signals. when counting is started P3.2 goes to logic 1 (digital logic 1 means +5V). So the pulses now reached to port pin P3.3 of micro-controller. Which external Interrupt 1, the microcontroller 8051 external interrupt is used to count the incoming pulses.
When stop counting function is active, P3.2 goes to logic low, and now no-longer pulses can reach to controller.
Crystal used in this project is 11.0592.
The counter/ timer can be attached to computer (PC) with RS-232 interface.
The counter/ timer send result after each cycle (counting time ) to PC via serial port at Baud rate of 9600.
Hyper terminal can be used to view to save the incoming results on PC.
Main sub routines of the program written in keil C51 are as follows.
This website is formed to help the students and designers to develop their projects with microcontroller. Electronics projects using 8051 family Microcontrollers. RS 232,RS 485,LM35,LM335,LM331, Frequency meter,ADC 0804,ADC0809,DAC08, KEY BOARD,DAQ matrix interface,I2C EEPROM 24c08,ADC12130,DCF77,LCD 2lines, 4 lines 80 characters etc codes and circuit diagrams. Copmuter Interface using serial port, printer or parallel port and USB port.
SERIAL port,printer port, parallel port,PLC,
Programable logic control, microcontroller, ATMEl, INTEL, 8051 family, At89s51, At89c51, At89c2051, clock,
example program in c language,make your own projects with microcontroller, Home made project, student degree projects,
keil c51, Stepper motor code,software, hardware, PID logic and algorithm, motion control, Industry requirment,
Transducer, sensor, pressure, temperature, humidity, Hight voltages, CT scan,MRI, AT89S51, AT90S8535, ATmega128,
Atmel ATmega, Atmel AVR, ATtiny12, CPLD, FPGA, Microchip PIC,PWM Using A Filter With Unity Gain Follower,PWM Using Software, MR0 And Interrupts ,8-Bit Serial D/A Converter - MAX522,Arithmetic
Addition, Subtraction, Multiplication,Double Precision , Addition,Subtraction,Multiplication,
3-digit decimal to 8-bit binary, 16-bit binary to 5-digit BCD conversion, Displaying temperature via a LCD,
Clock oscillator options, parallel port programmer, serial programmer, USB programmer of microcontroller