
Originally Posted by
Ioannis
P.S. Oh I got it. But Alain, this is settling time, not bit width time.
Hi, Ioannis
looks the sensor output is seen by the PIC like a small capacitor ...and this capacitor is discharged by the low state of the pic pin ... not by the sensor itself.
this is a little confusing in the datasheet as the settling time is called as bitwidth time !!!
That explains why Ingvar's program works well ...
INPUT Datapin 'Let PIR control the Datapin
PIRdata.0(i) = Datapin 'Sample the datapin
surely need more than 1µs to be done !!! ...
Thanks, Ingvar ... we've learnt something !
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks