User Tools

Site Tools


lab1

This is an old revision of the document!


Lab Objectives

The purpose of this lab is to familiarize you with the development process of applications using CodeWarrior IDE for the MC9S12DP256B microcontroller.

Background information

Embedded Systems

An embedded system, as opposed to a general purpose computer, is a special purpose system in which the computer is completely encapsulated by or dedicated to the device or system it controls. Unlike a general purpose computer, such as a personal computer, an embedded system performs one or a few predefined tasks, usually with very specific requirements. Since the system is dedicated to specific tasks, design engineers can optimize it, reducing the size and cost of the product. Embedded systems are often mass produced, benefiting from economies of scale.

Usually intermediate developers face the following issues while working on embedded platforms:

  • Finding affordable hardware platform
  • Finding easy to follow and organized documentation
  • Finding open source and customizable compilers and assemblers
  • Finding a simple and affordable Integrated Development Environment (IDE)
  • Difficulties with testing, transferring and debugging code on target platform
  • Finding simple and understandable examples for hardware modules
  • Need of electrical knowledge and general understanding of target platform
  • Need of high tech and expensive equipments (i.e. precision oscilloscopes and logic analyzers)
  • Finding simple and affordable embedded operating system

Freescale Semiconductor Inc.

Freescale Semiconductor, Inc. is an semiconductor manufacturer created by the divestiture of the Semiconductor Products Sector of Motorola in 2004. Freescale focuses on the automotive, embedded and communications markets for their semiconductor products. Freescale is among the Worldwide Top 50 Semiconductor Sales Leaders.

The 68HC12 (6812 or HC12 for short) is a 16 bit micro-controller family from Freescale Semiconductor. Originally introduced in 1994, the architecture is an enhancement of the previous Freescale 68HC11. Programs written for the HC11 are usually compatible with the HC12, which has a few extra instructions. The first 68HC12 derivatives had a maximum bus speed of 8 MHz and flash memory sizes up to 128 KBytes.

Like the 68HC11, the 68HC12 has two 8 bit accumulators A and B (sometimes referred to as a single 16 bit register D), also two 16bit registers X and Y, a 16 bit program counter, a 16bit stack pointer and an 8 bit Condition Code Register.

Motorola has launched the new HCS12 (also known as MC9S12) product line in 2000. The bus speed was improved up to 25MHz and flash sizes up to 512 KBytes. The MC9S12NE64 was introduced by Freescale in September 2004, claiming to be the “industry's first single-chip fast-Ethernet Flash microcontroller.” It features a 25 MHz HCS12 CPU, 64 KBytes of FLASH EEPROM, 8 KBytes of RAM, and an Ethernet 10/100 Mbit/s controller. Since the HCS12 was a direct upgrade to the existing HC12 family, most of the links and information provided here are suitable for both lines.

lab1.1266962242.txt.gz · Last modified: 2010/02/23 21:57 by natalia

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki