Lab Tutorial for TWR-S08GW64 TOWER SYSTEM. MC9S08GW64 LCD segment MCU for flow meters and energy metering applications

Similar documents
Quick Start Guide for TWR-S08LL64 TOWER SYSTEM MC9S08LL64. S08 ultra-low-power LCD segment MCU

Quick Start Guide TWR-S08PT60. 5-Volt S08P Family of 8-bit MCUs for Industrial and Appliance Applications TOWER SYSTEM

Quick Start Guide. TWR-K70F120M High-Performance MCUs with Graphics LCD, Connectivity and Security TOWER SYSTEM

Quick Start Guide. TWR-K70F120M High-Performance MCUs with Graphics LCD, Connectivity and Security TOWER SYSTEM

Quick Start Guide for TWR-S08MM128-KIT TOWER SYSTEM MC9S08MM128. The industry s most complete solution for portable medical applications

Quick Start Guide TWR-S08DC-PT60. Tower System Daughter Card for the 5-Volt 8-bit MC9S08P Family TOWER SYSTEM

TWR-K70F120M Quick Start Guide

TWR-KM34Z50MV3 Quick Start Guide

TWR-K60F120M Quick Start Guide

TWR-K21F120MA Quick Start Guide

Quick Start Guide. TWR-S12G128 Scalable platform for automotive applications TOWER SYSTEM

Quick Start Guide for TWR-MCF5225X TOWER SYSTEM. MCF5225X ColdFire connectivity MCUs

Quick Start Guide for TWR-MC56F8257 TOWER SYSTEM MC56F8257. For power conversion and motor control applications

Quick Start Guide. TWR-K60D100M Low-Power MCU with USB, Ethernet and Encryption TOWER SYSTEM

TWR-K53N512 Quick Start Guide

Quick Start Guide. TWR-P1025 QorIQ Processor with Networking and Industrial Connectivity and Protocol Offload Engine TOWER SYSTEM

Quick Start Guide. TWR-MPC8309 PowerQUICC Processor with Industrial Connectivity and Protocol Off-Load Engine TOWER SYSTEM

Quick Start Guide. TWR 56F8200 Tower System Module for MC56F823xx and MC56F827xx. Digital Signal Controllers TOWER SYSTEM

DEMO9S08LG32 Up to 5V MCU with integrated LCD display driver

Quick Start Guide TWR-PXS bit Dual-Core Power Architecture MCU for Industrial Control and Safety Applications TOWER SYSTEM

Featuring the SM700 RF Engine from Synapse TOWER SYSTEM. Quick Start Guide Wireless Mesh Networking Module featuring SNAP Technology (TWR-RF-SNAP)

Quick Start Guide. TWR-KV10Z32 Development Kit for Kinetis KV1x Family TOWER SYSTEM

Quick Start Guide TWR-PXR bit Power Architecture MCU for High-Performance Real-Time Applications TOWER SYSTEM

TWR-SMPS-LVFB Quick Start Guide

Quick Start Guide TWR-56F8400. The Ultimate Solution in Performance and Precision for Energy-Efficient Innovation TOWER SYSTEM

TWR-KL43Z48M Quick Start Guide

Lab Tutorial for TWR-S08MM128-KIT TOWER SYSTEM LAB MC9S08MM128. Electrocardiogram (EKG) with Freescale USB stack

Quick Start Guide. S12VR64EVB S12 MagniV Mixed-Signal MCUs. S12 MagniV

HVP-56F82748 Quick Start Guide

Quick Start Guide. MED-SPO2 Pulse Oximetry Plug-in Board TOWER SYSTEM

Quick Start Guide for TWR-SER2 TOWER SYSTEM. TWR-SER2 Enhanced serial module

TWR-K80F150M Quick Start Guide

Quick Start Guide. MED-SPI Spirometry Plug-in Board TOWER SYSTEM

Quick Start Guide. TWR-LCDC-EPSON Epson Display Controller Module TOWER SYSTEM

Freescale Semiconductor Inc. Microcontroller Solutions Group. TWR-MCF51CN User Manual Rev. 1.1

Freescale Semiconductor Inc. TWR-MCF51CN User Manual Rev. 1.2

User's Manual Rev. 1. Freescale Semiconductor Inc. TWRS08UNIVUM

Quick Start Guide. TWR-IND-IO Industrial I/O Module TOWER SYSTEM

Quick Start Guide TRK-KEA. Kinetis EA Series MCUs for Automotive Electronics Applications. StarterTRAK

