User Guide for NXP models including: MCSPTE1AK144, Development Kit, MCSPTE1AK144 Development Kit, Kit

MCSPTE1AK144

DatabladDatablad

MCSPTE1AK144 från Nxp – Se lagersaldo MCSPTE1AK144TillverkareNXP


File Info : application/pdf, 12 Pages, 632.50KB

PDF preview unavailable. Download the PDF instead.

mcspte1ak144developmentkitquickstartguide
Quick Start Guide
MCSPTE1AK144
S32K144 Development Kit for 3-Phase PMSM and BLDC Motor Control
AUTOMOTIVE MOTOR CONTROL DEVELOPMENT SOLUTIONS
Downloaded from Arrow.com.

Quick Start Guide
S32K144 DEVELOPMENT KIT FOR 3-PHASE PMSM AND BLDC MOTOR CONTROL

40 W PM Motor Part Number: 45ZWN24-40

DEVKIT-MOTORGD Board Part Number: DEVKIT-MOTORGD

S32K144 Evaluation Board Part Number: S32K144EVB-Q100
Figure 1: S32K144 development kit for 3-phase PMSM and BLDC motor control 2
Downloaded from Arrow.com.

GET TO KNOW THE S32K144EVB
CAN/LIN Bus
External Power Supply (8-18 V) System Basis Chip (SBC) J3
J4 S32K144 MCU
J5

www.nxp.com
OpenSDA USB Reset Button OpenSDA MCU OpenSDA JTAG J2
SWD Connector J1
J6

Touch Electrodes

RGB LED

Potentiometer

User Buttons

Figure 2: S32K144 evaluation board 3
Downloaded from Arrow.com.

Quick Start Guide
GET TO KNOW DEVKIT-MOTORGD
External Power Supply (10-18 V)
Motor Phase Terminals
J3 Shunt Resistor for DC Bus
Current Sensing
J4 Jumpers J9/J10/J11 Set Either for PMSM or BLDC Motor Control Application
Voltage Regulator for Encoder Interface
J5 Hall / Encoder Interface

Terminals for Breaking Resistors
3 x Dual FETs
J2 3 x Shunt Resistors for 3-Phase Currents Sensing
J1 2 x Dual Amplifiers for Bidirectional DC and 3-ph. Stator Current Sensing
J8 Voltage Selector for Encoder Interface 5 V/3.3 V GD3000 ­ FET Pre-Driver J6

4
Downloaded from Arrow.com.

Figure 3: DEVKIT-MOTORGD board

www.nxp.com
HEADER/PINOUT FOR PMSM MOTOR CONTROL
S32K144EVB controls DEVKIT-MOTORGD through inner pins of the I/O headers. Inner pins of the I/O headers are Arduino compatible. Pins in red are configurable, this is the pin configuration for PMSM motor control (see jumper options on page 11).

DKT-MOTORGD VDC (10-18 V) MCU_VCC (5 V) NC NC NC GND GND VDC (10-18 V)

S32K144EVB
VIN (5-12 V) IOREF (5 V) RESET 3V3 5 V GND GND VIN (10-18 V)

DCBI DCBV PHA_I PHB_I PHC_I NC NC NC

ADC1_SE6 ADC1_SE7 ADC0_SE4 ADC1_SE15 ADC0_SE2 PTC0 PTE2 PTE6

ENC_A ENC_B INDEX NC NC NC NC NC NC NC

FTM2_QD_PHA FTM2_QD_PHB PTA1 PTA0 PTA7 PTB13 PTC1 PTC2 NC NC

PIN J3-01 J3-03 J3-05 J3-07 J3-09 J3-11 J3-13 J3-15
J4-01 J4-03 J4-05 J4-07 J4-09 J4-11 J4-13 J4-15
J5-01 J5-03 J5-05 J5-07 J5-09 J5-11 J5-13 J5-15 J5-17 J5-19

PIN J2-19 J2-17 J2-15 J2-13 J2-11 J2-09 J2-07 J2-05 J2-03 J2-01
J1-15 J1-13 J1-11 J1-09 J1-07 J1-05 J1-03 J1-01
J6-19 J6-17 J6-15 J6-13 J6-11 J6-09 J6-07 J6-05 J6-03 J6-01

S32K144EVB PTE10 PTE11 AREF GND LPSPI0_SCK LPSPI0_SIN LPSPI0_SOUT PTB5 PTD14 PTD13
FTM3_CH5 FTM3_CH4 FTM3_CH3 FTM3_CH2 FTM3_CH1 FTM3_CH0 PTA3 PTA2
PTD0 PTD2 PTD9 PTD8 PTC8 PTC9 PTD17 PTE12 PTA8 PTA9

DKT-MOTORGD GD_INT OC_OUT NC GND SPI_SCLK SPI_MISO SPI_MOSI SPI_CS_B BRAKE_PWM NC
PWMC_LS PWMC_HS PWMB_LS PWMB_HS PWMA_LS PWMA_HS GD_RST GD_EN
NC NC NC NC NC NC NC NC NC NC

