Code generator – real time operating system
EMBED© is a visual environment for model based development of embedded systems.
Previously known as VisSim Embedded, this viewer, thanks to its highly efficient efficient diagram-to-code capability shortens the development time and increases product quality.
With EMBED© you can quickly develop virtual prototypes of any dynamic system. Models are built by simply sliding blocks into the work area and wiring them together with the mouse.
EMBED© automatically converts the control diagrams into C-code ready to be downloaded to the target hardware.
The generated C-code is recognized for its efficiency with respect to memory requirements and runtime.
Using EMBED©, you can build a model of your entire system, including the control algorithm and the plant.
The control system can be built in scaled, fixed-point arithmetic, while the plant is built in full-precision, floating point arithmetic. For model construction, EMBED© provides extensive block libraries, including:
- TI C2000 Motor Control block library
- TI InstaSPIN block library
- On-chip peripheral block library
- Fixed-point block library
- Motor block library
- EMBED© supports OMG UML 2.1 compliant graphical state chart editing, simulation and code generation.
- Combined with a built-in C interpreter, this allows fast and reliable development of complex control applications.
- Whether you need to decode a serial protocol, or step through a complex start up or shut down sequence, the State Chart block library accelerates these tasks.
EMBED© generates efficient and compact ANSI C code for discrete, continuous, and hybrid systems. MCU target support includes a report to display the COFF section sizes of the generated execution file.
For example, code generated for closed-loop motor control – including, PI controller, digital output, PWM, and encoder peripherals – runs at 300KHz on a 150MHz F28335 MCU.
In MCU-in-the-loop simulation, the plant model runs on the host computer in EMBED© while the control algorithm runs in real time on the target MCU.
Real-time communication between the target MCU and EMBED© is performed via a JTAG hotlink. EMBED’s GUI is retained while you tune parameters and monitor real-time data.
EMBED© also supports a PIL-synchronous communication mode that runs the target in lock step with the simulation, allowing easy verification of embedded algorithms.
The Fixed-Point block library lets you perform simulation and efficient code generation of scaled, fixed-point operations.
Overflow and precision loss effects are easily seen and corrected at simulation time. Auto-scaling speeds fixed-point development, while in-line code generation creates fast target code.
The target-specific blocks let you easily program on-chip devices. These blocks include analog ADC, ePWM, eCAP (event capture), SPI, SCI (RS232 serial), I2C, digital GPIO, QEP(quadrature encoder), and CAN 2.0.
CAN bus blocks offer an extensive range of capabilities to support the development of systems with CAN communication. The CAN transmit and receive blocks support up to 32 CAN mailboxes on the TI C2000 series. Baud rates to 2 megabits are supported.
Mailboxes are configurable from 0- to 8-byte data packet size. User-configurable addressing can be 11 or 23 bits. Remote frame requests and auto-answer are also supported.
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.
The TI C2000 Digital Motor Control blocks are used to design motion control systems based on AC induction, brushless DC, PMSM, and stepper motors.
EMBED© provides both 16- and 32-bit digital motor control blocks, including PID, 3-Phase PWM Drivers, Space Vector Waveform Generators, Park and Clarke Transforms, Volts-to-Hertz Profiles, sensorless flux and rotor speed estimation, and quadrature-encoder-based speed calculator.
Sample diagrams are included for sensored and sensorless vector control of PMSM and AC induction motors.
The InstaSPIN block library allows sensorless rotor position estimation using algorithms burned into ROM on selected chips.
The InstaSPIN blocks perform identification of key motor parameters, as well as field-oriented motor control.
The blocks also provide a simple interface to the complex InstaSPIN API, thereby shortening your design time for InstaSPIN applications.
The Spin team is at your disposal for any need