Rev.1.01 2007.02.16
RJJ10J1643-0101
130
[6]: Specify the comparison value of general register C in 16 bits.
[7]: Specify the comparison value of general register D in 16 bits.
To specify output operation for each output compare of array elements, the following definition
values can be used. To specify multiple definition values at the same time, use the symbol “|”
to separate each specified value. For elements of output operation corresponding to unused
channels, set 0.
RAPI_OUT_0
Selects 0 output for the output waveform.
RAPI_OUT_1
Selects 1 output for the output waveform.
RAPI_OUT_TOGGLE
Selects toggle output for the output waveform.
RAPI_OUT_INIT_0
Selects 0 output for the initial output.
RAPI_OUT_INIT_1
Selects 1 output for the initial output.
[data4]
(M16C)
Specify a pointer to the array in which the set value for each register of timer S is
stored.
[0]: Specify the set value for the facility select and facility enable register.
Specify the channel for which the waveform generation 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.
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.
RAPI_CHANNEL1 Selects
channel
1.
RAPI_CHANNEL2 Selects
channel
2.
RAPI_CHANNEL3 Selects
channel
3.
RAPI_CHANNEL4 Selects
channel
4.
RAPI_CHANNEL5 Selects
channel
5.
RAPI_CHANNEL6 Selects
channel
6.
RAPI_CHANNEL7 Selects
channel
7.
(R8C) (H8/300H)
Specify 0.
[data5]
(M16C)
Specify a pointer to the array in which the callback function is stored.
[0]: Specify a pointer to the callback function for IC/OC base timer interrupt.
If this pointer is not specified, 0 is set.