khansaab21
Advanced Member level 4

Hello everyone.
I am using PIC16F628 (1 CCP) in my current project.
Basically this controller will be receiving pulses from a standard remote control (say SONY remote control). And in order to decode the instruction sent from the remote, two things have to be recorded from the incoming signal.
1. Pulse width for each high and each low (where 1=1200us (high), 0=600 (high) and gap between consecutive logics is 600us(low))
2. The no. of 1's and no. 0's in the instruction along with a starting high of 2.4ms.
Can any body plz tell me how can measure the pulse width directly from the PIC and also record the the no. of 1's and 0's in the signal.
I am using PIC16F628 (1 CCP) in my current project.
Basically this controller will be receiving pulses from a standard remote control (say SONY remote control). And in order to decode the instruction sent from the remote, two things have to be recorded from the incoming signal.
1. Pulse width for each high and each low (where 1=1200us (high), 0=600 (high) and gap between consecutive logics is 600us(low))
2. The no. of 1's and no. 0's in the instruction along with a starting high of 2.4ms.
Can any body plz tell me how can measure the pulse width directly from the PIC and also record the the no. of 1's and 0's in the signal.