The intent of this module is to explain how to effectively use the hcs12 cpu module in typical application programs. Freescale semiconductor hcs12 reference manual pdf. This new book provides a total solution for learning and teaching embedded system design based on the freescale hcs12 9s12 microcontroller. Various standalone programmers are provided to support the usbdm hardware. Memory map this application module is designed to support multiple hcs12 family microcontrollers specifically the hcs12c, hcs12dt, and hcs12xdt family of mcus.
Translate these programs into the binary code that the hcs12 understands. Freescales scalable controller area network s12mscanv2 mscan block guide, 4 freescale semiconductor figure 12. Assembly and c programming for the freescale hcs12 microcontroller 2nd edition. This page demonstrates the usage of the banked memory model on an mc9s12dp256b processor. The demo application the freertos source code download includes a fully preemptive multitasking demo application for the banked mode hcs12 rtos port. Features 16bit hcs12 core hcs12 cpu mmc memory map and interface int interrupt control bdm background. An introduction to hardware and software interfacing huang, hanway on. Freescale microcontrollers hcs12 lab systems a real time clock for hcs12 primary memory disposition serial communication with hcs12 ad conversion with hcs12 pwm generation with hcs12 embedded micro controller units 2 roger johansson freescale hcs12 hcs12 memory map and utilization cpu control core, clocks and timers. Application module student learning kit users guide featuring the. Freescale semiconductor hcs12 quick reference manual pdf. The dragon12light trainer kit comes with the following items.
For a typical hcs12 bootloader the flash memory from 0xe800 to 0xffff 6 kbyte is. The available memory flash, ram, and eeprom of the 9s12 hcs12 mcu is. Mapping memory resources on hcs12 microcontrollers, rev. Motorola freescale hcs12 rtos port banked memory model. An alternative version is provided that adds an arm swd interface that supports freescale kinetis devices. The module mapping control guide shows you how to use the control registers for the hcs12 microcontroller and how to configure the devices memory map.
The romhm software bit in the misc register determines the accessibility of the. May 26, 2019 the module mapping control guide shows you how to use the control registers for the hcs12 microcontroller and how to configure the devices memory map. To configure your software program to work with the openblt. Notes on using the freescale motorola hcs12 rtos port. These minor differences are transparent for most users. The mc9s12dg256 is the best replacement for the mc9s12dp256 since the latter has been discontinued by freescale.
An introduction to hardware and software interfacing gives a total solution for learning and teaching embedded system design based on the freescale hcs129s12 microcontroller. View or download datasheets, user guides, specifications and block diagrams for the freescale 9s12 hcs12 microcontroller, the processor used by the pdq board controller, 68hcs12 mc9s12 9s12 hcs12 hardware software interfacing, freescale mc9s12dp512 mcu datasheets. Dragon12plususb trainer evbplus hcs12 development board. It has room for one cpu module and 3 peripheral modules. This allows the same set of instructions to be used to access memory, io, and control registers. Sold by halfprice hanks books and ships from amazon fulfillment. Freescale semiconductor product brief mc9s12cfampb rev. Download your translated programs to the hcs12 chip. The mc9s12dg256 is a replacement for the mc9s12dp256 since the latter has been discontinued by freescale.
The cfamily includes rom versions mc3s12c1289 6643216 of all devices which provide a further cost reduction path for applications with high volume and stable code. This section shows the default memory map for each mcu immediately out of reset. This bootloader implementation allows user software to be downloaded into the ram of the. Freescale s12 and s12x mcus provide highperformance 16bit control for automotive and industrial applications. Motorola and the stylized m logo are registered trademarks of motorola, inc. Identify the hcs12 cpu features that support highlevel language programs. Mc9s12cfamily 16bit microcontroller based on freescales marketleading flash technology, members of the mc9s12cfamily deliver the power and flexibility of our 16 bit core cpu12 family to a whole new range of cost and space sensitive, general purpose industrial and automotive network applications.
Software development software development requires the use of a compiler or an assembler supporting the hcs12 x instruction set and a host pc running a debug interface. Codewarrior development studio contains the following set of tools. Eb388 using the hcs12 dfamily as a development platform for the hcs12 b family. An introduction to software and hardware interfacing. All memory and io are mapped in a common 64kbyte address space. The dragon12light board comes with the mc9s12dp256ccpv or the mc9s12dg256cvpe. In the m68hc12 and hcs12 architecture, all memory and inputoutput io are mapped in a common 64kbyte address space memory mapped io. Usbdm bdm interface for freescale microcontrollers usbdm consists of two components. Information in this document is provided solely to enable system and software. Access the hcs12 9s an introduction to software and hardware interfacing book only 2nd edition solutions now. The freescale 9s12 hcs12 microcontroller has a native address space of 64 kbytes, but it can. Plugins to work with freescale s codewarrior software under. View and download freescale semiconductor hcs12 reference manual online. It is compatible with the freescale 9s12dp256evb board and other similar development boards on the market today, but it also incorporates many onboard peripherals that make this board one of the best trainers in universities around the world.
Ram11 these bits determine the upper five bits of the base address for the systems internal ram. Codewarrior development studio is supplied with this board for application development and debug. B is absolutely wrong, 16 bit software can not run on a 8 bit system due to special instructions and registers. The mmc is the submodule which controls memory map assignment and. Users should be familiar with memory mapping, memory types, and embedded software. You will learn, step by step, how to program the hcs12 using both assembly and c languages, as well as how to use such development tools as asmide, miniide, gnu c, and.
The following is a partial list of nxp and freescale semiconductor products, including products formerly manufactured by motorola until 2004. Testing and using freescale axiom hcs12 mcu module by itself without freescale student project board with codewarrior hcs12 mcu modules from freescale or axiom come with usbbdm and ready to be used with codewarrior. By default, the hcs12 has its internal regi sters in the zeropage. Freescale announced the mc9s12xep100 in may 2006 to further extend the s12x family to 50 mhz bus speed and add a memory protection unit based on segmentation and a hardware scheme to provide emulated eeprom. Indeed, if you want to make the cpu see the entire eeprom, you need to move it, because it is overlapped by the register. S12 allaccess bootloader for the hcs12 microcontroller family, rev. Thank you very much for purchasing the dragon12jr trainer. Assembly and c programming for the freescale hcs12 by fredrick m. Hcs12 products contain a single processor, the hcs12x feature the additional xgate peripheral processor. Freescale s12xe family of 16bit automotive microcontroller doubles memory size. Connecting hcs12 mcu module to freescale student project board insert the hcs12 mcu module into the j5 connector of the project board.
Release versions of the software for the various bdms are available on sourceforge. Motorolafreescale hcs12 rtos port banked memory model. The dragon12plus board comes with the mc9s12dp256ccpv or the mc9s12dg256cvpe installed. Freescale codewarrior is a very powerful piece of software that lets you. It is compatible with the freescale 9s12dp256evb board and other similar development boards. Refer to the device user guide for the specific mcu installed for further details.
Software to support these interfaces this includes. Interfacing hcs12 microcontrollers to the mfr4200 flexray. Plugins to work with freescales codewarrior software under windows plugins to. Users should modify this memory map as necessary for their applications. The only difference between dg256 and dp256 is the number of can ports. Identify methods to efficiently access the hcs12 memory map.
Even so, as a service to those looking for descriptions of the protocol, the datasheets are provided here. The hcs12 port supports only 24bit linear addresses. Thanks to uri kogan for providing the original mc9s12dp256b port. It is compatible with the freescale 9s12dp256evb board and other similar development boards on the market today, but it also incorporates many on.
This new book provides a total solution for learning and teaching embedded system design based on the freescale hcs129s12 microcontroller. In the case of the hcs12 family, local memory maps may change from device to device. Page 20 window name description source and assembly display programmed application software in c and assembly programming languages, respectively register displays the mcu internal registers memory displays the active value at each memory address in the mcu internal memory map freescale semiconductor. This new book provides a total solution for learning and teaching embedded system design based on. However, after reset, the ram is entirely visible by the cpu. An introduction to hardware and software interfacing. If this is correct, it is up to you and your application. Hcs12 load ram and execute bootloader user guide nxp. Freescales amazing hcs12 controller family is an upgrade from the existing. If software is configured to protect against errant accesses, the decode is not necessary. These commands set up an entry in the mmu to map the internal sram to begin at many freescale microprocessors such as the hcs08, rs08, cfv1, and hcs12. The s12x mcus feature the innovative xgate module, designed specifically to handle interrupt events without cpu intervention. The freescale 9s12 hcs12 microcontroller has a native address space of 64 kbytes, but it can address up to 1 megabyte of memory implemented as 64 pages of 16 kbyte each. The dragon12jr trainer is a lowcost, featurepacked multipurpose training board for the freescale hcs12 microcontroller family.
Software development software development requires the use of a compiler or an assembler supporting the hcs12x instruction set and a host pc running a debug interface. Freescale student project board sample program using hcs12 mcu module from freescale and axiom. Examine and change the contents of the registers and memory locations inside the hcs12 chip. Hardware interfaces for various target devices this includes interfaces ranging from very simple hardware to more complete and capable hardware. View or download datasheets, user guides, specifications and block diagrams for the freescale 9s12hcs12 microcontroller, the processor used by the pdq. Assembly and c programming for the freescale hcs12 microcontroller, second edition, provides a generalpurpose view of software and hardware engineering in microcontroller systems and a comprehensive technical reference for the freescale hcs12 microcontroller. The hcs12 core architecture limits the physical address space. Software interfacing hcs12 microcontrollers to the mfr4200 flexray controller, rev. Significantly increases functionality, performance and system integrity. Remove the following jumpers before turning on power to the project board 1 on the hcs12 mcu module, remove the usb power jumper vb. Set an alert instruction set architecture, cisc family name, hcs12 s9s12xs256j0maa, freescale semiconductor.
A guide to codewarrior development studio for hcs12x. The primary motivation for this was to produce a single bdm that could be used with a range of freescale microcontrollers. It does not use any user memory or locations in the memory map and does not share any onchip peripherals. These terms are often used interchangeably in freescales literature. Apr 02, 2020 view or download datasheets, user guides, specifications and block diagrams for the freescale 9s12 hcs12 microcontroller, the processor used by the pdq. In the m68hc12 and hcs12 architecture, all memory and inputoutput io are mapped in a common 64kbyte address space memorymapped io. Page 0x3e is a fixed flash page of 16 kbyte visible in the memory map from 0x4000 to 0x7fff. View or download datasheets, user guides, specifications and block diagrams for the freescale 9s12hcs12 microcontroller, the processor used by the pdq board controller, 68hcs12 mc9s12 9s12 hcs12 hardware software interfacing, freescale mc9s12dp512 mcu datasheets. Chapter 1 freescales scalable controller area network. Freescale semiconductor hcs12 reference manual pdf download. Understanding the memory scheme in the s12x architecture. Pwm, uart port, spi, i2c, can, onchip flash and eeprom programming, external memory expansion, and more.
1625 1375 1562 803 695 928 68 173 1560 1577 1038 914 1547 960 1261 446 1471 267 1306 767 1316 379 1357 218 664 1317 500 134 954 627 403