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

X  

EM357-RTR 数据表(PDF) 139 Page - List of Unclassifed Manufacturers

部件名 EM357-RTR
功能描述  High-Performance, Integrated ZigBee/802.15.4 System-on-Chip
PDF  240 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  ETC2 [List of Unclassifed Manufacturers]
网页  
标志 ETC2 - List of Unclassifed Manufacturers

EM357-RTR 数据表(HTML) 139 Page - List of Unclassifed Manufacturers

Back Button EM357-RTR Datasheet HTML 135Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 136Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 137Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 138Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 139Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 140Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 141Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 142Page - List of Unclassifed Manufacturers EM357-RTR Datasheet HTML 143Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 139 / 240 page
background image
EM351 / EM357
Hints on using center-aligned mode:
When starting in center-aligned mode, the current up-down configuration is used. This means that the
counter counts up or down depending on the value written in the TIM_DIR bit in the TIMx_CR1 register. The
TIM_DIR and TIM_CMS bits must not be changed at the same time by the software.
Writing to the counter while running in center-aligned mode is not recommended as it can lead to
unexpected results. In particular:
The direction is not updated when the value written to the counter that is greater than the auto-
reload value (TIMx_CNT > TIMx_ARR). For example, if the counter was counting up, it continues to
count up.
The direction is updated when 0 or the TIMx_ARR value is written to the counter, but no UEV is
generated.
The safest way to use center-aligned mode is to generate an update by software (setting the TIM_UG bit in
the TIMx_EGR register) just before starting the counter, and not to write the counter while it is running.
9.3.10 One-Pulse Mode
One-pulse mode (OPM) is a special case of the previous modes. It allows the counter to be started in response
to a stimulus and to generate a pulse with a programmable length after a programmable delay.
Starting the counter can be controlled through the slave mode controller. Generating the waveform can be
done in output compare mode or PWM mode. Select OPM by setting the TIM_OPM bit in the TIMx_CR1 register.
This makes the counter stop automatically at the next UEV.
A pulse can be correctly generated only if the compare value is different from the counter initial value.
Before starting (when the timer is waiting for the trigger), the configuration must be:
In up-counting: TIMx_CNT < TIMx_CCRy ≤ TIMx_ARR (in particular, 0 < TIMx_CCRy),
In down-counting: TIMx_CNT > TIMx_CCRy.
For example, to generate a positive pulse on OC1 with a length of tPULSE and after a delay of tDELAY as soon as a
rising edge is detected on the TI2 input pin, using TI2FP2 as trigger 1:
Map TI2FP2 on TI2: Write TIM_IC2S = 01 in the TIMx_CCMR1 register.
TI2FP2 must detect a rising edge. Write TIM_CC2P = 0 in the TIMx_CCER register.
Configure TI2FP2 as trigger for the slave mode controller (TRGI): Write TIM_TS = 110 in the TIMx_SMCR
register.
Use TI2FP2 to start the counter: Write TIM_SMS to 110 in the TIMx_SMCR register (trigger mode).
The OPM waveform is defined: Write the compare registers, taking into account the clock frequency and
the counter prescaler.
The tDELAY is defined by the value written in the TIMx_CCR1 register.
The tPULSE is defined by the difference between the auto-reload value and the compare value
(TIMx_ARR - TIMx_CCR1).
To build a waveform with a transition from 0 to 1 when a compare match occurs and a transition from 1 to
0 when the counter reaches the auto-reload value:
Enable PWM mode 2: Write TIM_OC1M = 111 in the TIMx_CCMR1 register.
Optionally, enable the buffer registers: Write TIM_OC1BE = 1 in the TIMx_CCMR1 register and
TIM_ARBE in the TIMx_CR1 register. In this case, also write the compare value in the TIMx_CCR1
register, the auto-reload value in the TIMx_ARR register, generate an update by setting the TIM_UG
bit, and wait for external trigger event on TI2. TIM_CC1P is written to 0 in this example.
In the example, the TIM_DIR and TIM_CMS bits in the TIMx_CR1 register should be low.
Since only one pulse is desired, software should set the TIM_OPM bit in the TIMx_CR1 register to stop the
counter at the next UEV (when the counter rolls over from the auto-reload value back to 0).
9-19
120-035X-000D
Preliminary



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