background image

NXP Semiconductors

KTFRDM34933EVBUG

FRDM-34933EVB evaluation board

KTFRDM34933EVBUG

All information provided in this document is subject to legal disclaimers.

© NXP B.V. 2017. All rights reserved.

User guide

Rev. 1.0 — 15 March 2017

11 / 39

In order to perform the demonstration example, first set up the evaluation board

hardware and software as follows:
1. Setup the FRDM-KL25Z to accept code from the mbed online compiler. mbed is a

developer site for ARM based microcontrollers. The instructions are at mbed.org

(

https://mbed.org/handbook/mbed-FRDM-KL25Z-Upgrade

). Switch to the other USB

port (programming port) on the FRDM-KL25Z, and back after you load the project.

2. Go to the NXP page on mbed.org and look for the repository named "

LVHB Stepper

Motor Drive

" (

https://developer.mbed.org/teams/NXP/code/LVHB-Stepper-Motor-

Drive-v2

).

3. Import main.cpp source code into compiler.
4. Save the compiled code on your local drive, and then drag and drop it onto the mbed

drive (which is the FRDM-KL25Z) while connected to the programming OpenSDA

port. Move the USB connector back to the other USB port on the FRDM-KL25Z.

Note: Create a user before you can download the code. Connect the board to the

FRDM-KL25Z. This is best accomplished by soldering the female connectors to the

FRDM-KL25Z, and then connecting to the male pins provided on the board.

5. Ready the computer and install the Stepper Motor Driver GUI software.
6. Attach DC power supply (without turning on the power) to the VM and GND terminals.
7. Attach one set of coils of the stepper motor to the OUT1A and OUT1B output

terminals. Attach the other phase coil of the stepper motor to terminals OUT2A and

OUT2B. Launch the Stepper Motor Driver GUI software.

8. Make sure the GUI recognizes the FRDM-KL25Z. This is determined by seeing the

hex Vendor ID (0x15A2), and Part ID (0x138) under USB connection in the upper left-

hand corner of the GUI. If the GUI does not recognize the FRDM-KL25Z, you need to

disconnect and reconnect the USB cable to the FRDM-KL25Z.

9. Turn on the DC power supply.
10.Select 

Enable Target

 on the GUI. The demo is now ready to run.

11.Select Direction, Step Mode, and Acceleration Enabled.

Acceleration enabled controls motor speed slowly increasing from stop to maximum

number of steps selected by Step Time slider control.

12.Click 

Run

 to run the motor. Notice that some options of the GUI are disabled while

the motor is running. To make changes, click 

Stop

 on the GUI, make the desired

changes, and then click 

Run

 on the GUI to continue.

13.When finished, click 

Enable Target 

 on the GUI, and then 

Quit

. Turn off DC power

supply. Remove USB cable.

6.3 Installing CodeWarrior

This procedure explains how to obtain and install the latest version of CodeWarrior

(version 10.6 in this guide).

Note: 

The sample software in this kit requires CodeWarrior 10.6 or newer. The

component and some examples in the component package are intended for Kinetis

Design Studio 3.0.0. If you have CodeWarrior 10.6 and Kinetis Design Studio 3.0.0

already installed on your system, skip this section.

1. Obtain the latest CodeWarrior installer file from the NXP CodeWarrior website: 

http://

www.nxp.com/CODEWARRIOR

.

2. Run the executable file and follow the instructions.
3. In the Choose Components window, select the Kinetis component, and then click

Next

 to complete the installation.

Summary of Contents for KTFRDM34933EVBUG

Page 1: ...KTFRDM34933EVBUG FRDM 34933EVB evaluation board Rev 1 0 15 March 2017 User guide 1 FRDM 34933EVB Figure 1 FRDM 34933EVB with FRDM KL25Z Freedom Development Platform...

Page 2: ...hnical support services Should this evaluation kit not meet the specifications indicated in the kit it may be returned within 30 days from the date of delivery and will be replaced by a new kit NXP re...

