![Maxim Integrated MAX32660 Скачать руководство пользователя страница 115](http://html1.mh-extra.com/html/maxim-integrated/max32660/max32660_user-manual_1744484115.webp)
MAX32660 User Guide
Maxim Integrated
Page 115 of 195
10.8
Capture Mode (100b)
Capture mode most often used to measure the time between events. The timer increments from an initial value until an
g transiti n ccurs n th tim r pin. his trigg rs th ‘captur ’ v nt which c pi s
.pwm
= 0x0000 0001, and continues incrementing. Also, if the timer pin does not go active before
= 0x0000 0001, and continue incrementing. Either event will set
the timer interrupt bit.
Figure 10-4: Capture 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 AFTER A CAPTURE E VENT OR WHE N TMR_CNT = TMR_CMP, BUT SOFTWARE CAN WRITE ANY INITIAL
VALUE TO TMR_CNT BEFORE THE TIMER IS ENABLED.
** 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 .
SOFTWARE CLEARS .IRQ BIT
TIMER PIN
(INPUT)
0X0000_0002
TMR_CNT
(CAPTURE)
TMR_CN.TPL = 1
TMR_CN.TPL = 0
TMR_CNT
(CAPTURE)
COP IED TO TMR_PWM
10.8.1
Timer Period
Two timer period events are possible in Capture Mode:
The Capture event occurs on the timer clock following the selected transition on the timer pin. The timer peripheral
automatically performs the following actions:
1.
is copied to
2.
The timer interrupt bit
.irq
will be set. An interrupt will be generated if enabled.
3.
The timer remains enabled and continues incrementing.
4.
The timer period ends on the timer clock following
Содержание 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...