Electronic Components Datasheet Search
  English  ▼

X  

AN1602 Datasheet(PDF) 19 Page - STMicroelectronics

Part # AN1602
Description  16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1602 Datasheet(HTML) 19 Page - STMicroelectronics

Back Button AN1602 Datasheet HTML 13Page - STMicroelectronics AN1602 Datasheet HTML 14Page - STMicroelectronics AN1602 Datasheet HTML 15Page - STMicroelectronics AN1602 Datasheet HTML 16Page - STMicroelectronics AN1602 Datasheet HTML 17Page - STMicroelectronics AN1602 Datasheet HTML 18Page - STMicroelectronics AN1602 Datasheet HTML 19Page - STMicroelectronics AN1602 Datasheet HTML 20Page - STMicroelectronics AN1602 Datasheet HTML 21Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 19 / 21 page
background image
19/21
16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs
Figure 17. Without Optimization
Using the optimization method we will generate only 04 waves (period = FFh) then two
additional waves with a period of 82h (Figure 18) which provide the necessary delay for the
interrupt routine.
Figure 18. With Optimization
2.2 USING ST7263B
2.2.1 Principles
The Pulse Width Modulation (PWM) mode in the ST7263B, enables the generation of a PWM
signal with a frequency and pulse length controlled by the value of the OC1R and OC2R reg-
isters. To use Pulse Width Modulation mode we have to follow the steps described below:
Step 1. Load the OC2R register with the value corresponding to the period of the signal using
the following formula
With:
t = Signal or pulse period (in seconds)
FCPU = CPU clock frequency (in hertz)
Prescaler = Timer prescaler factor
Step 2. Load the OC1R register with the value corresponding to the period of the pulse using
the same formula as above.
Step 3. Configure CR1 register:
– Using the OLVL1 bit, select the level to be applied to the OCMP1 pin after a successful com-
parison with OC1R register.
1
23
45
The last PWM wave period is too small (04 Ttimer )
to be generated
5 PWM waves with a period of FFh
1
23
4
Two PWM waves with period (82h *Ttimer )
4 PWM waves with a period of FFh
1
2
OCiR
t Fcpu
×
() Prescaler
()
⁄
5
–
=



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21


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