- This topic has 1 reply, 2 voices, and was last updated 6 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › PWM capture on PIC16F1613
Dear all,
I’m using a PIC16F1613,want to measure (input PWM)TON of a signal. An event (Capture Mode) is defined at Every edge. I noticed that CCPR1H and CCPR1L capture TON as well TOFF. My question is how can i defined only TON ,and suppose input signal is full ON/OFF signal how can i detect ?
thanks in advance
that is not possible…in capture mode, event must trigger either for every falling edge or every rising edge, or every 4th rising edge or every 16th rising edge depending upon the value of CCP1M3 – CCP1M0. there must be some issue in the function handling the event