Rev.1.01 2007.02.16
RJJ10J1643-0101
112
RAPI_TRD_RISING Selects the rising edge of measurement pulse as active edge.
RAPI_TRD_FALLING Selects the falling edge of measurement pulse as active edge.
RAPI_TRD_BOTH Selects both rising and falling edges of measurement pulse as active
edge.
RAPI_FILTER_ON Selects digital filter on. If not select “RAPI_FILTER_ON”, “No digital
filter” is set.
RAPI_FOCO128
Selects fOCO128 as TRDIOA0 pin input.
Specifiable only active
edge of channel0 TRDIOA0 pin.
(H8/300H)
Specify a pointer to the array in which each active edge setting is stored.
[0]: Specify the active edge of TRDIOA pin.
[1]: Specify the active edge of TRDIOB pin.
[2]: Specify the active edge of TRDIOC pin.
[3]: Specify the active edge of TRDIOD pin.
For each element of the array, one of the following definition values
{ RAPI_RISING, RAPI_FALLING, RAPI_BOTH } can be set.
For the array elements corresponding to unused channels, set 0.
RAPI_RISING Selects the rising edge of measurement pulse as active edge.
RAPI_FALLING Selects the falling edge of measurement pulse as active edge.
RAPI_BOTH Selects both rising and falling edges of measurement pulse as active edge.
RAPI_FILTER_
ON
Selects digital filter on. If not select “RAPI_FILTER_ON”, “No digital filter” is
set.
[data4]
(M16C)
Specify a pointer to the array in which the set value for each register or timer S is
stored.
[0]: Specify the set value for the facility select and facility enable registers.
Specify the channel for which the time measurement facility is enabled.
[1]: Specify the set value for interrupt enable register 0.
Specify the channel for which IO/CO interrupt 0 request is enabled.
[2]: Specify the set value for interrupt enable register 1.
Specify the channel for which IO/CO interrupt 1 request is enabled.
[3]: Specify the set value for the count source divide-by-N register.
Specify the value of ‘n’ in the formula “count source divided by (n + 1)” in 8 bits.
[4]: Specify the set value for time measurement prescaler register 6.
Specify the value of ‘n’ in the prescaler period “n + 1” in 8 bits.
[5]: Specify the set value for time measurement prescaler register 7.
Specify the value of ‘n’ in the prescaler period “n + 1” in 8 bits.
For the channels to be specified in each array element, use the following definition
values. To specify multiple definition values at the same time, use the symbol “|” to
separate each specified value. If 0 is specified, the value 0 is set in the
corresponding register.
RAPI_CHANNEL0 Selects channel 0.