Quick Start Guide. TWR-VF65GS10 For Vybrid Controller Solutions Based on ARM Cortex -A5 and Cortex-M4 Processors with the DS-5 Toolchain TOWER SYSTEM

Watt Saver Software Component (WSC)

Freescale Tower System

TWR-LS1021A Getting Started

M52259DEMOKIT One-stop-shop connectivity MCU with USB, Ethernet and CAN, featuring Freescale MQX software solutions

Lab Guide Rev. 1.1 TWRWIFIAR4100LAB

Lab Guide Rev. 0 TWRWIFIG1011MILAB

Quick Start Guide TRK S12ZVFP64. S12 MagniV MCU for Automotive Heating, Ventilation and Air Conditioning (HVAC) Applications

TRK-S12ZVL Quick Start Guide. MagniV Mixed-signal MCUs for LIN Applications

TWR-LS1021A Getting Started

LAB #1: The CSM12C32 Module and PBMCUSLK Project Board

Quick Start Guide for TRK-MPC5634M. Starter TRAK. TRK-MPC5634M Automotive powertrain and precision timed industrial applications

TWR-KV10Z32 Sample Code Guide for CodeWarrior Board configuration, software, and development tools

TWR-KE18F. Quick Start Guide. 32-bit Kinetis MCU based on ARM Cortex -M4 provides up to 168 MHz CPU performance, up to 512 KB flash with 64 KB SRAM

Quick Start Guide for the Freescale Freedom Development Platform FRDM-KL43Z

Quick Start Guide. EVBUSB2SER board for USB-to-serial bridge. Ready Play Solutions

Freescale MQX RTOS TWR-K64F120M Release Notes

EVBQE128. Evaluation Board for Freescale Flexis QE128. User s Manual

Quick Start Guide. MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD

Quick Start Guide. 3-Phase Sensorless BLDC Motor Control Development Kit with MC9S12G128 MCU

Quick Start Guide. USB Packet Sniffer/Dongle for Kinetis MKW22D and MKW24D Wireless MCUs USB-KW24D512

HVP-KV10Z32 User s Guide

Quick Start Guide KEA128BLDCRD. 3-phase Sensorless BLDC Motor Control Reference Design using Kinetis KEA128

Quick Start Guide for FRDM-KL46Z Rev 1

Quick Start Guide for FRDM-KL46Z Rev 1

TWR K20D50M Quick Start Demo Lab Guide

TWR-KV10Z32 Sample Code Guide for IAR Board configuration, software, and development tools

Freescale Semiconductor Inc. TWRWIFIGS1500MLAB. TWR-WIFI-GS1500M Lab Guide Rev. 1

Quick Start Guide for FRDM-KL05Z

SABRE for Automotive Infotainment Quick Start Guide. Smart Application Blueprint for Rapid Engineering Based on the i.mx 6 Series

DEVKIT-S12VR QUICK START GUIDE (QSG)

TWR-S08 Demonstration Board for Freescale MC9S08LL and MC9S08LH Families of Microcontrollers

HVP-KV31F120M User s Guide

KITVALVECNTLEVM Valve Controller SoC Evaluation Kit

indart -HCS08 In-Circuit Debugger/Programmer for Freescale HCS08 Family FLASH Devices User s Manual Rev. 2.0

PMSM Field-Oriented Control Using MC56F84789 DSC With Encoders Demo Guide

Quick-Start Guide. BNS Solutions. QSK62P Plus

MQX -celeration RTOS-integrated solutions

Installing and using CW 10.x for TPMS applications. Revision 5

Freescale Semiconductor Application Note Document Number: AN3231 Rev. 1.1, 10/2006 MC1319x, MC1320x, and MC1321x Demonstration Operation Running SMAC

Kinetis SDK v Release Notes for the MK21DA5 and MKW24D5 Devices

TWR-56F8200 Tower Board

LPC2468 Industrial Reference Design Platform System Development Kit Version 1.2. August 2008

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

DEMO9S08SH8/SG8 Demonstration Board for Freescale MC9S08SH8/SG8

Getting Started with the Microcontroller Student Learning Kit (MCUSLK) Using the MC9S12C32 MCU Application Module (CSM-12C32)

Quick Start Guide. Dual 3-Phase Sensorless BLDC Motor Control Development Kit with Qorivva MPC5643L MCU

EVB9S08DZ60. Demonstration Board for Freescale MC9S08DZ60. User s Manual

OpenSDA on TWR-KW2x. User s Guide Rev 1.1

Microbee Technology FTM-3SE

TWR-MCF51JG Tower Module User's Manual Rev. 1.1

