Tool/software: TI-RTOS
Hello:
I have a phototransistor measuring the output of an IR LED at 5 second intervals. The instruction sequence for this process is as follows:
1) Open Pin driver
2) raise pin high that drives the IRLED
3) Task_sleep ( 500 );//clock interval is set to 10 uS
4) Open ADC driver
5) Take measurement
6) Lower Pin driving LED
7) close ADC driver
8) close Pin driver
The reason for the Task_sleep() is that I don't get a reasonable reading without the delay (this value was determine through trial and error experimentation). Does the PIN driver have a slow transition time, perhaps to minimize any ringing that could interfere with the RF? Unfortunately, I do not have a scope to measure this and the datasheet did not mention any pin transition timing.
I don't view this as a deal breaker for my application, but I an curious as to what might be driving the requirement to include the delay.
Thank you,
Michael