beautypg.com

Renesas RJJ10J1643-0101 User Manual

Page 100

background image

Rev.1.01 2007.02.16
RJJ10J1643-0101

98

Specify the interrupt priority level (0–7) to be set in the interrupt control register.

(H8/300H)

Specify the interrupt priority level (0–1) to be set in the interrupt control register. For
the CPUs that do not have an interrupt control register, specify 0.

[data3]

(M16C)(H8/300H)

Specify 0.

(R8C)

When using timer X, specify the set value for the timer register.

[data4]

(M16C) (H8/300H)

Specify 0.

(R8C)

Specify the set value for the prescaler register.

Return value

If the timer specification is incorrect, RAPI_FALSE is returned; otherwise, RAPI_TRUE
is returned.

Functionality

Timer (pulse width measurement mode)

Reference

__EnablePulseWidthMeasurementMode

,

__DestroyPulseWidthMeasurementMode

,

__GetPulseWidthMeasurementMode

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 X as pulse width measurement mode */
__CreatePulseWidthMeasurementMode(
RAPI_TIMER_X|RAPI_TIMER_ON|RAPI_RISING_FALLING|RAPI_F8,
5, 0x80, 0x80, TimerIntFunc);
}