[fpc-pascal] Reading AM2302 temp/humid sensor on RaspberryPi?
Martin Schreiber
mse00000 at gmail.com
Thu Aug 23 11:54:14 CEST 2018
On Thursday 23 August 2018 11:11:34 Bo Berglund wrote:
> On Thu, 23 Aug 2018 09:00:07 +0200, Bo Berglund
>
> <bo.berglund at gmail.com> wrote:
> >I will need a higher resolution GetTickCount for this...
>
> Is there in fact a way (on Linux - Raspbian) to get a tickcount with
> higher resolution than 1 ms?
MSEgui has "timestamp()" (lib/common/kernel/msesysutils.pas) which returns
microseconds. MSEgui "ttimer" also has 1 us resolution.
> I need us so I can time between two events (pulse rise and pulse fall)
> which are 20 to 90 us apart...
>
I don't think that can be done reliably in user space.
Martin
More information about the fpc-pascal
mailing list