EasyManua.ls Logo

Maxim Integrated MAX32665 - Continuous Mode Configuration

Maxim Integrated MAX32665
457 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...
MAX32665-MAX32668 User Guide
Maxim Integrated Page 333 of 457
The timer peripheral automatically performs the following actions at the end of the timer period:
1. TMRn_CNT is reset to 0x0000 0001. The timer remains enabled and continues incrementing.
2. If the timer output is enabled, the timer pin toggles state (low to high or high to low).
3. The timer interrupt bit TMRn_INT.irq will be set. An interrupt will be generated if enabled.
16.5.2 Continuous Mode Configuration
Configure the timer for Continuous mode by performing the steps following:
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. The initial value is only used for the first period; subsequent timer
periods always reset the TMRn_CNT register to 1.
7. Write the compare value to TMRn_CMP.
8. Set TMRn_CN.ten to 1 to enable the timer.
The Continuous Mode Timer Period is calculated using Equation 16-3.
Equation 16-3: Continuous Mode Timer Period

 


󰇛

󰇜

Table of Contents