RL78 Motor Control. YRMCKITRL78G14 Starter Kit. Renesas Electronics Europe. David Parsons Application Engineering Industrial Business Group.

Similar documents
Sensorless Vector Control with RL78G14

Sensorless Vector Control with RL78G14

RX23T inverter ref. kit

Motor Control using NXP s LPC2900

Sensorless Vector Control and Implementation: Why and How

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

STM32 PMSM FOC SDK v3.2. 蒋建国 MCU Application Great China

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.

STM32 motor control firmware library. STM32 FOC PMSM SDK v3.0.

MCU Product Selection Guide

Low Cost Motor Control Family

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

Sensorless PMSM Field-Oriented Control on Kinetis KV and KE

AP CANmotion. Evaluation Platform with BLDC Motor featuring XC886CM Flash Microcontroller Version 2007/10. Microcontrollers

F²MC-8FX/16LX/16FX/FR FAMILY BLDC DRIVE WITH THE PPG

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

3-in-1 Air Condition Solution

Motor Control Solutions

Using Z8 Encore! XP MCU for RMS Calculation

Hands-on Workshop: Motor Control Part 4 - Brushless DC Motors Made Easy

BLDC Motor Control on Z8FMC16 Series MCUs Using Sensored Sinusoidal PWM Modulation

Generating DTMF Tones Using Z8 Encore! MCU

Sensorless PMSM Control on MKV46F256 Using Kinetis SDK

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

User Guide IRMCS3041 System Overview/Guide. Aengus Murray. Table of Contents. Introduction

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers

AN Sensorless single-shunt FOC on LPC2900. Document information. LPC2900, FOC, SVPWM, SMC, current observer, PMSM, single shunt DC-link

Designing with STM32F3x

ST7MC family dedicated to brushless motor control

32-bit Microcontroller for Home

TUTORIAL Simulation and Code Generation of TI InstaSPIN Using DRV8312 EVM

Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs

National Infotech. Electrical Drive Trainers. Developed By: : Authorized Dealer : Embedded System Solutions

Dual FOC Servo Motor Control on i.mx RT

APPLICATION NOTE. MCRP03: Brushless DC Motor Control Reference Platform using Hall sensors

Developer Day. XMC technical presentation & Introduction to DAVE. Cristian Zaharia Field Application Engineering Industrial MCU June, 2014

Zilog Motor Control Technologies

Low Voltage Solutions for DC & BLDC Motors in Industrial Applications

ZKit-51-RD2, 8051 Development Kit

A Practical Primer On Motor Drives (Part 13): Motor Drive Control Architectures And Algorithms

Vector Control of a 3-Phase PMSM Using the ZNEO Z16FMC MCU

Infineon XMC1000 The M0 that punches well above its weight. Thursday 19 th September 2013 Dave Greenhill Rob McLoughlin

Firmware plugin for STSW-ESC001V1 board with ST Motor Control FOC SDK

EE152 Final Project Report

GC221-SO16IP. 8-bit Turbo Microcontroller

Using the HCS08 TPM Module In Motor Control Applications

Three-Phase BLDC Sensorless Motor Control Using the MKV4x In Quadcopter Application

Speed Control of Brushless DC Motors-Block Commutation With Hall Sensors. User s Guide

DRM100 Designer Reference Manual. Devices Supported: 56F801X

User Guide Introduction. IRMCS3043 System Overview/Guide. International Rectifier s imotion Team. Table of Contents

HPVFP High Performance Full Function Vector Frequency Inverter

XC4e PWM Digital Drive

Motor Control Development Kit

APPLICATION NOTE. 1. RL78/G1F and RL78/G14 Functional Comparison Modification Steps... 3

Motor Control Design Solutions

TUTORIAL Simulation and Code Generation with TI InstaSPIN Block

Low Cost PMSM Sensorless Field-Oriented Control Based on KE02

EITF40 Digital and Analogue Projects - GNSS Tracker 2.4

imotion Solution Platform Dedicated to Motor Control

VORAGO Timer (TIM) subsystem application note

TMC603EVAL MANUAL Evaluation board for the TMC603 three phase motor driver with BLDC back EMF commutation hallfx

