User`s manual

Applilet EZ for HCD Controller
APPENDIX F 16-BIT TIMER/EVENT COUNTER 00 FUNCTIONS
R20UT0435EJ1200 Rev. 12.00 59
Jul 31, 2014
void PulseMeasure_Start()
[Processing overview]
This function starts a count operation of TM00, which has been initialized, in clear & start mode set by inputting
the valid edge of the TI000 pin.
Interrupts are set to be unmasked by detecting the valid edge of the TI000 pin and the interrupt handler is set to
be called.
[Return value]
None
[Parameter]
None
[Prototype definition source]
TM00Pls.h
void PulseMeasure_Stop()
[Processing overview]
This function stops the count operation of TM00.
Interrupts are set to be masked by detecting the valid edge of the TI000 pin and the interrupt handler is set not
to be called.
[Return value]
None
[Parameter]
None
[Prototype definition source]
TM00Pls.h
void PulseMeasure_GetPulseWidth( unsigned long* ulPulseCycle, unsigned long* ulHighWidth, unsigned long*
ulLowWidth )
[Processing overview]
This function acquires the measured pulse cycle and positive and negative pulse widths.
[Return value]
None
[Parameter]
unsigned long* ulPulseCycle ..... Pointer of the area in which the pulse cycle is to be stored
unsigned long* ulHighWidth ..... Pointer of the area in which the positive pulse width is to be stored
unsigned long* ulLowWidth ..... Pointer of the area in which the negative pulse width is to be stored
[Prototype definition source]
TM00Pls.h
[Remark]
The pulse cycle and positive and negative pulse widths are stored in the form of a count value of TM00.
Their values must be converted to time values, based on the time of one count of each setting.
Time of one count of each setting
4 MHz 8 MHz 16 MHz
MEASURE_RANGE_FPRS_1 0.25
s 0.125
s 0.0625
s
MEASURE_RANGE_FPRS_2_2 1
s 0.5
s 0.25
s
MEASURE_RANGE_FPRS_2_8 64
s 32
s 16
s