Renesas Single-Chip Microcomputer M38C89T-ADF Uživatelský manuál Strana 88

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 138
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 87
Rev.1.00 May 22 2012
REJ09B0566
4-68
3BLibrary Reference
4
4.2.7 38BMulti Function Timer Pulse Unit
R_MTU_Create
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
);
}
Zobrazit stránku 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 137 138

Komentáře k této Příručce

Žádné komentáře