why not make your own pulsin it maynot be perfect but it will give reliable results
set a 16 bit timer to overflow just past 3ms with appropriate pre and post scalers
then
my_pulsin:
txcon = 0 ;stop the timer x
tmrx.hi =0 ; reset timerx to 0
tmrx.low =0
while portf.x ; waiting for a low pulse
txcon = ? ; the appropriate setting
while !portf.x ; timing the low period
txcon = 0 ;stop the timer x
pulsletime.highbyte = tmrx.highbyte
pulsletime.lowbyte = tmrx.lowbyte
return
I just notice your clock is 32mhz so timer1 will give you a 8ms max time with a 1:1 prescale and a 1.25uS resolution , I'm no sure what the min measurable time woud be but it will be consistant
Bookmarks