I did a similar camera control several years back. I used HPWM which will go to 38+KHz if you define the oscillator as one value then load a crystal of twice that value.
For example
DEFINE OSC 10 but in practice load a 20 MHz crystal.
HPWM 1, 127, 19400
That shags all your other timings so it can get tricky with other delays and serial in/out but it works for me.
HTH
BrianT




Bookmarks