Application - Power Factor Correction (PFC) with XMC TM. XMC microcontrollers July 2016

XC4e PWM Digital Drive

Course Introduction. Purpose: Objectives: Content: 24 pages 3 questions. Learning Time: 35 minutes

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

Implementation of Brushless DC motor speed control on STM32F407 Cortex M4

EIE/ENE 334 Microprocessors

Peak Current. Continuous Current. See Part Numbering Information on last page of datasheet for additional ordering options.

Prototyping Unit for Modelbased Applications

STM32 for Motor Control. Applications. Features and benefits. MCU Division. Applications

Simplify Motor Control Development with S12 MagniV

Microprocessor & Interfacing Lecture Programmable Interval Timer

UM0486 User manual. STM3210B-MCKIT motor control starter kit. Introduction. In this manual, you will find information on:

Single Phase Two-Channel Interleaved PFC Operating in CrM Using the MC56F82xxx Family of Digital Signal Controllers

ELCT 912: Advanced Embedded Systems

Data Logger Subsystems Mark Buccini February 2012

Overview of the STM32F103xx ACIM and PMSM motor control software libraries release 2.0

XC4 PWM Digital Drive

Using the Z8 Encore! XP Timer

THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS

Sistemi per il controllo motori

Activity 4: Due before the lab during the week of Feb

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM

AP08022 C504 / C508. Generating sinusoidal 3-Phase- Currents for Induction Maschines with a time-optimezed algorithm for the Capture Compare Unit

TMS320F241 DSP Boards for Power-electronics Applications

MB9BF568R Series FM4 PMSM Servo Motor Speed Control User Manual

Project Final Report: Directional Remote Control

MTY (81)

Integrated S12 MCU-Based Relay Driver with Diagnostic Bus

Programming and Interfacing

LM4: The timer unit of the MC9S12DP256B/C

ADVANCED EMBEDDED MONITORING SYSTEM FOR ELECTROMAGNETIC RADIATION

A COMPARISON STUDY OF THE COMMUTATION METHODS FOR THE THREE-PHASE PERMANENT MAGNET BRUSHLESS DC MOTOR

Introduction to BLDC Motor Control Using Freescale MCU. Tom Wang Segment Biz. Dev. Manager Avnet Electronics Marketing Asia

Roland Kammerer. 13. October 2010

Design of Joint Controller Circuit for PA10 Robot Arm

Application Note, V1.0, Oct 2006 AP08019 XC866. Sensorless Brushless DC Motor Control Using Infineon 8-bit XC866 Microcontroller.

SPEED CONTROL OF INDUCTION MOTOR WITHOUT SPEED SENSOR AT LOW SPEED OPERATIONS

2014 Texas Instruments Motor Control Training Series. -V th. Dave Wilson

ME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair. Overview

Transcription:

RL78 Motor Control YRMCKITRL78G14 Starter Kit Renesas Electronics Europe David Parsons Application Engineering Industrial Business Group July 2012

Renesas MCU for 3-phase Motor Control Control Method Brushless AC Vector Control 180 Sensorless 1 or 3 shunts Sensored Hall, encoder Brushless DC 120 Trapezoidal Control Sensorless Back EMF Sensored Hall, encoder U V W STEP1 STEP2 STEP3 STEP4 STEP5 STEP6 STEP1 STEP2 STEP3 Induction AC Vector Control V/f Control 180 Sensorless 1 or 3 shunts Sensored Hall, encoder 180 Sensored Tacho, Hall, encoder Renesas MCU portfolio covers all 3-phase MC requirements 2

