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 #341 background imageLoading...
Page #341 background image
MAX32665-MAX32668 User Guide
Maxim Integrated Page 341 of 457
16.9.2 Compare Mode Configuration
Configure the timer for Compare mode by doing the following:
1. Set TMRn_CN.ten = 0 to disable the timer.
2. Set TMRn_CN.tmode to 011b to select Compare mode.
3. Set TMRn_CN.pres3:TMRn_CN.pres to set the prescaler that determines the timer frequency.
4. If using the timer pin:
a. Configure the pin for the timer output alternate function and configure the electrical characteristics as
needed.
b. Set TMRn_CN.tpol to match the desired (inactive) state.
5. If using the timer interrupt, enable the interrupt and set the interrupt priority.
6. Write the initial value to TMRn_CNT. This effects only the first period as the counter increments continuously,
rolling over to 0x0000 0000 and continuing.
7. Write the compare value to TMRn_CMP.
8. Set TMRn_CN.ten = 1 to enable the timer.
The Compare Mode timer period is calculated using Equation 16-10.
Equation 16-10: Compare Mode Timer Period

 


󰇛

󰇜

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