数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

ST7L15 数据表(PDF) 62 Page - STMicroelectronics

部件名 ST7L15
功能描述  8-bit MCU for automotive with single voltage Flash/ROM memory, data EEPROM, ADC, 5 timers, SPI
PDF  138 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

ST7L15 数据表(HTML) 62 Page - STMicroelectronics

Back Button ST7L15 Datasheet HTML 58Page - STMicroelectronics ST7L15 Datasheet HTML 59Page - STMicroelectronics ST7L15 Datasheet HTML 60Page - STMicroelectronics ST7L15 Datasheet HTML 61Page - STMicroelectronics ST7L15 Datasheet HTML 62Page - STMicroelectronics ST7L15 Datasheet HTML 63Page - STMicroelectronics ST7L15 Datasheet HTML 64Page - STMicroelectronics ST7L15 Datasheet HTML 65Page - STMicroelectronics ST7L15 Datasheet HTML 66Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 62 / 138 page
background image
ST7L15, ST7L19
62/138
DUAL 12-BIT AUTORELOAD TIMER 4 (cont’d)
11.2.3.6 One Pulse Mode (available only on
Flash devices)
One Pulse mode can be used to control PWM2/3
signal with an external LTIC pin. This mode is
available only in dual timer mode that is only for
CNTR2, when the OP_EN bit in PWM3CSR regis-
ter is set.
One Pulse mode is activated by the external LTIC
input. The active edge of the LTIC pin is selected
by the OPEDGE bit in the PWM3CSR register.
After obtaining the active edge of the LTIC pin,
CNTR2 is reset (000h) and PWM3 is set to high.
CNTR2 starts counting from 000h and when it
reaches the active DCR3 value, PWM3 goes low.
Until this time, any further transitions on the LTIC
signal will have no effect. If there are LTIC transi-
tions after CNTR2 reaches the DCR3 value,
CNTR2 is reset again and PWM3 goes high.
If there are no more LTIC active edges after the
first active edge, CNTR2 counts until it reaches the
ARR2 value, it is then reset and PWM3 is set to
high. The counter again starts counting from 000h.
When it reaches the active DCR3 value, PWM3
goes low, after which the counter counts until it
reaches ARR2, it is reset and PWM3 is set to high
again, and the cycle continues in this manner.
The same operation applies for PWM2, but in this
case the comparison is done on DCR2
OP_EN and OPEDGE bits take effect on the fly
and are not synchronized with the Counter 2 over-
flow.
The output bit OP2/3 can be used to invert the po-
larity of PWM2/3 in One Pulse mode. The update
of these bits (OP2/3) is synchronized with the
Counter 2 overflow, provided the TRAN2 bit is set.
Notes:
1. The time taken from activation of LTIC input and
CNTR2 reset is between 1 and 2 tCPU cycles, that
is 125n to 250ns (with 8 MHz fCPU).
2. To avoid spurious interrupts, the LiteTimer input
capture interrupt should be disabled while 12-bit
ARTimer is in One Pulse mode.
3. Priority of various conditions is as follows for
PWM3:
Break > One Pulse mode with active LTIC edge >
Forced overflow by s/w > One Pulse mode without
active LTIC edge > normal PWM operation.
4. It is possible to update DCR2/3 and OP2/3 at
the Counter 2 reset because the update is syn-
chronized with the counter reset. This is managed
by the overflow interrupt which is generated if the
counter is reset either due to ARR match or active
pulse at LTIC pin.
5. DCR2/3 and OP2/3 update in One Pulse mode
is done dynamically using force update in soft-
ware.
6. DCR3 update in this mode is not synchronized
with any event. That may lead to a longer next
PWM3 cycle duration than expected just after the
change (refer to Figure 46).
7. In One Pulse mode, the ATR2 value must be
greater than the DCR2/3 value for PWM2/3 (oppo-
site to normal PWM mode).
8. If there is an active edge on the LTIC pin after
the counter has reset due to an ARR2 match, then
the timer again is reset and appears as modified
Duty cycle, depending on whether the new DCR
value is less than or more than the previous value.
9. The TRAN2 bit should be set along with the
FORCE2 bit with the same instruction after a write
to the DCR register.
10. ARR2 value should be changed after an over-
flow in One Pulse mode to avoid any irregular
PWM cycle.
11. When exiting from One Pulse mode, the
OP_EN bit in the PWM3CSR register should be
reset first and then the ENCNTR2 bit (if Counter 2
must be stopped).
How to enter One Pulse mode:
1. Load ATR2H/ATR2L with required value.
2. Load DCR3H/DCR3L for PWM3. ATR2 value
must be greater than DCR3.
3. Set OP3 in PWM3CSR if polarity change is re-
quired.
4. Select CNTR2 by setting ENCNTR2 bit in
ATCSR2.
5. Set TRAN2 bit in ATCSR2 to enable transfer.
6. "Wait for Overflow" by checking the OVF2 flag in
ATCSR2.
7. Select counter clock using CK<1:0> bits in ATC-
SR.
8. Set OP_EN bit in PWM3CSR to enable One
Pulse mode.
9. Enable PWM3 by OE3 bit of PWMCR.
The "Wait for Overflow" in step 6 can be replaced
by forced update.
Follow the same procedure for PWM2 with the bits
corresponding to PWM2.
Note: When break is applied in One Pulse mode,
DUAL 12-BIT AUTORELOAD TIMER 4, CNTR2,
DCR2/3 and ATR2 registers are reset. Conse-
1



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


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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