User Tools

Site Tools


en-us_commands:high_speed_counter

This is an old revision of the document!


High-Speed Pulse Input Counter

Command Description
TCNTSETUP(timerNo, bit32) Configures timer external clock input and selects whether to use 32-bit extension.
TCNTOUT(timerNo) Returns the accumulated upper overflow value in 32-bit extension mode.
void setup() {
  TCNTSETUP(1, true);
}
 
void loop() {
  uint16_t overflowCount = TCNTOUT(1);
}

Command Prototypes

Return Type Command Prototype
void TCNTSETUP(uint8_t timerNumber, bool on32bit = false)
uint16_t TCNTOUT(uint8_t timerNumber)

Dedicated timer external clock mode is supported on MPINO-8A8R and MPINO-16A8R8T. For other products, check the product-specific interrupt inputs and use attachInterrupt(). Verify timer numbers and actual input pins against the selected product's documentation.

← Built-in Command List

en-us_commands/high_speed_counter.1788785565.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki