SetPin(GPnn), FIN query


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11602
Posted: 07:54am 26 Aug 2023      

  Quote  I note that currently Pin(GPnn), FIN returns an integer value.


It returns a floating point number but this is derived as the number of counts in 1000mSec (default) like any other frequency counter. so 50 counts in 1000 mSec gives a frequency of 50. Can't be anything but an integer in this case.If you set the gate time to 2 seconds and there are 101 counts in the period then you will get a frequency of 50.5.