DEMO9S08SH32/SG32 Demonstration Board for Freescale MC9S08SH32/SG32

EKK-LM3S811 QUICKSTART

AN HI-3200 Avionics Data Management Engine Evaluation Board Software Guide

Test Procedure for the NCP1247USBPDGEVB Evaluation Board

HVP-MC56F82748 User s Guide

Three-Phase Power Meter Hardware Design Reference Manual

Quick Start Guide for i.mx28 EVK. i.mx28 EVK Multimedia and connectivity

Component validity and internal error checking functionality to ensure reliable operation

Quick Start Guide. i.mx 6SoloLite Evaluation Kit

WPR1500-LDO MP Receiver V2.1 Reference Design User s Guide

Transcription:

Lab Tutorial for TWR-S08GW64 TOWER SYSTEM MC9S08GW64 LCD segment MCU for flow meters and energy metering applications

TOWER SYSTEM Get to Know the TWR-S08GW64 MC9S08GW64 Tamper Switch (SW4) User Switch (SW3) User Switch (SW5) Reset Switch IRQ Switch USB Connector Primary Connector RS232 Port Potentiometer to Control the Vrms Potentiometer to Control Irms LCD Glass Secondary Connector Figure 1: TWR-S08GW64 TWR-S08GW64-KIT Freescale Tower System The TWR-S08GW64 module is part of the Freescale Tower System, a modular development platform that enables rapid prototyping and tool re-use through reconfigurable hardware. Take your design to the next level and begin constructing your Tower System today. The TWR-S08GW64-KIT comes with two elevator modules (TWR-ELEV) and a prototype module (TWR-PROTO).

Lab Tutorial for TWR-S08GW64 TOWER SYSTEM Introduction Freescale provides free lab diagnostic code to provide hands-on experience and demonstrate the capabilities of the MC9S08GW64 on TWR-S08GW64. Included: Lab 1: Lab 2: Displays the current, voltage, energy and power factor Displays the clock, calendar and tampers registered The value of the current, voltage and power factor can be varied using the potentiometer The value of the tampers registered can be varied using a switch LCD all segment ON for connectivity check LCD blink modes demonstration LCD charge pump and resistor bias mode LCD prescalar options

TOWER SYSTEM Please follow the jumper settings below before running the Lab tutorial. 1 2 3 J6 Connect between 2 and 3 in J6 to get power from the regulator. J10 J6 J15 J16 J7 J14 J7 Connect J7 to power up the MCU from the output of J6. 1 2 3 J3 1 2 3 J1 J3 J1 TWR-S08LGW64 Jumper Settings Connect between 2 and 3 in both J1 and J3 to connect the debugger interface to GW64.

Lab Tutorial for TWR-S08GW64 TOWER SYSTEM 1 2 3 J15 1 2 3 J16 2 4 6 1 3 5 J14 Connect between 1 and 2 for both J15 and J16 to connect the output of QE8 to ADC1 and ADC2 for signal simulation input. Connect between 4 and 6 and between 3 and 5 for J14 to connect the GW64 serial data to RS232. 1 2 3 J10 Connect between 2 and 3 for J10 to connect Switch 4 as the tamper 1 input.

TOWER SYSTEM Step-by-Step Guide STEP 1 Open CodeWarrior and the Project 1. Complete the setup instructions in the Quick Start Guide. Be sure CodeWarrior v10.0 is installed. 2. Open CodeWarrior for microcontrollers. From the Windows start menu, you can locate it using Programs > Freescale CodeWarrior > CW for MCU v10.0> CodeWarrior. 3. Choose the Start Using CodeWarrior button. 4. Download the project Demo_Board_ Application_Software.zip(LAB1) and LCD LAB.zip(LAB2). Unzip and save the folders Demo_ Board_Application_Software and LCD LAB on the desktop. 5. Using CodeWarrior, click File > Open and browse to Desktop/Demo_Board_ Application_Software /demo_board. mcp for LAB1 Desktop/LCD LAB/build/mwerks/evb/ LAB_LCD.mcp for LAB2 STEP 2 Install the GW64 Service Pack 1. Open the CodeWarrior window. 2. Go to the Help menu. 3. Select Install New Software in the drop down menu. 4. Ensure the link below is in your Work With textbox - http://freescale.com/lgfiles/updates/ Eclipse/MCU/com.freescale.mcu. updatesite 5. Select the check box for MCU 10.0 Service Pack for MC9S08GW64 and MC9S08GW32

Lab Tutorial for TWR-S08GW64 TOWER SYSTEM STEP 3 Open the Source Code 1. In the File menu go to Import as shown. 2. Expand General and select CodeWarrior Classic Project Importer as shown. Click Next.

