Close or Esc Key

Arduino Projects   |   Raspberry Pi   |   Electronic Circuits   |   AVR   |   PIC   |   8051   |   Electronic Projects

PWM capture on PIC16F1613

2 posts / 0 new
Last post
priya's picture
Last seen: 2 years 3 months ago
Joined: 31/05/2016 - 10:11
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

Kris's picture
Last seen: 5 months 6 days ago
Joined: 11/01/2019 - 15:06
that is not

that is not 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