I need to make a tachometer displaying the speed of the motor in revolution per second on an LCD for my project. I am using an atmega 32 microcontroller but I am having trouble with the program. I want to program my micro controller using embedded C. Kindly help me out please.
Get the Opto coupler output to the microcontroller through PO1.
Convert analog signal to digital by ADC and count the pulses using COUNTER 0.
Generate 1 second pulse duration using internal TIMER 1.
Perform AND logic between PO1 inputs counted by the COUNTER and the TIMER 1 output.
Count the no. of pulses present in the output of this operation.
Give the digital output to the 8 bit port for the LCD.