EasyManua.ls Logo

ARTERY AT32F421C8T7 - TMR15 Counter Value (TMR15_CVAL); TMR15 Division Value (TMR15_DIV); TMR15 Period Register (TMR15_PR); TMR15 Repetition Period Register (TMR15_RPR)

Default Icon
337 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...
AT32F421 Series Reference Manual
2022.11.11 Page 236 Rev 2.02
14.4.4.9 TMR15 Counter value (TMR15_CVAL)
Bit
Register
Reset value
Type
Description
Bit 15: 0
CVAL
0x0
rw
Counter value
14.4.4.10 TMR15 Division value (TMR15_DIV)
Bit
Register
Reset value
Type
Description
Bit 15: 0
DIV
0x0000
rw
Divider value
The counter clock frequency f
CK_CNT
= f
TMR_CLK
/(DIV[15:
0]+1).
The value of this register is moved to the actual
prescaler register when an overflow event occurs.
14.4.4.11 TMR15 period register (TMR15_PR)
Bit
Register
Reset value
Type
Description
Bit 15: 0
PR
0x0000
rw
Period value
This defines the period value of the TMRx counter. The
timer stops working when the period value is 0.
14.4.4.12 TMR15 repetition period register (TMR15_RPR)
Bit
Register
Reset value
Type
Description
Bit 15: 8
Reserved
0x0
rw
Kept at its default value.
Bit 7: 0
RPR
0x00
rw
Repetition of period value
This field is used to reduce the generation rate of
overflow events. An overflow event is generated when
the repetition counter reaches 0.
14.4.4.13 TMR15 channel 1 data register (TMR15_C1DT)
Bit
Register
Reset value
Type
Description
Bit 15: 0
C1DT
0x0000
rw
Channel 1 data register
When the channel 1 is configured as input mode:
The C1DT is the CVAL value stored by the last channel
1 input event (C1IN)
When the channel 1 is configured as output mode:
C1DT is the value to be compared with the CVAL
value. Whether the written value takes effective
immediately depends on the C1OBEN bit, and the
corresponding output is generated on C1OUT as
configured.
14.4.4.14 TMR15 channel 2 data register (TMR15_C2DT)
Bit
Register
Reset value
Type
Description
Bit 15: 0
C2DT
0x0000
rw
Channel 2 data register
When the channel 2 is configured as input mode:
The C2DT is the CVAL value stored by the last channel
2 input event (C1IN)
When the channel 2 is configured as output mode:
C2DT is the value to be compared with the CVAL value.
Whether the written value takes effective immediately
depends on the C2OBEN bit, and the corresponding
output is generated on C2OUT as configured.

Table of Contents