поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

RM0312 датащи(PDF) 140 Page - STMicroelectronics

номер детали RM0312
подробное описание детали  STM8TL5xxx microcontroller family
PDF  275 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

RM0312 датащи(HTML) 140 Page - STMicroelectronics

Back Button RM0312 Datasheet HTML 136Page - STMicroelectronics RM0312 Datasheet HTML 137Page - STMicroelectronics RM0312 Datasheet HTML 138Page - STMicroelectronics RM0312 Datasheet HTML 139Page - STMicroelectronics RM0312 Datasheet HTML 140Page - STMicroelectronics RM0312 Datasheet HTML 141Page - STMicroelectronics RM0312 Datasheet HTML 142Page - STMicroelectronics RM0312 Datasheet HTML 143Page - STMicroelectronics RM0312 Datasheet HTML 144Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 140 / 275 page
background image
16-bit general purpose timer (TIM2/TIM3)
RM0312
140/275
DocID022352 Rev 3
For example, the OCiREF signal can be connected to the output of a comparator to be used
for current handling. In this case, the external trigger must be configured as follows:
1.
The External Trigger Prescaler should be kept off: bits ETPS[1:0] in the TIMx_ETR
register set to ‘00’.
2.
The external clock mode 2 must be disabled: bit ECE in the TIMx_ETR register set to
‘0’.
3.
The External Trigger Polarity (ETP) and the External Trigger Filter (ETF) can be
configured as desired.
Refer to the external trigger input block diagram Figure 34 on page 117
Figure 61 shows the behavior of the OCiREF signal when the ETRF input becomes high, for
both values of the enable bit OCiCE. In this example, the timer is programmed in PWM
mode.
Figure 61. ETR activation
17.5.10
Encoder interface mode
This mode is typically used for motor control. To select Encoder Interface mode write
SMS=0b001 in the TIMx_SMCR register if the counter is counting on TI2 edges only,
SMS=0b010 if it is counting on TI1 edges only and SMS=0b011 if it is counting on both TI1
and TI2 edges.
Select the TI1 and TI2 polarity by programming the CC1P and CC2P bits in the
TIMx_CCER1 register. When needed, you can program the input filter as well.
The two inputs TI1 and TI2 are used to interface to an incremental encoder. Refer to
Table 34. The counter is clocked by each valid transition on TI1FP1 or TI2FP2 (TI1 and TI2
after input filter and polarity selection, TI1FP1=TI1 if not filtered and not inverted,
TI2FP2=TI2 if not filtered and not inverted) assuming that it is enabled (CEN bit in
TIMx_CR1 register written to ‘1’). The sequence of transitions of the two inputs is evaluated
and generates count pulses as well as the direction signal. Depending on the sequence the
counter counts up or down, the DIR bit in the TIMx_CR1 register is modified by hardware
accordingly. The DIR bit is calculated at each transition on any input (TI1 or TI2), whatever
the counter is counting on TI1 only, TI2 only or both TI1 and TI2.
OCiREF
counter (CNT)
OCiREF
ETRF
(OCiCE=’0’)
(OCiCE=’1’)
ETRF
becomes high
ETRF
still high
(CCRx)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com