www.geehy.com Page 158
Field
Name
R/W
Description
15:0
AUTORLD R/W
Auto Reload Value
When the value of auto reload is empty, the counter will not count.
Channel 1 capture/compare register (TMRx_CC1)
Offset address: 0x34
Reset value: 0x0000
Field
Name R/W
Description
15:0
CC1
R/W
Capture/Compare Channel 1 Value
When the capture/compare channel 1 is configured as input mode:
CC1 contains the counter value transmitted by the last input capture channel 1
event.
When the capture/compare channel 1 is configured as output mode:
CC1 contains the current load capture/compare register value
Compare the value CC1 of the capture and compare channel 1 with the value
CNT of the counter to generate the output signal on OC1.
When the output compare preload is disabled (OC1PEN=0 for TMRx_CCM1
register), the written value will immediately affect the output compare results;
If the output compare preload is enabled (OC1PEN=1 for TMRx_CCM1
register), the written value will affect the output compare result when an update
event is generated.
Channel 2 capture/compare register (TMRx_CC2)
Offset address: 0x38
Reset value: 0x0000
Field
Name R/W
Description
15:0
CC2
R/W
Capture/Compare Channel 2 Value
Refer to TMRx_CC1
Channel 3 capture/compare register (TMRx_CC3)
Offset address: 0x3C
Reset value: 0x0000
Field
Name R/W
Description
15:0
CC3
R/W
Capture/Compare Channel 3 Value
Refer to TMRx_CC1
Channel 4 capture/compare register (TMRx_CC4)
Offset address: 0x40
Reset value: 0x0000
Field
Name
R/W
Description
15:0
CC4
R/W
Capture/Compare Channel 4 Value
Refer to TMRx_CC1
DMA control software (TMRx_DCTRL)
Offset address: 0x48
Reset value: 0x0000
Field
Name
R/W
Description
4:0
DBADDR
R/W
DMA Base Address Setup