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

X  

AN1712 数据表(PDF) 2 Page - STMicroelectronics

部件名 AN1712
功能描述  GENERATING A HIGH RESOLUTION SINEWAVE USING ST7 PWMART
PDF  14 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN1712 数据表(HTML) 2 Page - STMicroelectronics

  AN1712 Datasheet HTML 1Page - STMicroelectronics AN1712 Datasheet HTML 2Page - STMicroelectronics AN1712 Datasheet HTML 3Page - STMicroelectronics AN1712 Datasheet HTML 4Page - STMicroelectronics AN1712 Datasheet HTML 5Page - STMicroelectronics AN1712 Datasheet HTML 6Page - STMicroelectronics AN1712 Datasheet HTML 7Page - STMicroelectronics AN1712 Datasheet HTML 8Page - STMicroelectronics AN1712 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 2 / 14 page
background image
2/14
GENERATING A HIGH RESOLUTION SINEWAVE USING ST7 PWMART
1 GENERATING A SINUSOID
This section highlights the main features of the ST7 PWMART used to generate a PWM signal
which is then filtered by low pass filter (a simple RC circuit in this example) to generate a si-
nusoid. Please refer to the ST7 datasheet for more details.
The ST7 PWMART consists of an 8-bit auto reload counter with compare/capture capabilities
and a 7-bit clock prescaler.
1.1 PWM GENERATION
The free running 8-bit counter is fed by the output of the prescaler, and is incremented on
every rising edge of the clock signal. It is possible to read or write the contents of the counter
on the fly by reading or writing the Counter Access register (ARTCAR). When a counter over-
flow occurs, the counter is automatically reloaded with the contents of the ARTARR register
(the prescaler is not affected).
The counter clock frequency is given by:
The timer counter’s input clock (fINPUT) feeds the 7-bit programmable prescaler, which selects
one of the 8 available taps of the prescaler, as defined by CC[2:0] bits in the ARTCSR Reg-
ister. Thus the division factor of the prescaler can be set to 2n (where n = 0, 1,..7). This fINPUT
frequency source is selected through the EXCL bit of the ARTCSR register and can be either
the fCPU or an external input frequency fEXT. The clock input to the counter is enabled by the
TCE (Timer Counter Enable) bit in the ARTCSR register. When TCE is reset, the counter is
stopped and the prescaler and counter contents are frozen. When TCE is set, the counter runs
at the rate of the selected clock source.
The timer compare function is based on four different comparisons with the counter (one for
each PWMx output). Each comparison is made between the counter value and an output com-
pare register (OCRx) value. This OCRx register can not be accessed directly, it is loaded from
the duty cycle register (PWMDCRx) at each overflow of the counter.
This double buffering method avoids glitch generation when changing the duty cycle on the fly.
PWM mode allows up to four Pulse Width Modulated signals to be generated on the PWMx
output pins with minimum core processing overhead. This function is stopped during HALT
mode. Each PWMx output signal can be selected independently using the corresponding OEx
bit in the PWM Control register (PWMCR). When this bit is set, the corresponding I/O pin is
2CC[2:0]
fINPUT
fCOUNTER=
2



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14


数据表 下载

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