User`s manual
Applilet EZ for HCD Controller
APPENDIX F 16-BIT TIMER/EVENT COUNTER 00 FUNCTIONS
R20UT0435EJ1200 Rev. 12.00 58
Jul 31, 2014
[Return value]
Processing result Successful ... TRUE (1)
Failed ... FALSE (0)
[Parameter]
unsigned char ucUnit ..... Unit of interval setting value
UNIT_SEC............1 s
UNIT_MILLISEC.......1 ms
UNIT_MICROSEC.......1
s
UNIT_NANOSEC........1 ns
UNIT_FALLING_EDGE...Number of times the falling edge of the TI000 pin is
detected
UNIT_RISING_EDGE....Number of times the rising edge of the TI000 pin is
detected
UNIT_BOTH_EDGE...Number of times the rising or falling edge of the TI000 pin is
detected
unsigned long ulValue ..... Interval setting value
[Prototype definition source]
TM00Int.h
[Remark]
A failure will be returned if this function is called while starting TM00.
(2) TM00Int_user.c
__interrupt void Interval_interrupt( void )
[Processing overview]
This is the interval interrupt handler.
The processing content is to be described by the user.
[Return value]
None
[Parameter]
None
[Prototype definition source]
TM00Int_user.c
(3) TM00Pls.c
void PulseMeasure_init(void)
[Processing overview]
This function initializes TM00 as the pulse width measurement function.
After TM00 is initialized, it is stopped, and PulseMeasure_Start() must be called to start it.
[Return value]
None
[Parameter]
None
[Prototype definition source]
TM00Pls.h