Rev.1.01 2007.02.16
RJJ10J1643-0101
93
[0]: The value of timer RA prescaler register is stored.
[1]: The value of timer RA register is stored.
(H8/300H)
• When using timer W (RAPI_TIMER_W specified)
[0]: (The value of general register A) – (The value of general register C) is stored.
[1]: (The value of general register B) – (The value of general register D) is stored.
• When using timer Z (RAPI_TIMER_Z0 - RAPI_TIMER_Z1 specified)
[0]: (The value of general register Ai(i=0,1)) – (The value of general register C
i(i=0,1)) is stored.
[1]: (The value of general register B i(i=0,1)) – (The value of general register D
i(i=0,1)) is stored.
• When using timer RC (RAPI_TIMER_RC specified)
[0]: (The value of general register A) – (The value of general register C) is stored.
[1]: (The value of general register B) – (The value of general register D) is stored.
• When using timer RD (RAPI_TIMER_RD specified)
[0]: (The value of general register A) – (The value of general register C) is stored.
[1]: (The value of general register B) – (The value of general register D) is stored.
Return value
If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.
Functionality
Timer (pulse period measurement mode)
Reference
__CreatePulsePeriodMeasurementMode
,
__EnablePulsePeriodMeasurementMode
,
__DestroyPulsePeriodMeasurementMode
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.
Program example
#include "rapi_timer_r8c_13.h"
void func( void )
{
unsigned int data[2];
/* Get the measured value of timer X as pulse period measurement mode
*/
__GetPulsePeriodMeasurementMode( RAPI_TIMER_X, data );
}