Page 3: ...roved performance in powering state of the art systems 1 Go to the tool summary page http www nxp com FRDM 34933EVB 2 Locate and click 3 Download the documents software and other information Once the...

Page 4: ...protection Screw terminals to provide easy connection of power and loads Test points to allow probing of signals Built in voltage regulator to supply logic level circuitry LED to indicate status of l...

Page 5: ...oard description Name Description U5 16 pin QFN H bridge motor drive IC MC34933 F1 Overcurrent fuse D5 LED output OUT1A Connect motor phase 1A to this terminal OUT1B Connect motor phase 1B to this ter...

Page 6: ...bridge Input signal for OUT1B TP7 IN2A H bridge Input signal for OUT2A TP8 IN2B H bridge Input signal for OUT2B 4 4 3 Input signal definitions The motor drive IC has as many as five input signals tha...

Page 7: ...2 AN1 Auxiliary MCU signal analog Not populated 4 4 6 Jumpers The board features jumper connections as shown in Table 8 Table 8 Jumpers Name Description JP1 Fuse bypass not populated JP2 VPWR to VIN...

Page 8: ...the motor The board is connected to the FRDM KL25Z using four dual row headers The connections are shown in Table 9 Table 9 Header connections FRDM LV stepper motor FRDM KL25Z Header Pin Name Header P...

Page 9: ...n that link to open the corresponding tool summary page Look for Jump Start Your Design Download the Motor Control GUI software to your computer desktop LVMC Steppermotor setup exe Run the installed p...

Page 10: ...17 10 39 Figure 4 Setup for Stepper motor Figure 5 Setup for DC motors 6 2 Step by step instructions for setting up the hardware using Motor Control GUI When using the board make sure that the followi...

Page 11: ...output terminals Attach the other phase coil of the stepper motor to terminals OUT2A and OUT2B Launch the Stepper Motor Driver GUI software 8 Make sure the GUI recognizes the FRDM KL25Z This is deter...

Page 12: ...les Example project folder for CodeWarrior LVH_KL25Z_brush_MC34933 Example project for DC brush motor control using FRDM 34933EVB H bridge board and FRDM KL25Z MCU board LVH_KL25Z_brush_MPC17510 Examp...

Page 13: ...er LVH_KL25Z_step_FreeMASTER Example project intended to control stepper motor using FreeMASTER tool LVH_KL25Z_stepper Example project intended to control stepper motor using FRDM 34933EVB H bridge bo...

Page 14: ...to legal disclaimers NXP B V 2017 All rights reserved User guide Rev 1 0 15 March 2017 14 39 5 If the import is successful the LVHBridge component appears in Components Library SW User Component Note...

Page 15: ...Workspace and then click Next 3 Locate the example in folder LVHBridge_PEx_SW CodeWarrior_Examples LVH_KL25Z_brush_MC34933 Then click Finish The project is now in the CodeWarrior workspace where you...

Page 16: ...ed in this document is subject to legal disclaimers NXP B V 2017 All rights reserved User guide Rev 1 0 15 March 2017 16 39 2 Choose the MCU class to be used in the freedom MCU board MKL25Z128 in this...

Page 17: ...DM34933EVBUG All information provided in this document is subject to legal disclaimers NXP B V 2017 All rights reserved User guide Rev 1 0 15 March 2017 17 39 6 5 1 Add LVHBridge component to the proj...

Page 18: ...4933EVBUG All information provided in this document is subject to legal disclaimers NXP B V 2017 All rights reserved User guide Rev 1 0 15 March 2017 18 39 2 Double click LVHBridge component in the Co...

Page 19: ...me of a linked TimerUnit_LDD component and the name of the hardware timer being used defined in the Primary Timer Device property Secondary Timer encompasses the properties of an additional timer Note...

Page 20: ...ace allow you to set H bridge control function The H bridge 2 MCU Interface is shown only for dual H bridge models for example MC34933 The DC Brush group is described in Section 6 5 3 Setting up a pro...

Page 21: ...s means you can switch the motor on or off without speed adjustments The advantage of this mode is that you do not need timer channels If you set State Control on both interfaces or you have only a si...