RL78/G14: 16-bit MCU for Motor Control On Chip Features 1% Internal Clock (64MHz) Memory Program Flash up to 64KB SRAM up to 5.5KB Data Flash up to 4KB System DTC Interrupt Controller 4 Levels, 20 pins POR, LVD MUL/DIV/MAC Debug Single-Wire Power Management HALT RTC, DMA Enabled SNOOZE Serial, ADC Enabled STOP SRAM On Clock system External Clock 20MHz External Clock 32.768KHz Internal OCO up to 64MHz Internal LOCO 15KHz Clock Monitoring Safety RAM Parity Check/protection ADC Self-diagnostic SFR protection Memory CRC Timers 2 x Timer Array 16-bit, 4ch Interval Timer 12-bit, 1ch Window WDT 17-bit, 1ch RTC Calendar Motor Control 3ph MC Timer RD 16-bit with dead time Encoder Timer RG 16-bit, 1ch Analog ADC 10-bit, 12ch Internal Vref. Temp. Sensor Communications 2 x I 2 C Master / Slave 1 x I 2 C Multi-Master 2 x CSI/SPI 7-, 8-bit 3 x UART 7-, 8-, 9-bit 1 x LIN 1ch 32MHz CPU Including MUL/DIV/MAC instructions Barrel Shifter Motor Control 16bit Motor Control Timer 64MHz Motor Control 3-Phase timer (RD) Timer for H/W encoder (RJ) ADC trigger H/W support Event Link Controller (ELC) Data Transfer Controller (DTC) 10-bit A/D Analogue comparator (Larger Devices) Internal temperature sensor Internal Voltage reference H/W safety and self test: Flash ECC, RAM Parity, HW CRC, Clock Monitor Windowed WDT, A/D self test, RAM/SFR write protect, Window Watchdog with separate clock Hardware Shutdown (INTP)) Timer RJ 16-bit, 1ch ELC Used in the motor control kit 3

RL78/G14: Typical Applications Typical application fields include: Small Appliances Fans and Blowers Pumps Power Tools Typical application Block Diagram 4

5

RL78 F.O.C Sensorless Algorithm Reference Current (Id) Current Control Loop 0 [Id ref ] Id PI + - Vd Vq Inverse Park Transform (d, q) (, ) V V Inverse Clark Transform (, ) (u, v, w) HV DC Bus PWM Modulation 3 Phase inverter Motor ref + - Speed PI Iq ref + - Iq PI z -1 z -1 z -1 z -1 Current Reading (z -1 ) Reference Speed z -1 est Speed estimation est Flux Phase estimation i U, i V, i W Speed Control Loop Id mea Iq mea (, ) (d, q) I mea (u, v, w) (, ) Iu mea Iv mea I mea Park Transform Clark Transform Variables are Signed Integer

RL78/G14 F.O.C Software Overview Main Program Data Flash parameters upload A/D channels offset reading Peripheral initialization Variable initialization Interrupt enabling Main loop synchronization cnt_int == 0? YES NO cnt_int = NUM_INT Main loop body Speed ramp management 125uS Control Interrupt Motor Control Processing Communication management General board management Parameters modification management

RL78/G14 F.O.C Software Overview Sensorless FOC algorithm Signed integer 16 and 32bit variables Low level assembler maths functions Shift and Add Multiply and Shift Divide Multiply and Divide

RL78/G14 F.O.C Software Organisation Modules Function Descriptions C Modules hwsetup.c stl_support.c main.c: userif.c par_tab.c globalvar.c The basic hardware initialisation Support routines for the self test functions The main program loop Communication routines (i.e. GUI) The Parameter management routines definitions and tables Global variable definitions Assembler Modules self-test multiply.s87 cstartup.s87 IEC assembler Self test routines (RAM, FLASH, Registers and Clock) Combined assembler maths functions Customised start up file for March C RAM test Library Module MCRP08_RL78_Lib.r87 Motor Control Library Module

RL78/G14 F.O.C Software Organisation-Cont Modules Function Descriptions Header Files customise.h const_def.h mcrplib.h par_tab.h hwsetup.h globalvars.h multiply.h mask.h userif.h Basic parameters, not modifiable through the GUI Definition of the basic numerical constants Motor control library definitions, references and function prototypes Parameter definitions, function prototypes and references Hardware definitions, references and function prototype (low_level_init) Global variable definitions and references Assembler Maths function references General support definitions and references General support definitions, references and function prototypes

