Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1712 Datasheet(PDF) 8 Page - STMicroelectronics

Part # AN1712
Description  GENERATING A HIGH RESOLUTION SINEWAVE USING ST7 PWMART
PDF  14 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1712 Datasheet(HTML) 8 Page - STMicroelectronics

Back Button 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 AN1712 Datasheet HTML 10Page - STMicroelectronics AN1712 Datasheet HTML 11Page - STMicroelectronics AN1712 Datasheet HTML 12Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 14 page
background image
8/14
GENERATING A HIGH RESOLUTION SINEWAVE USING ST7 PWMART
Figure 3. Loading of sample values and initialization of sin structure
3.2 AUTO-RELOAD TIMER INITIALIZATION
The counter is initialized by:
– Writing to the ARTARR register to set the PWM frequency.
– Setting the FCRL (Force Counter Re-Load), the TCE (Timer Counter Enable) and OIE (Over-
flow Interrupt Enable) bits in the ARTCSR register.
In this case, the fINPUT is CPU clock (fCPU) and fCOUNTER = fINPUT (= 4MHz in this particular
application).
– Enable PWM0 and configure the polarity in the PWMCR register.
– Initialize the PWMDCR0 register to define the PWM duty cycle.
LoadValueIntoSinStructur
Load sample values (already defined)
into value[no_of_samples_half] of sin
structure (the no of samples in half sin
wave is already defined)
Initialize sinewave for up-
per half
return
Initialize Index=0



Html Pages

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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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