Timer Input Get

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Revision as of 12:53, 22 March 2017 by Roel (talk | contribs) (Created page with "{{HANcoder/block |info = Reads the information from a timer input pin. '''Outport''' Frequency The last measured frequency on the pin in Hz. Duty cycle The last mea...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Supported Targets: Olimexino, E407, P405

General information about Timer Input Get

Reads the information from a timer input pin.


Outport

Frequency

The last measured frequency on the pin in Hz.


Duty cycle

The last measured duty cycle on the pin as a % with a scaling factor of 100 for improved resolution. So 5000 = 50% for example.


Edge count

The number of edges that were detected on the input pin since startup.


Edge timestamp

A 32-bit timestamp value of the last edge. The timestamp is derived from an internal 32-bit free running counter that runs at 24 Mhz.


0 Hz detected

A boolean flag that will go high if no edges were detected for the time specified as the zero Hz detection time. Upon the next edge the flag will go low again.

Block

TimerInputGet.png

Mask

File:TimerInputGet.pngMask.png