RL78/G14 F.O.C - Software/GUI Parameter List Index Parameter Description Unit 1 00 Default Parameter Setting -- 2 01 Minimum Speed RPM 3 02 Maximum Speed RPM 4 03 Acceleration RPM/s 5 04 Deceleration RPM/s 6 05 Polar Couples -- 7 06 Start Up Current Apeak / 10 8 07 Maximum q current Apeak / 10 9 08 Stator Resistance Ohm/10 10 09 Synchronous Inductance Henry/10000 11 10 Start Up Time ms 12 11 Current Loop Kp -- 13 12 Current Loop Ki -- 14 13 Speed Loop Kp -- 15 14 Speed Loop Kp -- 16 15 Free -- 17 16 Free -- 18 17 Pi Tuning Trigger -- 19 18 Free -- 20 19 Free --

Timer RD Interrupt Culling (ELC and Timer RJ) Hardware Shutdown (INTP0 pin and HW control) 12

RL78/G14 Example - Automatic Interrupt Culling Timer RD: complementary PWM TRD1 Underflow Event Link Controller Complementary PWM Timer Event Input Trigger Timer RJ event counter Timer RD is set to operate in Complementary 3-phase mode: PWM can be set up to 24KHz ELC is set to trigger external count in Timer RJ or TAU, when timer RD underflows Interrupt is not generated, so ISR is not accessed Event Counter Timer is set to external event count mode. Timer counts down on each ELC trigger. When the count reaches zero the interrupt is generated. (The event count value is reloaded automatically) This is the Control Loop Interrupt 13

RL78/G14 Example - Automatic Interrupt Culling Timer RD TRD1 Underflow Example Shown Timer RD set to 24KHz PWM frequency Timer RJ/ TAU set to Event counter - 24KHz / 3 = 8KHz ELC set to trigger Timer RJ (event count) every TRD1 underflow Timer RJ/TAU Interrupt i.e. Control Loop Interrupt Timer RJ or TAU (CH0 or CH1) 14

RL78/G14 Hardware Shutdown INTP0 Interrupt: RD Software Shutdown I/O Port Pin P137 INTP0 Complementary PWM External Over Current Interrupt Hardware Output PWM Shutdown 15

16

Self Test / Safety Functions RL78/G14 Run @ Start Up Register Tests (Software) RAM Test (Software) CRC (Hardware) System Clock Test (Software or Hardware) User Protection Options (Optional) Watchdog (Option - clock cannot be stopped Set in Option Byte) Flash and Data Flash ECC Always On RAM Parity (Hardware Parity generator/checker) Illegal Access Protection (Hardware Detection) SFR Protection (SFR write protect) RAM area Protection (RAM area write protect) 17

18

RL78/G14 Motor control Kit Board details PATCH AREA INTERNAL POWER STAGE Motor Connector External Power Connectors STEP-DOWN 12V HALL SENSORS INTERFACE STEP-DOWN 5V EXTERNAL POWER STAGE INTERFACE STEP_UP RL78G14 MICROCONTROLLER 64pin or 100pin G14 78K0/USB Renesas Parts used RL78G14 (R5F104LE or 104PJ) 78K0/USB (upd78f0730) Power MosFets - RJK0654 Analogue Comparator - HAT1631 EEPROM - R1EX240 ENCODER INTERFACE RL78G14 MICROCONTROLLER connections ISOLATION COMMUNICATION

RL78/G14 MC Kit - PC Control GUI Motor Operation graphs - Speeds, Currents and Voltages Function Tabs Motor Control - Start, Stop, Speed and Direction DEMO Mode Property Monitor where motor parameters can be analysed - Speed, Currents, Voltages, Torque - Operation and Parameters can be saved to Excel file Motor Tuning Parameters System Parameters

RL78/G14 Motor control Kit Resources Resource Usage Value Notes Device R5F104LE (64KB (F), 5.5KB (R) 4KB (DF) R5F104PJ (256KB (F), 24KB (R), 8KB (DF) 64pin 100pin Dual footprint supported Flash Memory Source Code 13KB Includes Motor control algorithm GUI serial interface Data Flash interface IEC Self test code Constants 2KB Includes Motor Control Algorithm Reference CRC table Data Flash Library RAM Memory All variables 2KB Includes Motor control algorithm Data Flash Library Self Test variables Timing Control Loop Interrupt 8KHz (125uS) Includes Motor Control Algorithm Data Flash interface GUI interface Control loop execution time 86uS 70% CPU used

Renesas Electronics Europe