Professional Documents
Culture Documents
Application Pack 2:: PWM Based H-Bridge Power Control
Application Pack 2:: PWM Based H-Bridge Power Control
Application Pack 2:: PWM Based H-Bridge Power Control
Application Pack 2:
PWM
based
H-Bridge
power
control
®
❝Discovering VisSim has been a major turning point in
my career as a control engineer. VisSim allows me to
solve problems ten times faster than with tools
conventionally adopted by industry❞
▼
▼
Mike Borrello,
the technical computing people Senior Controls Engineer, Mallinckrodt, Inc.
+Bus
Q1 Q2
transformer
Q3 Q4
-Bus
Fig. 1 Full H-Bridge
• Tel: 01462 480055 • Fax: 01462 480213 • Email: vissim@adeptscience.co.uk • WWW: www.adeptscience.co.uk • WebStore: www.adeptstore.co.uk
VisSim
Fig. 3 - VisSim/Embedded Controls Developer diagram for H-Bridge Control
The VisSim diagram from Fig. 3 shows the scaled fixed-point blocks required to implement a
simple H-Bridge control. Note that because the fixed point PI control output is scaled at 1.16 (1
binary digit to the left of the decimal place in a 16 bit word) and is followed by a gain of .5, the
largest value that can appear after the gain is .5, thus avoiding activation of both legs of the H-
Bridge simultaneously.
The Full Compare PWM block has 3 inputs that control the 3 PWM pairs PWM1-2, PWM3-4, For further
PWM5-6. Since we are only using PWM1 and PWM3, we have left the remaining PWM pins
configured as “Force Low”. We assume that the analog in has been scaled to produce the value 1 information on
at 10 Volts, thus the setpoint of .5 will result in an actual voltage setpoint of 5 volts. VisSim 5 please
contact your
nearest Adept
Scientific Office
UK
Adept Scientific plc
Amor Way, Letchworth,
Herts, SG6 1ZA, UK
Tel: 01462 480055
Fax: 01462 480213
Email: info@adeptscience.co.uk
WWW: www.adeptscience.co.uk
WebStore: www.adeptstore.co.uk
Denmark
Adept Scientific Aps
Nordre Jernbanevej 13C,
DK-3400 Hillerød, Denmark
Tel: +45 48 25 17 77
Fax: +45 48 24 08 47
Email: infodk@adeptscientific.dk
WWW: www.adeptscientific.dk
WebStore: www.adeptstore.dk
USA
Adept Scientific plc
7909 Charleston Court,
Bethesda, MD 20817, USA
Tel: +1 (301) 365-0720
Fax: +1 (301) 767-1675
Email: info@adeptscience.com
WWW: www.adeptscience.com
WebStore: www.adeptstore.com
®
Copyright © 2002
Adept Scientific plc.
All rights reserved.
All trademarks
recognised.
E&OE
APPLICATION PACK 2
VisSim Embebbed Controls Developer
Serial LCD
Serial LCD blocks support up to 4-line-by-20-column
serial interfaced LCDs. You can compose text prompts,
numeric formatting, field placement, and page address for
each block. Additionally, runtime paging commands are
supported. Serial baud rate, serial protocol, and LCD vendor
format are user-configurable.
• Tel: 01462 480055 • Fax: 01462 480213 • Email: vissim@adeptscience.co.uk • WWW: www.adeptscience.co.uk • WebStore: www.adeptstore.co.uk
TI C2000 Digital Motor Control
Block Set
VisSim
The TI C2000 Digital Motor Control block set is
used for simulation and production code
generation of efficient, hand-coded assembler
for motion control systems based on AC Automatic comments and full
▼
induction, brushless DC, permanent magnet variable names consistent with
those used in block diagram
▼
synchronous and stepper motors. It includes PID
make code very readable and
Regulators, PWM Drivers, “3rd Harmonic” Space portable.
Vector Waveform Generators, Park and Clarke
Transforms, and Volts-to-Hertz Profiles. Fixed-point operations
implemented as in-line macros
and shift operations resulting in
fast execution speed and small
DSP-in-the-Loop Simulation footprint.
Copyright © 2002
Adept Scientific plc.
All rights reserved.
All trademarks
recognised.
E&OE