How would I duplicate a retriggerable one-shot multivibrator with PicBasic Pro software. I would like the time period to be variable(programmable T1). The trigger input would be the output from an A/D converter.