![Maxim Integrated MAX32660 Скачать руководство пользователя страница 107](http://html1.mh-extra.com/html/maxim-integrated/max32660/max32660_user-manual_1744484107.webp)
MAX32660 User Guide
Maxim Integrated
Page 107 of 195
10.4
One-Shot Mode (000b)
In One-shot mode the timer peripheral increments
and disables the timer. The timer can optionally output a pulse on the timer pin at the end of the timer period. In this
mode, the timer must be re-enabled to start another one-shot mode event.
Figure 10-1: One-Shot Mode Diagram
TMR_CN.TEN
TMR_CNT
0X0000_0000**
0X0000_0001*
TMR_INT.IRQ
TIMER CLOCK
TMR_CMP
* TMR_CNT AUTOMATICALLY RELOADS WITH 0X0000_0001 AT THE END OF THE TIMER PERIOD, BUT SOFTWARE CAN WRITE ANY INITIAL VALUE TO TMR_CNT
BEFORE THE TIMER IS ENABLE D.
** THE DEFAULT VALUE OF TMR_CNT FOR THE FIRS T PE RIOD AFTER A SY STEM RE SET IS 0X0000_0000 UNLESS CHA NGED BY SOFTWARE .
TMR_CN.TPL = 1
TMR_CN.TPL = 0
TIMER PIN
(OUTPUT)
0X0000_0002
TIMER ENABLED
BY SOFTWARE
TIMER DISABLED
BY HARDWARE
TIMER ENABLED
BY SOFTWARE
SOFTWARE CLEARS BIT
10.4.1
Timer Period
The timer period ends on the timer clock following
The timer peripheral automatically performs the following actions at the end of the timer period:
1.
is reset to 0x0000 0001.
2.
The timer is disabled by setting
.ten
= 0.
3.
If the timer output is enabled, the timer pin is driven to its active state for one timer clock. It then returns to its
inactive state.
4.
The timer interrupt bit
.irq
will be set. An interrupt will be generated if enabled.
Содержание MAX32660
Страница 4: ...MAX32660 User Guide Maxim Integrated Page 4 of 195 8 UART 84 9 Real Time Clock RTC 96 10 Timers 105...
Страница 7: ...MAX32660 User Guide Maxim Integrated Page 7 of 195 15 Trademarks 195 16 Revision History 195...
Страница 14: ...MAX32660 User Guide Maxim Integrated Page 14 of 195 Figure 2 1 MAX32660 High Level Block Diagram...