H-Bridge Software Setup Quick Guide

H-Bridge Control Software
for the DC Motor Control Shield with
XMC1100 Boot Kit and DAVE
Q1 2015
DAVE APPs Structure
 Output Voltage is controlled by two PWMSP001 APPs
 Ramp time is controlled by a third PWMSP001 APP via Interrupts
 Inhibit signals are software controlled by IO004 (port pins)
2014-11-03
Copyright © Infineon Technologies AG 2014. All rights reserved.
Page 2
Ramp Generator and its Parameters
// Parameters
const int32_t
const int32_t
const int32_t
const int32_t
supplyvoltage = 12;// supply voltage, used for scaling the duty cycle
outputvoltage_max = 4;// maximum output voltage
outputvoltage_min = -4;// minimum output voltage
flat_time = 100;// ticks based on 25Hz. (100 ticks = 4 seconds)
/***********************************************************
*
Ramp Generator
*
***********************************************************
*
*
* max
------------*
*
/ flat_time \
*
*
/
\
/
*
*
/
\
/
*
* 0 -/-------------------\--------------------/---------- *
*
\
/
*
*
\
/
*
*
* min
\
flat_time
/
-------------/
*
*
*
*
**********************************************************/
2014-11-03
Copyright © Infineon Technologies AG 2014. All rights reserved.
Page 3
How to import the project into DAVE
 1) Select File – Import
 2) Chose Infineon – DAVE Project
2014-11-03
Copyright © Infineon Technologies AG 2014. All rights reserved.
Page 4
How to import the project into DAVE
 Select archive File
 Browse for the file
 Select the project
 Click Finish
2014-11-03
Copyright © Infineon Technologies AG 2014. All rights reserved.
Page 5
How to download and run the project
 Build the project
 Start Debugger
 Run the software
2014-11-03
Copyright © Infineon Technologies AG 2014. All rights reserved.
Page 6
How to change PWM Frequency
 Change PWM Frequency in both
PWM APP instances
2014-11-03

PWMSP001/0

PWMSP001/1
Copyright © Infineon Technologies AG 2014. All rights reserved.
Page 7
How to connect the Shield to Power and
Motor
2: VS
4: OUT1
 H-Bridge
configuration:
Connect DC motor
to OUT1 and OUT2
1: Micro USB
3: GND
 2 x half-bridge
configuration:
Connect
to OUT1
Connect
to OUT2
DC motor 1
and GND.
DC motor 2
and GND
5: OUT2
3: GND
2014-11-03
Copyright © Infineon Technologies AG 2014. All rights reserved.
Page 8