NXP Semiconductors freescale TWR-S08PT60 Manual Download Page 10

 

TWRS08PT60LAB

 

TWR

S08PT60

 

Lab

 

Guide

 

Page

 

10

 

of

 

11

 

 

11

 

Lab

 

8—BLDC

 

demo

 

This lab will demonstrate how to implement a simple BLDC motor control with the FlexTimer module FTM2 
which is designed to support motor control, digital power conversion and other applications that require 
PWM signals. It will use touch pad 0 and touch pad 1 to control the motor speed and the rotation direction. 
The start and stop of the motor’s spin are controlled via the keyboard interface SW2. This lab requires a 
special connection from the general purpose TWRPI connectors on the board to the 40-pin daughter card 
connector P1 on APMOTOR56F800E which can be ordered from the Freescale website: 
www.freescale.com/tower 
 
The following steps show how to work with this demo: 
 

1.

 

Download S08PT60_BLDC_demo code to the board via OSBDM. 

2.

 

Disconnect the USB cable from PC to turn off power to the board. 

3.

 

Connect general purpose TWRPI connector of the board to P1 of APMOTOR56F800E as below: 

General

 

Purpose

 

TWRPI

 

pin

  

Motor

 

connector

 

pin

 

left

 

side

 

connector(J10)

 

right

 

side

 

connector

 

(J11)

 

(P1)

 

  

2

 

1

 

  

3

 

3

 

  

14

 

9

 

  

15

 

11

 

  

16

 

30

 

  

18

 

32

 

  

19

 

34

 

  

20

 

36

 

8

 

13

  

13

 

11

 

  

15

 

12

 

  

19

 

7

 

  

10

 

15

 

  

12

 

16

 

  

18

 

  

  

20

 

  

  

22

 

On JG1 of APMOTOR56F800E, short Pin 2&3, 5&6,8&9. 
 

4.

 

Apply 9V DC power supply to P2 of APMOTOR56F800E. Check D5, D7 to D10. They are lit. 

5.

 

Press and release SW2 which sets motor to be ready state.  

6.

 

Touch pad 0, the motor starts to run in clockwise direction. Repeat touching pad 0, the motor speed 

will be increased up to the maximum. Both D7 and D8 flash to reflect the signals from the hall 
sensor. 

Summary of Contents for freescale TWR-S08PT60

Page 1: ...Freescale Semiconductor Inc TWRS08PT60LAB TWR S08PT60 Lab Guide Rev 1 0...

Page 2: ...re Requirements 3 3 Default Jumper Settings 3 4 Lab 1 Touch Sensing Interface TSI with low power demo 5 5 Lab 2 Potentiometer demo 5 6 Lab 3 Accelerometer demo 6 7 Lab 4 UART loop demo 6 8 Lab 5 IR de...

Page 3: ...h the standalone Flash EEPROM lab TWR S08PT60_flash_lab as well as the BLDC demo TWR S08PT60_bldc_demo 2 Software Requirements Compiler linker and debugger CodeWarrior 10 1 or newer with S08PT60 servi...

Page 4: ...3 Accelerometer default address J12 open Accelerometer INT1 J15 open Accelerometer INT2 J16 1 2 OSBDM to onboard PT60 BKGD J17 2 3 External clock EXTAL J18 2 3 External clock XTAL J20 2 3 TWRPI to PT...

Page 5: ...wake up MCU and restore normal running Press and release SW2 to enter potentiometer demo 5 If any touch pad is touched the corresponding LED will be toggled and if no touch for 5 seconds the microcont...

Page 6: ...W3 The following messages will be shown on the terminal Test UART if LED flashes it indicates error Press and release SW3 to enter IR demo Wait for a few seconds it will print UART test result UART co...

Page 7: ...r to the board 4 Switch the demo mode from Lab 1 to Lab 5 by following the SW2 and SW3 steps in previous labs 5 Press and release the button labelled SW3 the following messages will be shown on the te...

Page 8: ...h block contains code that is running 7 Enter the command ev_eep 3100 to erase verify blank check the whole EEPROM block containing address 0x3100 The following message will be shown as a result of th...

Page 9: ...lash section is not blank This is correct because this flash section has been programmed in Step 13 16 Enter the command ers_eeps 3100 to erase the EEPROM sector at address 0x3100 The following messag...

Page 10: ...ite www freescale com tower The following steps show how to work with this demo 1 Download S08PT60_BLDC_demo code to the board via OSBDM 2 Disconnect the USB cable from PC to turn off power to the boa...

Page 11: ...sensor 8 Press and release SW2 to stop motor spinning 9 Disconnect the power supply from P2 of APMOTOR56F800E Learn More For more information about Freescale products please visit www freescale com 8b...

Reviews: