Você está na página 1de 37

QuantiPhi for RH850 and RL78 - The

Fastest Path from Idea to Implementation

Renesas Electronics America Inc.


2012 Renesas Electronics America Inc. All rights reserved.

Renesas Technology & Solution Portfolio

2012 Renesas Electronics America Inc. All rights reserved.

Microcontroller and Microprocessor Line-up


2010

2013

1200 DMIPS, Superscalar

32-bit

Automotive & Industrial, 65nm


600A/MHz, 1.5A standby

1200 DMIPS, Performance


Automotive, 40nm
500A/MHz, 35A deep standby

500 DMIPS, Low Power

8/16-Bit True Low Power


High Efficiency & Integration

Automotive & Industrial, 90nm


600A/MHz, 1.5A standby

165 DMIPS, FPU, DSC


Industrial, 40nm
242A/MHz, 0.2A standby

165 DMIPS, FPU, DSC


Industrial, 90nm
242A/MHz, 0.2A standby

8/16-bit

25 DMIPS, Low Power

Industrial, 90nm
1mA/MHz, 100A standby

Industrial & Automotive, 150nm


190A/MHz, 0.3A standby

44 DMIPS, True Low Power

10 DMIPS, Capacitive Touch

Industrial & Automotive, 130nm


144A/MHz, 0.2A standby

Industrial & Automotive, 130nm

Wide
Format LCDs
350A/MHz, 1A standby
3

Embedded Security, ASSP

2012 Renesas Electronics America Inc. All rights reserved.

Agenda
The Problem
Introduction QuantiPhi RE
Example Application: Hand-Code
Example Application: Model-Based Design
Q&A

2012 Renesas Electronics America Inc. All rights reserved.

The Problem

2012 Renesas Electronics America Inc. All rights reserved.

Application

2012 Renesas Electronics America Inc. All rights reserved.

PWM

I2C

SPI

IC

CAN

Sleep

ADC

GPIO

...

Update
project plan

Win more
business
(be creative)

HAL needs
work

Set up
HIL
(again?)

Validate
controls

Attend
Good to
Great talk

SCMP
Review

Integration
test all
sub-assemblies

Pick up more
coffee

Schedule
requirement
reviews

Company
picnic
(mandatory)

Develop
controls
(better than
ever)

Figure out
unit testing
strategy
Double check
HIL wiring..
again

Make
requirements
Timesheets? doc that
Really?? matches code

2012 Renesas Electronics America Inc. All rights reserved.

100%
coverage

MODELBASED!
Develop
low-level SW
for new micro

Even More Problems

Scheduling: hardware comes late, critical path


Cost and schedule pressures drive MCU changes
MCU idiosyncrasies and asymmetries
Migration from app note to application
Migration from EVB to PCB
Integrating driver layer with application
Not a value-added activity
Small changes can have large implications

2012 Renesas Electronics America Inc. All rights reserved.

The Path to Production

Read User
Manual

Write & Test


Drivers

Re-read

Application
Hardware Design

2012 Renesas Electronics America Inc. All rights reserved.

Re-design

Re-write

QuantiPhi RE

10

2012 Renesas Electronics America Inc. All rights reserved.

QuantiPhi is a tool that configures and


generates a production quality software
stack for Renesas Microcontrollers.

11

2012 Renesas Electronics America Inc. All rights reserved.

OS

Model-Based

PWM
A2D

Application

12

2012 Renesas Electronics America Inc. All rights reserved.

CAN
SPI

Everything Else

The Path to Production


Read User
Write & Test
QuantiPhi
Manual
Drivers

Re-read

Application
Hardware Design

QuantiPhi

Re-design

Customize

Application
Hardware Design

13

2012 Renesas Electronics America Inc. All rights reserved.

Re-design

Re-write

QuantiPhi
Components

14

2012 Renesas Electronics America Inc. All rights reserved.

Drivers

15

2012 Renesas Electronics America Inc. All rights reserved.

(Re) configurable
MISRA-compliant C code
Test reports
API documentation
Timing analysis

Drivers

Get months ahead


