Originally posted by Aldere42
View Post
Just click on then and SAVE to your local drive.

to measure the time of the signal when high. This uses the PIC's Voltage Comparator and an external Vref (10k trim pot) to adjust comparator thresholds. On a high going signal a PIC timer is started (actually just zeros TRM0) and then reads the timer value when signal goes low. This gives the length (time) of the high part of the TX waveform. After power up and a delay to allow the analog circuits to stabilize, multiple time measurements a taken then averaged and saved as the "no target" time.
Comment