EasyManuals Logo

ST STM8S Reference Manual

ST STM8S
449 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #189 background imageLoading...
Page #189 background image
RM0016 16-bit advanced control timer (TIM1)
Doc ID 14587 Rev 8 189/449
17.7.4 External trigger register (TIM1_ETR)
Address offset: 0x03
Reset value: 0x00
76543210
ETP ECE ETPS[1:0] ETF[3:0]
rw rw rw rw rw rw rw rw
Bit 7 ETP: External trigger polarity
This bit selects whether ETR or ETR is used for trigger operations
0: ETR is non-inverted, active at high level or rising edge
1: ETR is inverted, active at low level or falling edge
Bit 6 ECE: External clock enable
This bit enables external clock mode 2.
0: External clock mode 2 disabled
1: External clock mode 2 enabled. The counter is clocked by any active edge on the ETRF signal.
Note: Setting the ECE bit has the same effect as selecting external clock mode 1 with TRGI
connected to ETRF (SMS = 111 and TS = 111 in the TIM1_SMCR register).
It is possible to simultaneously use external clock mode 2 with the following modes: Trigger
standard mode, trigger reset mode, and trigger gated mode. Nevertheless, TRGI must not be
connected to ETRF in these cases (TS bits must not be 111 in the TIM1_SMCR register).
If external clock mode 1 and external clock mode 2 are enabled at the same time, the external
clock input is ETRF.
Bits 5:4 ETPS: External trigger prescaler
The ETRP frequency must be, at most,1/4 of f
MASTER
frequency. A prescaler can be enabled to
reduce ETRP frequency. It is useful when inputting fast external clocks.
00: Prescaler off
01: ETRP frequency divided by 2
10: ETRP frequency divided by 4
11: ETRP frequency divided by 8

Table of Contents

Other manuals for ST STM8S

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM8S and is the answer not in the manual?

ST STM8S Specifications

General IconGeneral
BrandST
ModelSTM8S
CategoryMicrocontrollers
LanguageEnglish

Related product manuals