User`s manual
RX62N Group, RX621 Group 4. Library Reference
Remarks
•
Function R_CGC_Set must be called before any use of this function.
•
Function R_CMT_Create is not required.
•
Ensure that the timer channel is stopped before calling this function. Note that the timer is
stopped automatically when the one-shot period is reached.
•
If a callback function is specified, this function will enable the relevant interrupt. Please see the
notes on callback function use in §6.
•
A callback function is executed by the interrupt processing function. This means that no other
interrupt can be processed until the callback function has completed.
•
The timing limits depend on the peripheral module clock, PCLK.
Equation
f
PCLK
(MHz)
50
48
12.5
12
32
8
T
MIN
PCLK
f
8
160ns 166.67ns 640ns 666.67ns 250ns 1µs
T
MA
X
PCLK
f
25
2
671ms 699ms 2.68s 2.79s 1.05s 4.19s
•
If the requested period is not a multiple of the minimum period, the actual time period will be
more than the requested time period.
Program example
/* RPDL definitions */
#include "r_pdl_cmt.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Use CMT channel 0 for a 1ms pause */
R_CMT_CreateOneShot(
0,
0,
1E-3,
PDL_NO_FUNC,
0
);
}
R20UT0084EE0112 Rev.1.12 Page 4-150
July. 16, 2014