Figure 4: S32K144EVB + DEVKIT-MOTORGD pin assignment 5
Downloaded from Arrow.com.

Quick Start Guide
HEADER/PINOUT FOR BLDC MOTOR CONTROL
S32K144EVB controls DEVKIT-MOTORGD through inner pins of the I/O headers. Inner pins of the I/O headers are Arduino compatible. Pins in red are configurable, this is the pin configuration for BLDC motor control (see jumper options on page 11).

DKT-MOTORGD VDC (10-18 V) MCU_VCC (5 V) NC NC NC GND GND VDC (10-18 V)

S32K144EVB
VIN (5-12 V) IOREF (5 V) RESET 3V3 5 V GND GND VIN (10-18 V)

DCBI DCBV BEMF_A BEMF_B BEMF_C NC NC NC

ADC1_SE6 ADC1_SE7 ADC0_SE4 ADC0_SE5 ADC0_SE2 PTC0 PTE2 PTE6

HALL_A HALL_B HALL_C NC NC NC NC NC NC NC

FTM2_CH1 FTM2_CH0 FTM1_CH1 PTA0 PTA7 PTB13 PTC1 PTC2 NC NC

PIN J3-01 J3-03 J3-05 J3-07 J3-09 J3-11 J3-13 J3-15
J4-01 J4-03 J4-05 J4-07 J4-09 J4-11 J4-13 J4-15
J5-01 J5-03 J5-05 J5-07 J5-09 J5-11 J5-13 J5-15 J5-17 J5-19

PIN J2-19 J2-17 J2-15 J2-13 J2-11 J2-09 J2-07 J2-05 J2-03 J2-01
J1-15 J1-13 J1-11 J1-09 J1-07 J1-05 J1-03 J1-01
J6-19 J6-17 J6-15 J6-13 J6-11 J6-09 J6-07 J6-05 J6-03 J6-01

S32K144EVB PTE10 PTE11 AREF GND LPSPI0_SCK LPSPI0_SIN LPSPI0_SOUT PTB5 PTD14 PTD13
FTM3_CH5 FTM3_CH4 FTM3_CH3 FTM3_CH2 FTM3_CH1 FTM3_CH0 PTA3 PTA2
PTD0 PTD2 PTD9 PTD8 PTC8 PTC9 PTD17 PTE12 PTA8 PTA9

DKT-MOTORGD GD_INT OC_OUT NC GND SPI_SCLK SPI_MISO SPI_MOSI SPI_CS_B BRAKE_PWM NC
PWMC_LS PWMC_HS PWMB_LS PWMB_HS PWMA_LS PWMA_HS GD_RST GD_EN
NC NC NC NC NC NC NC NC NC NC

Figure 5: S32K144EVB + DEVKIT-MOTORGD pin assignment 6
Downloaded from Arrow.com.

www.nxp.com

MCSPTE1AK144 FEATURES
Hardware
· S32K144EVB--S32K144 evaluation board with LIN and CAN connectivity support, OpenSDA programming/ debugging
· DEVKIT-MOTORGD--up to 12 V/5 A 3-phase power stage board based on SMARTMOS GD3000 pre-driver with condition monitoring and fault detection
· Low-Cost PM Motor--3-phase PM motor equipped with HALL sensor, 24 VDC, 4000 RPM, 40 W, 45ZWN24-40
· USB cable
· 12 VDC power supply
Software
· Automotive Motor Control Algorithms
-- Field-oriented control (FOC) with field weakening for sinusoidal motor type (PMSM)

-- Six-step commutation control for trapezoidal motor type (BLDC)
· Evaluation version of the Automotive Math and Motor Control Library Set
--Control algorithm built on blocks of precompiled software library
· FreeMASTER and MCAT
--Application tuning and variables tracking at different levels of the control structure
· Design Studio and SDK
--Example software created in the S32 Design Studio for Arm® built on S32 SDK software
· SDK - Processor Expert®
--MCU peripherals initialization generated by Processor Expert (PEx)

7
Downloaded from Arrow.com.

Quick Start Guide

STEP-BY-STEP INSTALLATION INSTRUCTIONS

1 Download Software
Download installation software and documentation at nxp.com/AutoMCDevKits.
2 Install S32 Design Studio IDE for Arm®
Download and install S32 Design Studio IDE for Arm available at nxp.com/S32DS-Arm.
3 Install FreeMASTER
Download and install FreeMASTER run-time debugging tool available at nxp.com/FreeMASTER.
4 Configure S32K144EVB and DEVKIT-MOTORGD boards
Ensure default S32K144EVB and DEVKITMOTORGD jumper options (page 11).

