Slave Mode Control Register (Tim2_Smcfgr) - WCH CH32V003 Series Reference Manual

Table of Contents

Advertisement

CH32V003 Reference Manual
3
CCDS
[2:0]
Reserved

11.4.3 Slave mode control register (TIM2_SMCFGR)

Offset address: 0x08
15
14
13
12
ETP ECE ETPS[1:0]
Bit
Name
15
ETP
14
ECE
[13:12]
ETPS
[11:8]
ETF
V1.3
011: comparison pulse that triggers the output to send a
positive pulse (TRGO) when a capture or a successful
comparison occurs, when the CC1IF flag is to be set
(even if itis already high).
100: The OC1REF signal is used as a trigger output
(TRGO.
101: The OC2REF signal is used as a trigger output
(TRGO).
110: The OC3REF signal is used as a trigger output
(TRGO).
111: The OC4REF signal is used as a trigger output
(TRGO).
1: Sending a DMA request for CHxCVR when an
update event occurs.
RW
0: Generate a DMA request for CHxCVR when
CHxCVR occurs.
RO
Reserved
11
10
9
8
ETF[3:0]
Access
ETR trigger polarity selection, this bit selects whether
to input ETR directly or to input the inverse of ETR.
RO
1: Invert ETR, active low or falling edge.
0: ETR, active high or rising edge.
External clock mode 2 enabled selection.
1: Enables external clock mode 2.
0: Disable external clock mode 2.
Note 1: Slave mode can be used simultaneously with
external clock mode 2: reset mode, gated mode and
RW
trigger mode; however, TRGI cannot be connected to
ETRF in this case (TS bit cannot be 111b).
Note 2: When both external clock mode 1 and external
clock mode 2 are enabled, the external clock input is
ETRF.
The external trigger signal (ETRP) is divided into
frequencies, and the maximum frequency of this signal
cannot exceed is 1/4 of the TIMxCLK frequency, which
can be downconverted by this domain.
RW
00: Prescaler off.
01: ETRP frequency divided by 2.
10: ETRP frequency divided by 4.
11: ETRP frequency divided by 8.
Externally triggered filtering, in fact, the digital filter is
an event counter that uses a certain sampling frequency
to generate a jump in the output after N events are
recorded.
0000: no filter, sampled in Fdts.
RW
0001: sampling frequency Fsampling=Fck_int,N=2.
0010: sampling frequency Fsampling=Fck_int, N=4.
0011: Sampling frequency Fsampling=Fck_int, N=8.
0100: sampling frequency Fsampling = Fdts/2, N = 6.
0101: sampling frequency Fsampling = Fdts/2, N = 8.
7
6
5
4
MSM
TS[2:0]
Description
122
http://wch.cn
0
0
3
2
1
Reserved
SMS[2:0]
Reset
value
0
0
0
0
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents