EasyManua.ls Logo

Maxim Integrated MAX32660 - Page 110

Maxim Integrated MAX32660
195 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MAX32660 User Guide
Maxim Integrated Page 110 of 195
10.5.2 Configuration
Configure the timer for Continuous mode by performing the following steps:
1. Set TMRn_CN.ten = 0 to disable the timer.
2. Set TMRn_CN.tmode to 001b to select Continuous 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 as a timer output 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 an initial value to TMRn_CNT, if desired. This effects only the first period; subsequent timer periods always
reset TMRn_CNT= 0x0000 0001.
7. Write the compare value to TMRn_CMP.
8. Set TMRn_CN.ten = 1 to enable the timer.
The timer period is calculated using the following equation.
Equation 10-3: Continuous Mode Timer Period

 


󰇛

󰇜

Table of Contents

Related product manuals