herunterladen

1 Introduction
This document includes several module configuration
examples which show how to configure and use MCUs
modules to users getting started with the S12G64 device.
The examples included here illustrate a basic configuration of
the modules to allow users to quickly start developing their
own applications.
Complete code is available for all the examples. It can be
downloaded onto an MC9S12G64 target such as TWR-
S12G64 demo board upon which this demonstration lab is
based.
Each module of the S12G64 device has its own standalone
software and is discussed within its own section of this
document.
A zip file, AN4418SW.zip, contains the complete
CodeWarrior project for the lab examples that accompanies
this application note. This software zip file can be located and
downloaded from http://www.freescale.com
2 Setup
Freescale Semiconductor
Document Number: AN4418
Application Note
Rev 1, 11/2013
MC9S12G64 Demonstration Lab
Training
by:
Jose Manuel Cisneros
© 2011–2013 Freescale Semiconductor, Inc.
Contents
1 Introduction................................................................1
2 Setup..........................................................................1
2.1 Tools setup.....................................................1
2.2 Board setup.....................................................2
3 Demonstration lab examples.....................................4
3.1 Clocks and power management
unit (CPMU)..................................................4
3.2 Analog-to-digital converter
(ADC) module...............................................5
3.3 Timer module.................................................6
3.4 SCI module.....................................................7
3.5 SPI communications......................................8
3.6 PWM module.................................................9
3.7 MSCAN module...........................................10
3.8 MMC...........................................................11
3.9 Analog comparator (ACMP)........................14
4 Useful reference material........................................15
5 Revision history......................................................15