[Flashforth-devel] Interrupts - frequency of servicing
Brought to you by:
oh2aun
From: Tristan W. <ho...@tj...> - 2019-12-11 06:26:35
|
Hello, I would like to measure the width of some pulses using FlashForth on a PIC18F14K50. My first thought was to do this using the capture mode of the ECCP unit - setting it to look for a rising edge then switch to look for a falling edge in an interrupt routine. I have a working interrupt routine which is seems to be serviced every millisecond (driven from the 1ms timer1/ticks in my p18-main.cfg?). However, the pulses I wish to measure are only a few hundred microseconds in length. Is there a way to increase the frequency of servicing of my interrupt routine or another way to approach this? Kind regards and thanks, Tristan |