68HCS12
April 6,2010
In this section of my website you will find information about 68HC12 microprocessor from Freescale. All my functions are built using LBE_miniDRAGON_Plus2 - CodeWarrior Stationery Project . This stationery project files are from book named Learning by Example Using C - Programming the miniDRAGON-Plus2 Using CodeWarrior by Richard Haskell and Darrin Hanna.
Anti SIDS
May 7,2010
Sudden Infant Death Syndrome (SIDS) is a medical term that describes the sudden death of an infant which remains unexplained after all known and possible causes have been carefully ruled out through autopsy, death scene investigation, and review of the medical history. SIDS is responsible for more deaths than any other cause in childhood for babies one month to one year of age, claiming 150,000 victims in the United States in this generation alone - 7,000 babies each year -nearly one baby every hour of every day. It strikes families of all races, ethnic and socioeconomic origins without warning; neither parent nor physician can predict that something is going wrong. In fact, most SIDS victims appear healthy prior to death.
Source Code
April 6,2010
- Schedular V1(SCHV1) and Schedular V2(SCHV2) April 6, 2010 are 68HCS12 port of Schedular described in Pattern for Time Triggred Embedded Systems. The difference between SCHV1 and SCHV2 is SCHV1 goes in wait mode after executing running task and is exact port of the book whereas SCHV2 does not goes to wait mode and is not exact port.
- Debug Module April 6, 2010 - is a module for debugging a program.It uses SCI0 as default port.To use the module do following steps
- Create example project using LBE_miniDRAGON_Plus2 - CodeWarrior Stationery Project
- Download (debug.zip)
- Include debug.h and debug.c in your poject file
- Call appropriate function as shown in the example below
Simple example of debug module #include
/* common defines and macros */ #include /* derivative information */ #pragma LINK_INFO DERIVATIVE "mc9s12dg256b" #include "main_asm.h" /* interface to the assembly module */ #include "debug.h" int i; void main(void) { PLL_init(); // set system clock frequency to 24 MHz debug_init(); while(1) { for(i=0;i<10;i++){ debug("i:%X",i); } } }
Videos
April 6,2010
Debugging simple Assembly program