Integrated Simulation of Embedded Controls in Power Electronics CASPOC 2001 - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Integrated Simulation of Embedded Controls in Power Electronics CASPOC 2001

Description:

Exporting ANSI C code from the block diagram. Modeling Language in the block diagram ... compiler required) Compiled C code (For example, Visual C) Simulation ... – PowerPoint PPT presentation

Number of Views:65
Avg rating:3.0/5.0
Slides: 17
Provided by: Simulatio1
Category:

less

Transcript and Presenter's Notes

Title: Integrated Simulation of Embedded Controls in Power Electronics CASPOC 2001


1
Integrated Simulation of Embedded Controls in
Power Electronics CASPOC 2001
  • PEMC 2002
  • Cavtat, 2002
  • P. Bauer, P.J. van Duijsen

2
Outline
  • Modeling Simulation
  • Exporting ANSI C code from the block diagram
  • Modeling Language in the block diagram
  • Debugging Modeling Language
  • Questions

3
Embedded Control
  • Analog hardware
  • Digital hardware
  • Software

4
Modeling and Simulation Modeling in the time
domain
  • What can we model?
  • Complexity of the model
  • Availability of parameter
  • What can we simulate?
  • Large simulations take a lot of time
  • Large simulations increase complexity and clarity

5
Modeling and Simulation
  • Modeling of power converter
  • Modeling of source and load
  • Modeling of control

6
Hardware independence
  • Hardware specific code
  • I/O data storage, interupts, etc
  • Embedded control C code
  • Application specific

7
Responsibility
  • Software engineer
  • I/O data storage, interupts, etc
  • Power electronics and drives (application)
    engineering
  • Application specific

8
Embedded control C code
  • ANSI C code for creating embedded applications

9
Exporting ANSI C code
  • From the control modeled in a block diagram, ANSI
    C code is exported
  • Hardware independent C code

10
Modeling Language
  • The exported code can be used in the simulation
    to substitute the block diagram control.
  • C-script (No compiler required)
  • Compiled C code (For example, Visual C)

11
Debugging Modeling Language
  • During simulation a debugger can be attached

12
Example buck converter
13
Example exported code
MainLoop() int OutputVoltage0 int
DutyCycle0 OutputVoltage GetVoltageFromDAC(1)
DutyCycleCSICASPOC(OutputVoltage) StoreValueIn
Register(1,DutyCycle)
14
Example Compiler in debugging mode
15
Example Practical results
16
Conclusions
  • Export of C code from Block diagram
  • Including the exported code in the simulation
  • Debugging during simulation
Write a Comment
User Comments (0)
About PowerShow.com