User Tools

Site Tools


en-us_commands:high_speed_counter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en-us_commands:high_speed_counter [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1en-us_commands:high_speed_counter [2026/09/12 23:27] (current) – 바깥 편집 127.0.0.1
Line 1: Line 1:
-====== High-Speed Pulse Input Counter ======+====== High-speed counter ======
  
-^ Command ^ Description ^ +Configure a supported board's high-speed input and read its count.
-''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|+
  
-<code cpp> +  * [[:en-us_commands:reference:tcntsetup|TCNTSETUP()]] — Configures timer external clock input and 32-bit extension mode. 
-void setup() { +  * [[:en-us_commands:reference:tcntout|TCNTOUT()]] — Returns the accumulated upper overflow value in 32-bit extension mode.
-  TCNTSETUP(1, true)+
-}+
  
-void loop() { +[[:en-us_commands:builtin|← Built-in function list]]
-  uint16_t overflowCount = TCNTOUT(1); +
-+
-</code> +
- +
-===== 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. +
- +
-[[:en-us_commands:builtin|← 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