Timer Component
Posted: Fri Oct 15, 2021 1:36 pm
Hi, I'm having trouble with this component. Trying to measure an 80mS period. Using GetCountMicroseconds() the return value is ULONG. A ULONG
variable is 0 - 0xFFFFFFFF. 80mS (82000 microseconds) measures as 0x00014050 but the Timer component only returns 00004050. I know I can use
GetCountMilliseconds but I need the resolution of microseconds. Is there a bug or should the return value be UINT?
The processor is a PIC16F1938. Flowcode V8.2.2.15 Thanks, Dave.
variable is 0 - 0xFFFFFFFF. 80mS (82000 microseconds) measures as 0x00014050 but the Timer component only returns 00004050. I know I can use
GetCountMilliseconds but I need the resolution of microseconds. Is there a bug or should the return value be UINT?
The processor is a PIC16F1938. Flowcode V8.2.2.15 Thanks, Dave.