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

  • 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 89
Rev.1.00 May 22 2012
REJ09B0566
4-70
3BLibrary Reference
4
4.2.7 38BMulti Function Timer Pulse Unit
R_MTU_Control
3) R_MTU_Control
Synopsis
Control a timer channel.
Prototype bool R_MTU_Control(
uint8_t data1, // Channel selection
uint8_t data2, // Register selection
uint16_t data3, // Register value
uint16_t data4, // Register value
uint16_t data5, // Register value
uint16_t data6, // Register value
uint16_t data7 // Register value
uint16_t data8, // Register value
uint16_t data9 // Register value
);
Description
Modify a timer channels registers.
[data1]
The channel number n (where n = 0, 1, 2, 3 or 4).
[data2]
The channel settings to be modified.
If multiple selections are required, use | to separate each selection.
Counter stop / re-start
PDL_MTU_STOP or
PDL_MTU_START
Disable or re-enable the counter clock source.
The registers to be modified.
PDL_MTU_COUNTER Update the timer counter register (TCNT).
PDL_MTU_TGRA Update the general register A (TGRA).
PDL_MTU_TGRB Update the general register A (TGRB).
PDL_MTU_TGRC Update the general register A (TGRC).
PDL_MTU_TGRD Update the general register A (TGRD).
[data3]
The counter value. This will be ignored if the register is not selected.
[data4]
The general register A value. This will be ignored if the register is not selected.
[data5]
The general register B value. This will be ignored if the register is not selected.
[data6]
The general register C value. This will be ignored if the register is not selected.
[data7]
The general register D value. This will be ignored if the register is not selected.
[data8]
Where the general register E value shall be stored. Specify PDL_NA if it is not required.
[data9]
Where the general register F value shall be stored. Specify PDL_NA if it is not required.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Multi-function timer pulse unit
Reference R_MTU_Create
Zobrazit stránku 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 137 138

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

Žádné komentáře