Laboratory Reference Manual
by Dustin Spicuzza
The Lab Reference Manual
includes instructions to Flash EEPROM programming.
A previous Flash Programming Guide by Ramakrishna Gottipati is here.
D-BUG12 .s19 file
Bootloader (in case you have deleted it
by accident) .s19 file
file for the Adapt9S12DP512 Board
Please note that when you develop code for uCOS-II tasks you are to
refrain from programming the PLL
because NOICE may crash.
C code syntax
guide for the ICC12 IDE
Test1m Test2m Test3
Assembly code (a .txt file) to output ECLK
on Port E
Assembly code (a .txt file) to
set the Bus Speed to 24MHz (through the PLL)
regarding to the length of a machine/memory cycle for a 9S12DP256/DP512
with a 16MHz crystal:
- if you download your code directly from ICC12 to the board and run it
under DBUG-12 (as you
likely do outside of the Microcomputer Lab) the measured period
time of the ECLK signal is approx. 42ns
(i.e., the Bus Speed is 24MHz). It is due to the fact that the DBUG-12
Monitor sets up the PLL such that
the default 8MHz clock speed will be multiplied by 3.
- However, in the lab you download and run your programs through the
NOICE12 sw and the BDM12SX
BDM Module. The measured period
time of the ECLK signal is approx. 126ns (i.e., the Bus Speed is 8MHz)
because the NOICE12 program leaves the PLL alone. You have to program
the PLL from your code if
you want your board to run at 24MHz in the lab. However, when you
develop a task for the uCOS-II RT Kernel
stick with the 8MHz Bus Speed because it is the default value for the
Kernel. If you need to step up the clock rate
then you also need to edit the Kernel source code accordingly.
Register definition files for assembly
and for C code (a header file),