![NXP Semiconductors Kinetis KE1xZ256 Скачать руководство пользователя страница 1024](http://html1.mh-extra.com/html/nxp-semiconductors/kinetis-ke1xz256/kinetis-ke1xz256_reference-manual_17218131024.webp)
40.5.1 Initialization
The following steps can be used to initialize the LPIT module
• Enable the protocol clock by setting the M_CEN bit in the MCR register.
NOTE
Writing to certain registers while M_CEN = 0 will lead to
assertion of transfer error for that bus access. These
registers are MSR, SETTEN, CLRTEN, TVAL, and
TCTRL. Writing to CVAL and Reserved registers will
generate a transfer error irrespective of M_CEN bit value.
Reads to these registers can happen irrespective of M_CEN
bit value.
• Wait for 4 protocol clock cycles to allow time for clock synchronization and reset de-
assertion.
• For each timer channel that is to be enabled, configure the timer mode of operation
(MODE bits), Trigger source selection (TRG_SEL & TRG_SRC) and Trigger
control bits (TROT, TSOT, TSOI bits) in the TCTRLn register.
• Configure the channels that are to be chained by setting the CHAIN bit in the
corresponding channel's TCTRLn register.
• For channels configured in Compare Mode, set the timer timeout value by
programming the appropriate value in TVAL register for those channels.
• Configure TIEn bits in MIER register for those channels which are required to
generate interrupt on timer timeout.
• Configure the low power mode functionality of the module by setting the DBG_EN
and DOZE_EN bits in the MCR register. This is common to all timer channels.
• Enable the channel timers by setting the corresponding T_EN bit in the
corresponding channel's TCRTLn register.
• For channels configured in Capture Mode, the timer value can be read from TVALn
register when channel timeout occurs.
• At any time, the current value of the timer for any channel can be read by reading the
corresponding channel's CVALn register.
• The timer interrupt flag bits (TIFn) in MSR register get asserted on timer timeout.
These bits can be cleared by writing '1' to them.
40.5.2 Timer Modes
The timer mode is configured by setting an appropriate value in the MODE bits in
TCTRLn register. The timer modes supported are:
Functional description
Kinetis KE1xZ256 Sub-Family Reference Manual, Rev. 3, 07/2018
1024
NXP Semiconductors
Содержание Kinetis KE1xZ256
Страница 2: ...Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 2 NXP Semiconductors...
Страница 56: ...SysTick Clock Configuration Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 56 NXP Semiconductors...
Страница 62: ...Interrupt channel assignments Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 62 NXP Semiconductors...
Страница 124: ...Application information Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 124 NXP Semiconductors...
Страница 130: ...Initialization application information Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 130 NXP Semiconductors...
Страница 178: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 178 NXP Semiconductors...
Страница 356: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 356 NXP Semiconductors...
Страница 368: ...Module clocks Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 368 NXP Semiconductors...
Страница 410: ...Interrupts Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 410 NXP Semiconductors...
Страница 562: ...Power supply supervisor Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 562 NXP Semiconductors...
Страница 592: ...General security features Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 592 NXP Semiconductors...
Страница 604: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 604 NXP Semiconductors...
Страница 622: ...Application Information Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 622 NXP Semiconductors...
Страница 634: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 634 NXP Semiconductors...
Страница 674: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 674 NXP Semiconductors...
Страница 690: ...Module Signal Description Tables Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 690 NXP Semiconductors...
Страница 712: ...Functional description Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 712 NXP Semiconductors...
Страница 820: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 820 NXP Semiconductors...
Страница 1030: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1030 NXP Semiconductors...
Страница 1052: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1052 NXP Semiconductors...
Страница 1066: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1066 NXP Semiconductors...
Страница 1268: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1268 NXP Semiconductors...
Страница 1314: ...Usage Guide Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1314 NXP Semiconductors...
Страница 1316: ...Kinetis KE1xZ256 Sub Family Reference Manual Rev 3 07 2018 1316 NXP Semiconductors...