EasyManuals Logo

Maxim Integrated MAX32665 User Manual

Maxim Integrated MAX32665
457 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #345 background imageLoading...
Page #345 background image
MAX32665-MAX32668 User Guide
Maxim Integrated Page 345 of 457
Equation 16-11: Capture Mode Elapsed Time

 


󰇛

󰇜
16.12 Timer Registers
Address offsets for the timer registers are shown in Table 16-1. Register fields marked as Reserved for Future Use should
not be modified. All Timer instances contain an identical set of registers. Register names for a specific instance are defined
by appending the instance number to the peripheral name. For example, the Timer Count Register for Timer 0 is TMR0_CNT
while the Timer Count Register for Timer 1 is TMR1_CNT, etc.
See Table 3-1: APB Peripheral Base Address Map for the Timer 0 (TMR0_) to Timer 5 (TMR5_) Peripheral Base Addresses.
Table 16-1: Timer Register Offset, Names, Access and Descriptions
Offset
Register Name
Access
Description
[0x0000]
TMRn_CNT
R/W
Timer Counter Register
[0x0004]
TMRn_CMP
R/W
Timer Compare Register
[0x0008]
TMRn_PWM
R/W
Timer PWM Register
[0x000C]
TMRn_INT
R/W
Timer Interrupt Register
[0x0010]
TMRn_CN
R/W
Timer Control Register
[0x0014]
TMRn_NOLCMP
R/W
Timer Non-Overlapping Compare Register
Table 16-2: Timer Count Registers
Timer Count Register
TMRn_CNT
[0x0000]
Bits
Name
Access
Reset
Description
31:0
count
R/W
0
Timer Count Value
The current count value for the timer. This field increments as the timer counts. Reads
of this register are always valid. Prior to writing this field, disable the timer by clearing
bit TMRn_CN.ten.
Table 16-3: Timer Compare Registers
Timer Compare Register
TMRn_CMP
[0x0004]
Bits
Name
Access
Reset
Description
31:0
compare
R/W
0
Timer Compare Value
The value in this register is used as the compare value for the timer’s count value. The
compare field meaning is determined by the specific mode of the timer. See the timer
mode’s detailed configuration section for compare usage and meaning.
Timer PWM Register
TMRn_PWM
[0x0008]
Bits
Name
Access
Reset
Description
31:0
pwm
R/W
0
Timer PWM Match
In PWM mode, this field sets the count value for the first transition period of the
PWM cycle. At the end of the cycle where TMRn_CNT equals TMRn_CMP, the PWM
output transitions to the second period of the PWM cycle. The second PWM period
count is stored in the TMRn_CMP register. The value set for TMRn_PWM.pwm must
be less than the value set in TMRn_CMP for PWM mode operation.
Timer Capture Value
In Capture, Compare, and Capture/Compare modes, this field is used to store the
TMRn_CNT value when a Capture, Compare, or Capture/Compare event occurs.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Maxim Integrated MAX32665 and is the answer not in the manual?

Maxim Integrated MAX32665 Specifications

General IconGeneral
BrandMaxim Integrated
ModelMAX32665
CategoryMotherboard
LanguageEnglish