Download Renesas Embedded Application Programming Interface User`s

Transcript
Library Reference
4
Description (4/5)
4.2.2
Timer MTU2
__CreatePulsePeriodMeasurementMode
• Selectable parameters when RAPI_MTU2_2 is specified:
(Count source)
Specify one from { RAPI_MP_1, RAPI_MP_4, RAPI_MP_16,
RAPI_MP_64, RAPI_MP_1024_2 }.
The default value is RAPI_MP_1.
Rev.1.01 Aug. 27, 2008
REJ10J1906-0101
(Count edge)
Specify one from { RAPI_RISING_EDGE,
RAPI_FALLING_EDGE, RAPI_BOTH_EDGE }.
The default value is RAPI_RISING_EDGE.
Note:
When RAPI_MP1 is specified for the count source,
count edge is fixed to the default value.
(Count clearing source)
Specify one from { RAPI_TCNT_CLEAR_DIS,
RAPI_TCNT_CLEAR_TGRA, RAPI_TCNT_CLEAR_TGRB }.
The default value is RAPI_TCNT_CLEAR_DIS.
(A/D converter start
request)
Specify one from { RAPI_AD_START_REQ,
RAPI_NO_AD_START_REQ }.
The default value is RAPI_NO_AD_START_REQ.
(Interrupt enable)
Specify one from { RAPI_OVERFLOW_ENA,
RAPI_OVERFLOW_DIS }.
The default value is RAPI_OVERFLOW_DIS.
(Interrupt priority level)
Specify one from { RAPI_TIMER_INT_LV_0,
RAPI_TIMER_INT_LV_1, RAPI_TIMER_INT_LV_2,
RAPI_TIMER_INT_LV_3, RAPI_TIMER_INT_LV_4,
RAPI_TIMER_INT_LV_5, RAPI_TIMER_INT_LV_6,
RAPI_TIMER_INT_LV_7, RAPI_TIMER_INT_LV_8,
RAPI_TIMER_INT_LV_9, RAPI_TIMER_INT_LV_10,
RAPI_TIMER_INT_LV_11, RAPI_TIMER_INT_LV_12,
RAPI_TIMER_INT_LV_13, RAPI_TIMER_INT_LV_14,
RAPI_TIMER_INT_LV_15 }.
The default value is RAPI_TIMER_INT_LV_0.
4-54