Rev.1.01 2007.02.16
RJJ10J1643-0101
68
[data4]
(M16C)
(H8/300H)
Specify
0.
(R8C)
Specify the set value for the prescaler register in 8 bits.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.
Functionality
Timer (event counter mode)
Reference
__EnableEventCounter
,
__DestroyEventCounter
,
__GetEventCounter
Remark
•
If an undefined value is specified in the first argument, operation of the API cannot
be guaranteed.
•
The specifiable timers differ with each CPU used.
•
When used for the H8/300H, this API specify when freeing it from module stanby
state.
Program example
#include "rapi_timer_r8c_13.h"
void TimerIntFunc( void ){}
void func( void )
{
/* Set up timer Y as event counter mode */
__CreateEventCounter( RAPI_TIMER_Y|RAPI_TIMER_ON|RAPI_FALLING, 5,
0x80, 0x80, TimerIntFunc );
}