User`s manual

Applilet EZ for HCD Controller
APPENDIX F 16-BIT TIMER/EVENT COUNTER 00 FUNCTIONS
R20UT0435EJ1200 Rev. 12.00 57
Jul 31, 2014
APPENDIX F 16-BIT TIMER/EVENT COUNTER 00 FUNCTIONS
(FOR
PD78F8024/78F8025 AND 78K0/Ix2 ONLY)
Driver functions are provided for using 16-bit timer/event counter 00 as an interval timer or for pulse width
measurement.
When using the functions, they must be added to a PM+ (integrated development environment) or SubeSuite+ project.
Add TM00Int.c and TM00Int_user.c to the project when using 16-bit timer/event counter 00 as an interval timer, and
add TM00PIs.c and TM00PIs_user.c to the project when using 16-bit timer/event counter 00 for pulse width measurement.
Cautions 1. 16-bit timer/event counter 00 functions is not support with RL78/I1A.
2. TM00 cannot be used in variable mode or when using UART0 or UART6 for internal high-speed
oscillation.
3. 16-bit timer/event counter 00 functions cannot be used while DALI or the EZ-0011 board is used.
(1) TM00Int.c
void IntervalTimer_init(void)
[Processing overview]
This function initializes TM00 as an interval timer.
After TM00 is initialized, it is stopped, and IntervalTimer_Start() must be called to start it.
[Return value]
None
[Parameter]
None
[Prototype definition source]
TM00Int.h
void IntervalTimer_Start(void)
[Processing overview]
This function starts a count operation of TM00 that has been initialized.
Interval interrupts are set to be unmasked and the interrupt handler is set to be called.
[Return value]
None
[Parameter]
None
[Prototype definition source]
TM00Int.h
void IntervalTimer_Stop(void)
[Processing overview]
This function stops the count operation of TM00.
Interval interrupts are set to be masked and the interrupt handler is set not to be called.
[Return value]
None
[Parameter]
None
[Prototype definition source]
TM00Int.h
unsigned char IntervalTimer_SetInterval( unsigned char ucUnit, unsigned long ulValue )
[Processing overview]
This function reflects the interval specified by a parameter to the interval setting-related registers (CR000,
PRM00) of TM00.