Edge detector


Current Status:    Complete
Date:                   7th June 2011
License:               Creative  Commons Attribution 3.0 Unported License
Design summary: Using the PIC12F675 development board, this software detects the time between servo pulses.
Creative Commons License
PIC edge detector design by Ian Stedman is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License

 

Desgin description

This software was written using BoostBasic, to detect an interrupt on the Timer 1 input, of the PIC12F675 and when it has been detected, flash an LED. This was test code for another project, a glow plug controller (not published yet), to get to grips with edge detection, use of the externally triggered Timer 1 input and interrupts.

I used the PIC12F675 ICD adaptor, which was invaluable in debugging the code. As the PIC12F675 is only an 8 pin device, it can not be debugged in circuit. The ICD adaptor plugs into the 8 pin DIL socket in place of the original device and connects to a PICKIT 2/3 or ICD3.

Source code
Download the full sourcecode here: 22K zip
 

Updated 08 July 2017