1 Purpose These labs will show the various MC9S08PT60 demo examples on the Tower System module. LAB1 to LAB6 are integrated in a single project TWR-S08PT60_lab, while others are independent. You can switch from LAB1 to LAB6 via the keyboard interface SW2 and/or SW3. The demo examples include TSI with low power, potentiometer, accelerometer, IR, UART loop demo, and SPI demo.
4 Lab 1—Touch Sensing Interface (TSI) with low power demo This lab will pick up with the PT60 lab example pre-loaded into the microcontroller’s on-chip flash memory described by the TWR-S08PT60 Quick Start Guide. The TSI example is the default demo upon powering up the module with factory settings and can be entered by running the pre-loaded software and following the steps.
6 Lab 3—Accelerometer demo This lab will show the accelerometer demo, which gets the three-axis acceleration data via IIC interface. When Lab 2 is running, the accelerometer demo can be entered by following steps: 1. Make sure that LAB2 is running. 2.
“IR test failed!” If the received data is wrong, will show “X”, D8 starts to flash, so you need to move the board, and keep D1 and Q1 to be aligned. If the communication is successful, D10 flashes and the following message appears: “IR test success!” ...
10 Lab 7—Flash and EEPROM demo This lab will show how to use Flash and EEPROM typical operational commands: Erase Verify All Blocks, Erase Verify Flash/EEPROM block, Erase Verify Flash/EEPROM section, Program EEPROM/Flash, Erase EEPROM/Flash sector, Erase EEPROM/Flash block, Erase all blocks. Follow steps below to play with this demo: 1.
Page 9
This is correct because the flash block has been blocks failed (i.e., all blocks are not blank)!” programmed with the LAB code. Enter the command “pg_eep 3100 1 2 3 4 5 6 7 8” to program EEPROM block starting at address 0x3100 with data bytes 1,2,3,4,5,6,7 and 8. The following message will be shown as a result of the command: “Program EEPROM success!” ...
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.
Page 11
7. Touch pad 1, the motor will decrease the spin speed. Repeat touching pad 1, the motor speed will be decreased to the minimum and then starts to spin in counter-clockwise direction. Both D7 and D8 flash to reflect the signals from the hall sensor. 8.
Need help?
Do you have a question about the freescale TWR-S08PT60 and is the answer not in the manual?
Questions and answers