Electronic Components Datasheet Search
  English  ▼

X  

AN1602 Datasheet(PDF) 17 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) 17 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
 17 / 21 page
background image
17/21
16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs
Once the high level of the wave is split up we will use the same technique to generate the low
level.
Low Level period = 200 µs
= 400 * TTimer
= 190h * TTimer
= 1* FFh + 91h
So to generate the low level part of the PWM signal we have to:
– Generate an elementary PWM wave at low level
– Then generate the last wave at low level with a period of 91h
These different waves are computed and then cascaded by software using the Interrupt rou-
tine.
For this reason, a minimum PWM period has to be respected to allow enough time to complete
the interrupt routine task. In the software provided with this application note the minimum time
to be respected is the following :
The minimum DutyCycle = 55 Tcpu with LowLevel period >= 85 Tcpu.
with Ttimer = 0.125 µs we were able to generate a PWM signal with high level period=10.6 µs
and Lowlevel period = 16.63 µs .
This limitation applies only when working with values lower than FFh.
2.1.1.2 Generation Sequence
In general cases, the following variables are used to define the PWM signal in 16-bit mode:
– DutyCycleHR: 8-bit variable that defines the PWM signal duty cycle High register
– DutyCycleLR: 8-bit variable that defines the PWM signal duty cycle low register
– LowLevelHR: 8-bit variable that defines the PWM signal low level period High Register
– LowLevelLR: 8-bit variable that defines the PWM signal low level period Low Register
The pair of 8-bit variables (DutyCycleHR, DutyCycleLR) are used to hold the 16-bit value of
the PWM high level. The second pair of registers used to hold the low level period are Lowlev-
elHR and LowLevelLR.
Figure 15. PWM Parameters
To generate a PWM signal with 16-bit resolution, perform the steps shown in Figure 16.
DutyCycleHR (MSB)
DutyCycleLR (LSB)
LowLevelHR (MSB)
LowLevelLR (LSB)
Duty Cycle
Low Level



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