Page 22: ...epper motor has four inputs Figure 10 Component settings to control a stepper motor In the Stepper Motor group set the properties that apply to your environment The Output Control property defines the...

Page 23: ...n Figure 10 Desired motor speed is set to 100 full steps per second This value is defined by the speed property in Processor Expert GUI and can be changed in C code Acceleration and deceleration is se...

Page 24: ...cy per stepper control mode LVHBridge component properties Primary timer input frequency Mode description Timer device Secondary timer Output control Motor control mode Values Min Max Secondary timer...

Page 25: ...values as for primary timer 6 5 5 1 Computation of minimum full stepping speed The minimum full stepping speed depends on the timer input frequency only when the Primary Timer Device is set to FTM FT...

Page 26: ...This section describes how to change the input frequency of the TimerUnit_LDD component 1 Launch Processor Expert and select the LVHBridge component 2 In the Processor Expert menu bar set component vi...

Page 27: ...ard KTFRDM34933EVBUG All information provided in this document is subject to legal disclaimers NXP B V 2017 All rights reserved User guide Rev 1 0 15 March 2017 27 39 Figure 13 Enabling the manual fre...

Page 28: ...omponent TimerUnit_LDD timing dialog select input frequency 6 5 6 Generating application code After configuration generate the source code by clicking the icon in the upper right corner of the Compone...

Page 29: ...s NXP B V 2017 All rights reserved User guide Rev 1 0 15 March 2017 29 39 Figure 17 Generated files 6 5 7 Using the interface Application code can be written and tested in the project For example you...

Page 30: ...guide Rev 1 0 15 March 2017 30 39 Figure 18 Using the interface To compile download and debug on board click compile and then click the debug icon in the toolbar CodeWarrior downloads and launches th...

Page 31: ...ted in real time using integer arithmetic This solution is based on the article Generate stepper motor speed profiles in real time Austin David 2005 The stepper motor holds its position coils are powe...

Page 32: ...input pins generated by the MCU in full step mode Figure 22 Output of the H bridge device in full step mode 6 6 2 Micro step control mode Micro stepping allows for smoother motor movement and increas...

Page 33: ...1 I of IMAX Micro step size I of IMAX 1 2 1 4 1 8 1 16 1 32 Angle A B 1 2 1 4 1 8 1 16 1 32 Angle A B 0 0 0 0 0 0 0 0 100 4 8 16 32 64 180 0 100 1 2 8 4 91 99 88 65 182 8 4 91 99 88 1 2 5 6 9 8 99 52...

Page 34: ...9 95 69 29 03 39 109 7 94 15 33 69 103 289 7 94 15 33 69 5 10 20 40 112 5 92 39 38 27 13 26 52 104 292 5 92 39 38 27 41 115 3 90 4 42 76 105 295 3 90 4 42 76 21 42 118 1 88 19 47 14 53 106 298 1 88 1...

Page 35: ...gal disclaimers NXP B V 2017 All rights reserved User guide Rev 1 0 15 March 2017 35 39 micro step position Current values applied to the stepper motor coils are depicted in Figure 26 Figure 24 Logic...

Page 36: ...force allocation of the channels If you are configuring a stepper motor Motor Control property set to Stepper try changing the Output Control property to GPIO and then back to PWM If you are configuri...

Page 37: ...ort pages Description URL FRDM 34933EVB Tool summary page www nxp com FRDM 34933EVB FRDM KL25Z Tool summary page http www nxp com FRDM KL25Z LVHBRIDGE PEXPERT Software http www nxp com LVHBRIDGE PEXPE...

Page 38: ...e to any products herein NXP makes no warranty representation or guarantee regarding the suitability of its products for any particular purpose nor does NXP assume any liability arising out of the app...

Page 39: ...d 7 6 Installing the software and setting up the hardware 9 6 1 Configuring the hardware 9 6 2 Step by step instructions for setting up the hardware using Motor Control GUI 10 6 3 Installing CodeWarri...

Reviews: