Eng.Binomairah
Newbie level 6
I need to know about how i can read PWM signal via PIC24F
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
waseem said:If this is the purpose then you can do it very easily by configuring the capture module to capture the time between two consecutive rising or falling edges.This will give you the frequency of the PWM signal. The capturing of time between a rising and falling edge will give you the ON time of the signal. The ratio of the ON time to the Total Time (measured in the previous step) will give you the duty cycle of the signal.
Regards.
Here is the code to measure the time period (frequency) of a signal using PIC24FJ64GA004. Try to understand it. Feel free to ask questions. Also try to refine it yourself because that is the only way you can learn programming. The zip file also has the simulation model for Proteus.
Regards.