Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Give the wave in an interrupt pin. During interrupt, start a timer and end it when the interrupt comes again (assuming a square wave). The timer value is period. You can calculate the frequency by taking the inverse.
If the sine wave is in positive amplitude (Within the input signal spec of microcontroller), your sine wave will appear to the microcontroller as a HIGH-LOW wave only.
High when sine wave amplitude is above "Vih min" threshold.
Low when sine wave amplitude is below "Vil max" threshold.
if i give any wave to microcontroller, is microcontroller give the period or frequency? i want an ic that convert any wave to pulse form which compatible with microcontroller .
Don't give the sine wave directly, use a comparator with the inverting terminal grounded. This will convert the sine to a square, then measure the time period of high signal as sankar.m8 explained. This will give half pulse time, double it to get the complete wave time, assuming you have a symmetric wave.
Yes. jayanthyk192 is right. You can use a comparator to convert sine wave to square wave. But it also possible to feed the sine wave directly to microcontroller if the sine wave is meeting its input electrical characteristics of microcontroller.
You can use ADC if you need a number of samples in the input analog signal, ie. for a n-bit ADC, you will get each bit change when the input voltage changes (Vref/2^n). Using comparator you will get only two values (Above Vref, Below Vref), you can say the comparator as a single bit ADC.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.