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.

Latest addition in 2004 was the advanced HCS12X, providing even more features, including the XGATE DMA co-processor. HCS12X is fully backward-compatible with HCS12 CPU. The S12X family utilizes the latest process technology. It boasts higher speed (40 MHz), more functionality, reduced power consumption and cost, and enhanced performance with the new XGATE on-chip memory-management and DMA module. The XGATE peripheral co-processor allows for some tasks to be offloaded from the CPU also allows several new instructions to increase performance.

Freescale announced the MC9S12XEP100 in May 2006 to further extend the S12X family to 50MHz bus speed and add a Memory protection unit (based on segmentation) and a hardware scheme to provide Emulated EEPROM.

Freescale HC1x platform has been around from 1990s which makes it affordable, well tested and stable candidates for embedded projects. Documentations can be downloaded free of charge from Freescale Semiconductor's website. GNU tool chain has been ported and tested on HC1x MCUs [1]. BDM features of HC12 series provide ease of transfer, testing and debugging codes to MCUs. We have decided to use HCS12 hardware as the host system for μC/OS.

lab1.1266962608.txt.gz · Last modified: 2010/02/23 22:03 by natalia

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki