0% found this document useful (0 votes)
17 views70 pages

Infineon Microcontroller Final II

Infineon Microcontroller Final IIInfineon Microcontroller Final IIInfineon Microcontroller Final II

Uploaded by

Erhan Yilmaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views70 pages

Infineon Microcontroller Final II

Infineon Microcontroller Final IIInfineon Microcontroller Final IIInfineon Microcontroller Final II

Uploaded by

Erhan Yilmaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 70

XMC1000 MCU BLDC

PMSM
Infineon Technologies
2014

XMC1000: 8-bit price for 32-bit power


www.infineon.com/XMC1000
www.infineon.com/XMC4000
Main Content

 Infineon Latest MCU portfolio

 System block, Key Features

 Supporting tool, Ecosystem

 BLDC Motor Driver Design Using XMC

 PMSM
 Motor Driver
PMSM Motor Driver Design
Design Using
Using XMC
XMC

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 2


Main Content

 Infineon Latest MCU portfolio

 System block, Key Features

 Supporting tool, Ecosystem

 BLDC Motor Driver Design Using XMC

 PMSM
 PMSM Motor Driver Design
Motor Driver Design Using
Using XMC
XMC

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 3


Core Applications
Compressors Robotics Servo Drive
General Purpose Drives
Pumps & Fans

Aircon Sys Automation Process Control


Motor Control

Escalators Motor Control Solution E Vehicle


Building
Control Sensor/Sensor less, Transportation
Sinusoidal/Block Commutation, Traffic Lights
Elevators
Field Oriented Control
XC800/XE166 Fork Lifts
Battery Storage XMC1000
XMC4000 Solution
Power Converter GP Inverter
Solar Inverter
Renewable Inverters,Tricore
UPS, Rectifiers,
Power
Energies Power Factor Correction, LLC
Supplies UPS
AC/DC, DC/DC, DC/AC
Micro Inverter
Monitor/CTV
Medical
Wind Energy Converter
Telecom

Micro Turbines X-Ray Power Supplies for Medical Equipment


2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 4
Infineon new generation XMC families
targeted for Industrial Market

XMC4000
Infineon first ARM Core released in Feb’2012
Target 32bit application from mid to high end
XMC4100, 4200, 4400, 4500
80~120MHz 64K~2.5M Flash, 48~256pin package

XMC1000
Infineon second ARM Core released
Officially Press-release today on 17.Jan.13.
Sample available Mar 2013
Target low end market with 32bit MCU
XMC1100, 1200, 1300
32Mhz, 8~200K Flash, 16~38pin package

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 5


Infineon ARM based industrial
Microcontrollers

Flash

2.5MB

1MB XMC4500 XMC4500 XMC4500

768kB XMC4500 XMC4500

512kB XMC4400 XMC4400 XMC4500 XMC4500

256kB XMC4200 XMC4200 XMC4400 XMC4400

128kB XMC4100 XMC4100

XMC1000
64kBXMC4100 XMC4100

VQFN48 LQFP64 LQFP64 LQFP100 LQFP100 LQFP144

LFBGA64 LFBGA
(in def.) 144

TSSOP TSSOP TSSOP


16 28 38
XMC4100 XMC4200 XMC4400 XMC4500

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 6


One microcontroller platform.
Countless solutions. XMC.

XMC1000:
8-bit price for 32-bit power
www.infineon.com/XMC1000

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 7


Where XMC1000 makes the difference
Standard Core in
Leading edge technology

Scalable & user friendly


65nm

300mm
DAVETM SW IP Protection
Apps

32-bit ARM® CortexTM-M0 From # 1 in security microcontrollers


Flash Portfolio
Industry standard for 8-bit replacement
200KB
Design
House
8KB
XMC Peripherals
A/D SW IP
CCU8
SW IP
USIC
CCU4

Programmer OEM
SW IP

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 8


XMC1000 Key Features
inspired by Target Application Fields

Target Application Fields

 Motor control  Smart sensors

 LED lighting  HMI (capacitive touch & LED displays)

 Digital power conversion  General purpose

Key Features

 Most scalable Flash memory portfolio  Leading edge XMC mixed signal
in Low-end: from 8KB to 200KB and timer peripherals

 AES 128-bit secure loader  64MHz MATH Co-processor


for SW IP protection for advanced control loops (CORDIC / DIVIDE)

 LED lighting & color control  30ns analog comparators

 32-bit ARM® CortexTM-M0, 32MHz  IEC 60730 Class B

 Broadest supply range 1,8 - 5V  Peripherals for Touch control


and LED display control

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 9


XMC1000 (3 Product Series, 22 products, 5
packages)
+++ 22 products +++ 3 packages TSSOP-16, -28, -38 +++ 8KB to 200KB Flash +++
(VQFN-24, -40 available in Q1 2014)

XMC1300
Control Series

XMC1200
Feature Series  Special purpose timers for
motor control & digital power
XMC1100 conversion (CCU8)

Entry Series  Additional features  MATH co-processor


 Patented LED-lighting and  Motor position I/F (POSIF)
–color control peripheral
 Basic feature set, (BCCU)  Extended temperature range
state of the art to 105°C
 Capacitive touch and LED-
(16-bit timers, 12-bit ADC, Display control (LEDTS)
serial communication)
 Extended temperature range
 Simplified documentation to 105°C

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 10


Main Content

 Infineon Latest MCU portfolio

 System block, Key Features

 Supporting tool, Ecosystem

 BLDC Motor Driver Design Using XMC

 PMSM
 Motor Driver
PMSM Motor Driver Design
Design Using
Using XMC
XMC

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 11


ACMP and ORC
System Integration

The output signals of ACMP as well as


ORC are available at the input
multiplexer of the event request unit
ERU. As a result, they can be flexibly
combined to logical signals that trigger
interrupts, start timers or trigger ADC
measurements.
It is the unique combination of fast
analog signals and the powerful
peripherals that provide a solution in
various demanding control applications.
 Target applications
Both the fast ACMP as well as ORC
 Motor Control comparators are functional in a wide
 Intelligent Lighting supply voltage range (2.7V … 5.5V).

 Power Conversion
 General Purpose

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 12


CCU4
Flexible PWM generation
 Each Timer Slice of the
CCU4 can operate in
center aligned or edge
aligned mode
 Additional operation
modes like single shot,
counting or dithering
modes are also available
 Update of the Duty Cycle
and Period can be done
on-the-fly to
accommodate different
operation requirements
 Additional external
controllable functions
give another degree of
PWM manipulation (e.g.
timer gate, timer load,
timer clear, etc)

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 13


CCU8
Capture/Compare Unit 8 Key Features

Highlights
The CCU8 is a flexible timer module,
comprised of 4 identical timer slices
tailored for multi-phase PWM
generation and signal conditioning.
Several input functions can be
controlled externally (via pins or other
modules) enabling a powerful resource
arrangement for each application.

Key Feature Customer Benefits


Modular timer approach with Each specific application function can be
repeated external functions ported to any of the 4 Timers
Flexible PWM generation with on-the-fly duty Each Timer Slice can generate up to 4 PWM
cycle and period update plus dead time signals (2 pairs of complementary signals)
insertion
Flexible capture scheme Parallel capture and compare modes

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 14


POSIF
Position Interface Key Features

Highlights
The POSIF module is the ideal solution
for motor control applications using Hall
Sensors and Quadrature Decoders. The
user can configure freely the type and
usage of the resources to perform an
optimized mapping to the wanted
application.

Key Feature Customer Benefits


Interface for linear or quadrature Application tailored motor position and
rotary encoder velocity measurement.

Interface for Hall Sensors Tailored solution for 2 or 3 Hall Sensor


applications. Coupling with PWM generation.

Stand-alone multi channel control Perform multi-level modulation for PWM.


Tailored modulation development

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 15


MATH
MATH Co-Processor

Highlights
The math co-processor provides a 32bit
signed or unsigned divider as well as a
24bit CORDIC for trigonometric
calculations. Both DIVIDER and CORDIC
can operate in parallel next to the
CORTEX-M0 CPU core.
The MATH unit is connected to the PCLK
which can be configured for 64MHz.

Key Feature Customer Benefits


32bit divide for signed and unsigned The calculation time of a divide
long integer numbers operation is reduced to ..%

sin(x), cos(x), arctan(y/x) is Increase of computational power for


executed in parallel to CPU operation real time critical tasks

Vector rotation (PARK transform) is Field oriented motor control algorithms


executed in 24bit resolution are implemented with high resolution
2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 16
ADC
Analog to Digital Converter

Highlights
The ADC in all XMC1000 series is based
on a high speed 12-bit analog to digital
converter which is clocked with 32MHz.
Resulting in high maximum sample
rates for 12-bit conversions:
 1.28MSPS calibrated
 1.88MSPS un-calibrated

Key Feature Customer Benefits


12-bit, 10-bit and 8-bit conversion This fast ADC can be made faster when configuring in
lower resolution conversion modes.
modes as well as fast compare mode The 10-bit fast compare mode just takes 62.5ns.

Individually adjustable gain for each An adjustable gain factor of x1, x3, x6 or x12
together with the fast conversion speed make an
analog input channel operational amplifier obsolete in many applications.

Two independent sigma delta loops The two sigma delta loops individually hold the
quantization error of the previous conversion in order
increase ENOBs to consider this tiny amount in the next conversion.
2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 17
Main Content

 Infineon Latest MCU portfolio

 System block, Key Features

 Supporting tool, Ecosystem

 BLDC Motor Driver Design Using XMC

 PMSM
 Motor Driver
PMSM Motor Driver Design
Design Using
Using XMC
XMC

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 18


Tools and SW Partners
for XMC Micro Controllers
 Commercial tools and SW
solutions
 Infineon cooperates with all
major tool and SW vendors for
ARM based microcontrollers to
support XMC1000 as well as
XMC4000
 Free tools and SW solutions
 The development platform
DAVE is provided by Infineon
 Open source
― FreeRTOS
 Free evaluation versions

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 19


DAVE™ makes powerful hardware accessible
Free IDE and code generator
Integrated Development Environment
Auto-code generator (Code Engine)
(IDE)

 Eclipse based  Easy selection of peripheral and


 Free GNU Compiler, debugger, loader application oriented DAVE™ Apps
 Free data visualization utilities  Configuration via graphical user interface
 Open for 3rd party tools (compiler,  Generated code can be used via well
debugger) and software (operating documented APIs (like a library)
systems, stacks) as plug-in  Extendable by user or 3rd party Apps

 Website: www.infineon.com/dave3
2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 20
Overview of available and planned DAVE™
Apps for the XMC Families

Service Apps Middleware Application Specific Middleware


 Clock  USB stack, class drivers, host HMI
 Reset and device
 SystemControl Power Conversion
 TCP/IP stack plus HTTP, FTP,
 Power Mgmt.
SNMP
 Watchdog Lighting
 SD/MMC, file system,…
 DMA
 NVIC /Exception  GUI lib plus driver for intel. Motor Control
 Request Unit LCD
 AC, BLDC, PMSM
 I/O  …..
 ControlLib
 EBU
 Flash Basic Applications  ……
 CRC
 PWM, Capture, Timer,
 AES Counter Ref. Projects
 SW/SysTimer
 Communication  elua
 Debug Log
 CMSIS RTOS  Analog  HMI system
 Libraries  ……..  ……

In total Infineon is providing 170+ DAVE Apps


Details about the latest released DAVE Apps can be found here:
http://www.infineon.com/cms/en/product/promopages/aim-mc/DAVE_3_Support_Portal/Release_Note_update.html

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 21


App Support for Motor Control

 V/F for simple open loop


 Block Commutation for Hall Sensor
 Sinewave commutation for Hall Sensor
 Sensorless FOC

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 22


The DAVE™ Development Platform

SW Components:
DAVE Apps

DAVE™
Basic
IDE Library code
Applications, generation based on
Middleware Code Engine
predefined and tested
DAVE™Apps SW components
Manager
(Lib Manager)
(DAVE™ Apps)

GNU Compiler

Debugger 3rd party


3rd party Option for third parties
X-SPY 3rd party to plug in other
commercial or free tools
Eclipse CDT

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 23


XSPY for PC Monitoring Program

 Using xSPY the user can easily define an UI to control and


monitor the microcontroller from the PC.
 xSPY is a DAVE plugin used to visualize and analyze the
tracing data generated by DBG002 App by means of software
oscilloscopes and logging views.

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 24


XSPY for PC Monitoring Program

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 25


Main Content

 Infineon Latest MCU portfolio

 System block, Key Features

 Supporting tool, Ecosystem

 BLDC Motor Driver Design Using XMC

 PMSM
 Motor Driver
PMSM Motor Driver Design
Design Using
Using XMC
XMC

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 26


Introduction to Brushless DC (BLDC) Motor

 Constructed with a permanent magnet rotor and a stator


comprising of wire wound poles and stacked steel laminations.
 Electrical energy is converted to electrical energy by the
magnetic attractive force between permanent magnet and the
rotating magnetic field induced in the wound stator poles

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 27


Introduction to Brushless DC (BLDC) Motor

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 28


Introduction to Brushless DC (BLDC) Motor

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 29


Introduction to Brushless DC (BLDC) Motor

1 1
A
C+
C’ B’
N
0 N S
S
B-
B C

A’

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 30


Introduction to Brushless DC (BLDC) Motor

1>>0 1
A
C+
C’ B’

N
0 N S

S
B-
B C

A’

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 31


Introduction to Brushless DC (BLDC) Motor

0 1
A
C+
C’ B’

N
S
A-
B C

A’

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 32


Introduction to Brushless DC (BLDC) Motor

0 1>>0
A
B+
C’ B’

S
0

N
A-
B C

A’

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 33


Introduction to Brushless DC (BLDC) Motor

0 1>>0
A
B+
C’ B’
S
0
N
A-
B C

A’

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 34


POSIF Feature

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 35


CCU4 Feature

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 36


CCU8Feature

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 37


Overview of POSIF, CCU4 & CCU8 usage
for Hall Sensor BLDC Motor control application

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 38


Hall Sensored Block Commutation

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 39


Hall Sensored Block Commutation –Control
Algorithm

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 40


Hall Sensored Block Commutation – Control
Panel

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 41


Hall Sensored Block Commutation – Motor
Parameters

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 42


Hall Sensored Block Commutation – Motor
Parameters

Hall3
Hall2
Hall1

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 43


Hall Sensored Block Commutation – Motor
Parameters

Hall3 0 0 0 1 1 1
Hall2 0 1 1 1 0 0
Hall1 1 1 0 0 0 1

1–3–2- 6–4–5

 The Hall Pattern for one electrical cycle is:


 1 -> 3 -> 2 -> 6 -> 4 -> 5

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 44


Hall Sensored Block Commutation – Motor
Parameters

1
3
2
6
4
5

 The Hall Pattern for one electrical cycle is:


 1 -> 3 -> 2 -> 6 -> 4 -> 5

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 45


Hall Sensored Block Commutation – Motor
Parameters

U H

V
F

W L

Hall3 0
Hall2 0
Hall1 1

At Hall Position “1” :


 U is “High”
 V is “Float”
 W is “Low”
2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 46
Hall Sensored Block Commutation – Motor
Parameters

 MOUT of the POSIF is used to control the PWM signal.

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 47


Hall Sensored Block Commutation – Motor
Parameters
(LSB)
High side 1
Low side 0
U NA 0
NA 0
4 signals
High side 0
4 signals Low side 0
V NA 0
4 signals NA 0

High side 0
At Hall Position “1” : Low side 1
W NA 0
 U is “High” NA 0

 V is “Float” (MSB)
 W is “Low”
W V U
(MSB) (LSB)
The output pattern is “0010 0000 0001”.
The output pattern is “201” (hex).
2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 48
Hall Sensored Block Commutation – Power
Board Configuration

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 49


Hall Sensored Block Commutation – Motor
Parameters
 High Side PWM

 Both Side PWM

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 50


Hall Sensored Block Commutation – Adaptive
Hall Pattern

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 51


Hall Sensored Block Commutation – Interrupts

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 52


Hall Sensored Block Commutation – Interrupts

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 53


Main Content

 Infineon Latest MCU portfolio

 System block, Key Features

 Supporting tool, Ecosystem

 BLDC Motor Driver Design Using XMC

 PMSM
 Motor Driver
PMSM Motor Driver Design
Design Using
Using XMC
XMC

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 54


PMSM Field Oriented Control with Encoder

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 55


PMSM Field Oriented Control with Encoder

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 56


Mathematical Consideration

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 57


Space Vector Modulation

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 58


Space Vector Diagram

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 59


Space Vector Diagram

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 60


FOC Example Project - Overview of Apps

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 61


ADC App

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 62


ADC App - Feature

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 63


POSQE App

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 64


POSQE App - Feature

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 65


PWMSVM App -

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 66


PWMSVM App - Feature

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 67


XMC family: 32-bit microcontroller family
for industrial applications

DAVE™ 3
Free, easy and open High abstraction level of
software development by

Best peripherals and flexibility for


scalable industrial systems

XMC

Industrial standard core and


connectivity

graphical programming
environment automatic code generation

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 68


Key differentiators of the Infineon XMC
industrial microcontroller family

Combination of Infineon key IP and know-how


with all the benefits of an industry standard core

Microcontroller Quality and


SW Tool DAVE™ 3
Know-how reliability

 >30 years automotive  High-performance Flash  Next generation of


and industrial technology DAVE™ with enhanced
microcontroller  Extended temperature functionality
experience range on selected  Free tools
 Innovative application products (125 °C)  Auto-code generation
specific peripherals  Long product life time making powerful
 Highly configurable and (min. 15 years) hardware easy to use
flexible  Open to 3rd parties
 Fast flash

2013-08-19 Copyright © Infineon Technologies AG 2013. All rights reserved. Page 69


Thank you!

영업문의 : 구성모 이사([email protected])


황혜성 차장([email protected])
기술문의 : 조용규 과장([email protected])

You might also like