C M L 1 2 S D P 2 5 6
0 1 / 3 0 / 0 4
13
2) After development by applying ram memory program pages $20 - $2D, user should
relocate the paged program code to internal flash pages $30 - $3D for programming into
the flash memory. The user code in memory area 0x4000 - 0x7FFF will translate to the
lower fixed flash page $3E for programming operations. User variables and stack, as well
as interrupt vectors should stay in the internal ram area 0x1000 - 0x3E80 (monitor stack
and variables not needed). Then set the Autostart vector for application launching.
3) If the Autostart application fails to start after programming, user should review all
initialization and memory mapping first. Make sure the AUTO OFF (Spare) Option jumper
is idle or open. If the application applies the XIRQ interrupt, the interrupt must be idle (high
level) during any Reset sequence. Hardware may need to be applied if XIRQ signal level
cannot be guaranteed high during Reset.
4) To perform a test Autostart and apply the external ram for program space the following
precaution should be observed:
Expanded Wide Mode bus operation must be enabled from internal Ram space before
access to the external ram can be performed. Use CML12S.asm file for an example
and locate the PEAR/MODE Register write in internal ram space 0x1000 - 0x3F80.
Program pages $20 - $2D should be applied. Code must be loaded and tested without
powering down the development board (use Reset Switch).
OPTIONS and JUMPERS
MEM_EN
The MEM_EN option jumper is installed by default and enables the external ram memory on
the expanded HCS12 address and data bus. Removing the MEM_CS option jumper will allow
single-chip I/O port type operation of HCS12 ports A, B, E, and K (no bus enabled) without
external memory interference.
ECS
The ECS option installed enables the Emulation Chip Select signal from the HCS12 to drive
the upper address lines from HCS12 Port K to the external Ram on the CML12S board. With
the option open or idle, only the linear 64K byte address map is available on the external
address / data bus. ECS installed is required to emulate flash program pages in the external
ram memory.
MODC
The MODC option jumper provides Special Mode enable during Reset. This option must be
open or idle when operating with the MON12 or NOICE monitors. If a BDM cable is applied to
BDM port, the MODC option must be installed to enable Special Mode. Failure to install the
MODC jumper during BDM application may cause communication problems with the host.