User Tools

Site Tools


en-us_commands:reference:tcntout

This is an old revision of the document!


TCNTOUT()

TCNTOUT() returns the accumulated upper overflow value in 32-bit extension mode.

TCNTOUT command operation flow

uint16_t TCNTOUT(uint8_t timerNumber)

Commands

Command Arguments Return Value Operation
TCNTOUT(timerNumber) uint8_t timerNumber — External clock timer number supported by the product uint16_t Returns the accumulated upper overflow value in 32-bit extension mode.

Example

uint16_t overflowCount = TCNTOUT(1);

Precautions

  • Timer external clock mode is supported only by MPINO-8A8R and MPINO-16A8R8T.
  • Even on supported products, verify TCNT terminals and timer numbers using product documentation.
  • Do not interpret TCNTOUT() as a simple function for reading the current 16-bit counter.
  • In interrupt ISRs on other products, perform no work other than incrementing the count.

← Built-in Command List

en-us_commands/reference/tcntout.1788785569.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki