
Rev.1.00 May 22 2012
REJ09B0566
4
4.2.7 38BMulti Function Timer Pulse Unit
Program example
/* PDL definitions */
#include “r_pdl_mtu.h”
/* PDL device-specific definitions */
#include “r_pdl_definitions.h”
void func(void)
{
/* Configure MTU0: PCLK, clear after a compare match A */
R_MTU_Create(
0,
0,
PDL_MTU_CLK_PCLK_DIV_1 | PDL_MTU_CLEAR_CM_A,
0,
0,
199,
99,
0,
0,
0,
0,
0,
PDL_NO_FUNC,
PDL_NO_FUNC,
PDL_NO_FUNC,
PDL_NO_FUNC,
PDL_NO_FUNC,
PDL_NO_FUNC,
0,
PDL_NO_FUNC,
PDL_NO_FUNC,
0
);
}
Komentáře k této Příručce