Place DEVKIT-MOTORGD jumpers J9, J10, J11 to position 1-2 for PMSM application or 2-3 for BLDC application (page 11).
Ensure that motor phase wires are in order: white, blue, green from phase A to phase C.
5 Connect the Power Supply
Connect the 12 V power supply to the power supply terminals on DEVKITMOTORGD board.
Keep the DC supply voltage within the range of 8 to 18 V. The DC power supply voltage affects the maximum motor speed.
6 Connect the USB Cable
Connect S32K144EVB to the PC using the USB cable. Allow the PC to automatically configure the USB drivers if needed.

8
Downloaded from Arrow.com.

www.nxp.com

STEP-BY-STEP INSTALLATION INSTRUCTIONS CONTINUED

7 Select Application and MCU Programing
Select appropriate PMSM or BLDC motor control application from the installed directory NXP\MCSPTE1AK144\sw.
Select one of the next two steps (8 or 9) for MCU programming.
8 Re-program the MCU using MSD Flash Programmer
Copy and paste or drag and drop the Motorola S-record *.srec file from the project folder to the S32K144EVB disk drive.The software is directly programmed into the flash memory of the S32K144 MCU and executed automatically.
9 Reprogram the MCU using S32 Design Studio
Import the installed application software project in the S32 Design Studio for Arm®:
· Start S32 DS for Arm application.
· Click File­Import.
Downloaded from Arrow.com.

· Select General­Existing Projects into Workspace.
· Navigate to the installed application directory: NXP\MC_DevKits\MCSPTE1AK144\sw, choose appropriate project and click OK.
· Click Finish.
· Click Run ­ Debug.
10 FreeMASTER Setup
· Start the FreeMASTER application
· Open *.pmp FreeMASTER project from the project folder <selected project> FreeMASTER_control by clicking File ­ Open Project.
· Click the green GO! button in the FreeMASTER toolbar or press CTRL+G to enable the communication.
· Successful communication is signalized in the status bar at very bottom as "RS232 UART Communication;COMn; speed = 115200".
9

Quick Start Guide

APPLICATION CONTROL

1 Click App Control tab in the MCAT tool menu to display the application control page. When the power supply is connected to the DEVKIT-MOTOGD board, the application is in a READY state indicated by the green LED on S32K144EVB board. RGB LED also indicates:
· READY, INIT states lighting green LED
· CALIB, ALIGN states flashing green LED
· RUN state lighting blue LED
· FAULT state lighting red LED
2 In case of pending faults, click the fault button Clear FAULT on the FreeMASTER MCAT Control Page, or alternatively press and hold SW2 and SW3 buttons on S32K144EVB board simultaneously.

3 Start the application by pressing the ON/OFF button on the FreeMASTER MCAT control page or by pressing switch SW2/SW3 on S32K144EVB to initiate clockwise/ counter clockwise rotor spinning direction.
4 Set required speed by changing the Speed Required variable value manually in the variable watch window, by clicking speed gauge, or by pressing the switch SW2/SW3.
5 To stop the application, click the ON/OFF button on the FreeMASTER MCAT control page or press and hold SW2 and SW3 buttons on S32K144EVB board simultaneously.

10
Downloaded from Arrow.com.

www.nxp.com

S32K144EVB JUMPER OPTIONS

JUMPER J104
J107 J109/J108

OPTION
Reset signal
Board powering
CAN

SETTING 1-2
2-3
1-2 2-3 OPEN SHORT

DESCRIPTION
Reset signal to OpenSDA, use to enter into Open SDA Bootloader mode Reset signal direct to the MCU, use to reset S32K144 (default) S32K144 powered by 12 V power source (default) S32K144 powered by USB micro connector CAN termination resistor is disconnected CAN terminator resistor is connected (default)

DEVKIT-MOTORGD JUMPER OPTIONS

JUMPER J8

OPTION
HALL/ Encoder interface

J9/J10/J11 Motor type

SETTING Short Open 1-2 2-3

DESCRIPTION
Voltage level for HALL/Encoder interface is 3.3 V
Voltage level for HALL/Encoder interface is 5.0 V (default)
Bidirectional 3-phase current sensing for PMSM FOC (sinusoidal) motor control
3-phase back-EMF voltage sensing for BLDC six-step (trapezoidal) sensorless motor control

11
Downloaded from Arrow.com.

SUPPORT
Visit www.nxp.com/support for a list of phone numbers within your region.
WARRANTY
Visit www.nxp.com/warranty for complete warranty information.

Get Started
Download installation software and documentation at nxp.com/AutoMCDevKits.

www.nxp.com
NXP, the NXP logo and Processor Expert are trademarks of NXP B.V. Arm is a trademark or registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere. The related technology may be protected by any or all of patents, copyrights, designs and trade secrets. All rights reserved. All other product or service names are the property of their respective owners. © 2020 NXP B.V.
Document Number: MCSPTE1AK144QSG REV0
Downloaded from Arrow.com.



References

iText 5.5.6 ©2000-2015 iText Group NV (AGPL-version)