TOWER SYSTEM 3. Browse to the folder where the code is stored and select the.mcp file and click Finish. 4. The project directory structure will be visible as shown. In the CodeWarrior window, double click on MC9S08GW64.h in the Libs folder and paste the following line in the file: #pragma OPTION ADD S08CFv1Compatible -BfaGapLimitBits4294967295

Lab Tutorial for TWR-S08GW64 STEP 4 Set Up the TWR- 9S08GW64 Module Basic steps for the Tower System hardware installation For the LCD LAB, the following cards of the Tower System are required: 1. Tower System Primary Elevator 2. Tower System Secondary Elevator 3. Tower System Serial Module 4. Tower System GW64 Controller Module How to Connect: 1. There are four slots each on Primary and Secondary Elevator card. All four slots are identical to each other. 2. Take the GW64 Controller card and insert the PRIMARY connector side in the Primary Elevator, matching the B marking of the Elevator card and the controller card in any of the four slots. TOWER SYSTEM 3. Take the Serial Module and insert the PRIMARY connector side in the Primary Elevator, matching the B marking of the Elevator card and the Serial Module in any of the three remaining slots. 4. Take the Secondary Elevator card and fit it on the other side of the GW64 Controller and the Serial Module card, again matching the B marking so that it forms a Tower-like structure. The Tower System is now in place.

TOWER SYSTEM 1. Power up the Tower System by plugging the USB cable between the PC (USB Type-A Female connector) and the Primary Elevator card connector J5 (Mini USB Type-B connector) and then switch ON the toggle switch (PWR SW) on the Primary Elevator. 2. Connect the debugger for downloading the code from the PC by connecting the USB Cable from the PC (USB Type-A Female connector) to the USB Multilink Interface (USB Type-B Female connector) and connect the other end of the USB Multilink Interface to the J2 of the GW64 Controller Card. Note: The red wire should match Pin 1 of J2.

Lab Tutorial for TWR-S08GW64 3. Configure the HyperTerminal to use the DEMO9S08GW64 Lab as follows: 1. Connect the serial cable between your PC and the serial module. 2. Open the HyperTerminal application and create a new connection on the COM port that connects to the UART on the board, as shown. TOWER SYSTEM 3. Configure the HyperTerminal with the following settings, as shown.

TOWER SYSTEM STEP 5 Start the P&E Toolkit Application and Enter the Programmer/Debugger Steps to load the code Using CodeWarrior, compile and program the MC9S08GW64 microcontroller with the application by clicking on RUN button drop down as shown. 2. Select LCD_LAB-Standard-BDM_ PandE_Multilink_CyclonePro(1) as shown and click the RUN button. 1. Click on Run Configuration.

Lab Tutorial for TWR-S08GW64 TOWER SYSTEM Lab 1: Demo The welcome message GW64 DEMO appears on the LCD. By pressing switch SW3, the display scrolls between the main menus as shown: GW64 DEMO > E METER > RTC DEMO > LCD DEMO > GW64 DEMO By pressing SW5, the user can access the sub menus of the main menus as follows: E METER Keep pressing SW5 to scroll through the following: RMS current > RMS voltage > Active power > Apparent power > Power factor > Energy accumulated > RMS current RTC DEMO Keep pressing SW5 to scroll through the following: Date > Time > Tampers detected > Date LCD DEMO Press SW5: LCD Blinks

TOWER SYSTEM SW3 SW5 SW4 (Tamper) POT 1 for IRMS POT 2 for IRMS POT 3 for phase difference displayed. Then set the date using the combination of SW3 and SW5. Hold SW5 again for a few seconds to exit out of the date setting mode. The time can be set in the same way that the date is set. You can further interact with the board in the following ways: POT1: To change the value of Irms displayed POT2: To change the value of Vrms displayed POT3: To change the PF (power factor) displayed SW4: To increase the tamper count In order to set the date, hold SW5 for a few seconds when the date is being

Lab Tutorial for TWR-S08GW64 Lab 2: LCD The Lab 2 diagnostic takes commands through the HyperTerminal via the UART port, so make sure the UART cable is connected from board to the computer. Now the board is able to communicate to the DEMO9S08GW64 via the UART, as shown. TOWER SYSTEM 1. Type help to see the command help. 2. Type the commands and see the results on the board as shown.

TOWER SYSTEM Learn more at freescale.com/s08gw and freescale.com/tower. Freescale, the Freescale logo and CodeWarrior are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. Doc Number: TWRS08GW64LBTUT / REV 0