Quote Originally Posted by Ioannis View Post
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