bungee
Newbie level 1
Hi,
I am trying to count the number of TTL pulses using the PIC16F877 in "capture" mode but am having trouble doing so. These pulses are to appear at random from an external souce. I understand that this mode is only possible with PORTC<2> (RC2), and that some of the registers required are INTCON, CCP2CON, and CCP1IF (from register PIR1). I also require that the pulses be captured on every rising edge. Would anyone be able to help me with this. I'm also using C to program the PIC.
Thanks[/b]
I am trying to count the number of TTL pulses using the PIC16F877 in "capture" mode but am having trouble doing so. These pulses are to appear at random from an external souce. I understand that this mode is only possible with PORTC<2> (RC2), and that some of the registers required are INTCON, CCP2CON, and CCP1IF (from register PIR1). I also require that the pulses be captured on every rising edge. Would anyone be able to help me with this. I'm also using C to program the PIC.
Thanks[/b]