![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 251](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630251.webp)
www.geehy.com Page 250
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 comparison
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
TMR10/11/13/14 register address mapping
In the following table, all registers of TMR10/11/13/14 are mapped to a 16-bit
addressable (address) space.
Table 72 TMR10/11/13/14 Register Address Mapping
Register name
Description
Offset address
TMRx_CTRL1
Control register 1
0x00
TMRx_DIEN
DMA/Interrupt enable register
0x0C
TMRx_STS
State register
0x10
TMRx_CEG
Control event generation register
0x14
TMRx_CCM1
Capture/Compare mode register 1
0x18
TMRx_CCEN
Capture/Compare enable register
0x20
TMRx_CNT
Counter register
0x24
TMRx_PSC
Prescaler register
0x28
TMRx_AUTORLD
Auto reload register
0x2C
TMRx_CC1
Channel 1 capture/compare register
0x34