without writing lowlevel code.

16

2012 Renesas Electronics America Inc. All rights reserved.

Configuration
Industry-leading User
Interface reconfigures
drivers
Generate driver code at any
time
Continuously validating
settings
Approachable by software
and controls engineers

17

2012 Renesas Electronics America Inc. All rights reserved.

Configuration
With QuantiPhi,
configuration is
smart and intuitive!
Graphical
Diagrammatic
Engineering units

18

2012 Renesas Electronics America Inc. All rights reserved.

Configuration

If problems arise, QuantiPhi instantly spots the error and


guides you to a solution.
19

2012 Renesas Electronics America Inc. All rights reserved.

Prototyping
Out-of-the-box configurations for SH72546 and
SH72531-based prototyping ECUs. Prototype
algorithms in minutes!
Supports controls / R&D engineers as well as
production software engineers.

20

2012 Renesas Electronics America Inc. All rights reserved.

Model-Based Development
Access QuantiPhi API via blocks
(e.g. PWM channels and GPIO).
Design-time validation
Build process management
Tables, gains, parameters, etc
are automatically calibratable

21

2012 Renesas Electronics America Inc. All rights reserved.

Extensions
Ecosystem of drivers and IP extend seamlessly
integrate into QuantiPhi.

Control
strategies
Drivers
Plant Models

22

2012 Renesas Electronics America Inc. All rights reserved.

Extensions: MICON
Interfaces for hand-code strategies
Pre-made application shell
Optional tasking structure

Low level Drivers


High-level (steering, propulsion, sensing)
Calibration
23

2012 Renesas Electronics America Inc. All rights reserved.

Extensions: MICON

Model-based simulation
framework and base
control strategy for virtual tuning

Low level Drivers


High-level (steering, propulsion, sensing)
Calibration
24

2012 Renesas Electronics America Inc. All rights reserved.

Real World Example

25

2012 Renesas Electronics America Inc. All rights reserved.

Problem Statement
Heres a MICON car. We need to make it steer!

26

Analyze schematic
Set up I/O
PWM driver
Steering driver (servo)

2012 Renesas Electronics America Inc. All rights reserved.

Code It By Hand

27

2012 Renesas Electronics America Inc. All rights reserved.

Interactive Session Hand Code

28

<Use QuantiPhi to create a new RL78 project>


<Implemented by hand interactively with participants>
<Flash to board>
<Debug>

2012 Renesas Electronics America Inc. All rights reserved.

Model-Based

29

2012 Renesas Electronics America Inc. All rights reserved.

30

2012 Renesas Electronics America Inc. All rights reserved.

Model-Based with QuantiPhi

Idle Set
Point

Idle Control

Idle Bypass
Actuator

Engineers design and test


their controls in simulation.

31

2012 Renesas Electronics America Inc. All rights reserved.

Model-Based Development

pwm0
Idle Set
Point

Idle Control

PA0

RPM

QuantiPhi provides access to I/O and


system resources from within Simulink.
Algorithms now run on a Renesas target.

32

2012 Renesas Electronics America Inc. All rights reserved.

Idle Bypass
Actuator

Model-Based Development: e.g.


Write digital outputs,
PWM freq and dc,
Change spark/fuel
timing, etc

Read sensors, etc

This model is an entire engine


controller. No hand code! It
builds to a binary which can
be flashed onto the controller.
33

2012 Renesas Electronics America Inc. All rights reserved.

Control Strategy inside.


This is the same
strategy that you
simulate with Enginuity.

Model-Based Development: e.g.


Filtering, conversion,
and conditioning is
easy! Read count
values and then just
convert them to
whatever units you
need.

34

2012 Renesas Electronics America Inc. All rights reserved.

Interactive Session MATLAB/Simulink


<Implemented in model interactively with participants>
<Flash to board>
<Debug>

35

2012 Renesas Electronics America Inc. All rights reserved.

Questions?

36

2012 Renesas Electronics America Inc. All rights reserved.

Renesas Electronics America Inc.


2012 Renesas Electronics America Inc. All rights reserved.

Você também pode gostar