Renesas M16C/62P Group Reference Manual page 47

Group renesas embedded application programming interface
Hide thumbs Also See for M16C/62P Group:
Table of Contents

Advertisement

RAPI_UP_COUNT
RAPI_DOWN_COUNT
RAPI_UDF_REGISTER
RAPI_TAIOUT
RAPI_RISING
RAPI_FALLING
RAPI_BOTH
• Specifiable definition values when timer A is used (RAPI_TIMER_A0 to RAPI_TIMER_A4
specified)
(Count source)
(Operating
states set)
(Pulse output
facility)
(Gate facility)
(Count type)
(Count
direction)
(Count direction
switching)
(Count edge)
• Specifiable definition values when timer B is used (RAPI_TIMER_B0 to RAPI_TIMER_B4
specified)
(Count source)
(Operating
states set)
(Count edge)
[data2]
Specify the interrupt priority level (0–7) to be set in the interrupt control register.
[data3]
Specify the value to be set in the timer register in 16 bits.
Rev.1.00
2007.11.1
REC10B0002-0100
Selects up-count for the count operation.
Selects down-count for the count operation.
Selects the UDF register for the cause of up/down switching.
Selects the input signal at TA
switching.
Selects the rising edge of count source as active edge.
Selects the falling edge of count source as active edge.
Selects both rising and falling edges of count source as active
edges.
Specify
one
from
{
RAPI_EV_EXTERNAL,
RAPI_EV_TIMER_AK, RAPI_EV_TIMER_B2 }. The default value is
RAPI_EV_EXTERNAL.
Specify one from { RAPI_TIMER_ON, RAPI_TIMER_OFF }. The default
value is RAPI_TIMER_OFF.
Specify one from { RAPI_PULSE_ON, RAPI_PULSE_OFF }. The default
value is RAPI_PULSE_OFF.
Specify one from { RAPI_GATE_L, RAPI_GATE_H }. If omitted, "No gate
facility" is set.
Specify one from { RAPI_AUTO_RELOAD, RAPI_FREE_RUN }. The
default value is RAPI_AUTO_RELOAD.
Specify one from { RAPI_UP_COUNT,
default value is RAPI_DOWN_COUNT. The count direction can only be set
when the UDF register is used.
Specify one from { RAPI_UDF_REGISTER, RAPI_TAIOUT }. The default
value is RAPI_UDF_REGISTER.
Specify one from { RAPI_RISING, RAPI_FALLING }. The default value is
RAPI_FALLING.
Specify one from { RAPI_EV_EXTERNAL, RAPI_EV_TIMER_BJ }. The
default value is RAPI_EV_EXTERNAL.
Specify one from { RAPI_TIMER_ON, RAPI_TIMER_OFF }. The default
value is RAPI_TIMER_OFF.
Specify one from { RAPI_RISING, RAPI_FALLING, RAPI_BOTH }. The
default value is RAPI_FALLING.
45
pin for the cause of up/down
iOUT
RAPI_EV_TIMER_AJ,
RAPI_DOWN_COUNT }. The

Advertisement

Table of Contents
loading

Table of Contents