Motorola MC9S12DP256, CML12S-DP256 manual Tips and Suggestions

Page 22

C M L 1 2 S D P 2 5 6

0 7 / 1 7 / 0 2

Tips and Suggestions

Following are a number of tips, suggestions, and answers to common questions that will solve many problem users have with the CML12SXXX development system. You can download the latest software from the Support section of our web page at:

www.axman.com

Utilities

If you’re trying to program memory or start the utilities, make sure all jumpers are correct.

Be certain that the data cable you’re using is bi-directional and is connected securely to both the PC and the board. Also, make sure you are using the correct serial port.

Make sure the correct power is supplied to the board. You should only use a 9 volt, 200mA minimum adapter or power supply. If you’re using a power strip, make sure it is turned on.

Make sure you load your code to an address space that actually exists. See the Memory Map if you’re not sure. The MEM_EN and ECS options change the memory map.

If debugging under Mon12, make sure you're not over-writing internal RAM used by it.

If you’re running in a multi-tasking environment (such as Windows™) close all programs in the background to be certain no serial conflict occurs.

Code Execution

Under Mon12, breakpoints may not be acknowledged if you use the CALL command. You should use one of the GO command instead.

Check the Autostart mask and reset vector located in EEprom at 0xFEC - 0xFEF. These 2 words contain the enable mask and address where user application execution will begin when the unit is powered on.

When running your code stand-alone, you must initialize ALL peripherals used by the micro, including the Stack, Serial Port, and pseudo Interrupt vectors etc.

You must either reset the COP watchdog timer in the main loop of your code or disable it when not running under Mon12 or BDM mode. The micro may enable this by default and if you don't handle it your code will reset every few 100ms.

22

Image 22
Contents CML12S-DP256 Contents Getting Started Support Software Installing the SoftwareBoard Startup Modc = Out, JP2 = do not care, see COM PortsSoftware Development TutorialCreating Source Code Assembling source code AS12 HELLO.ASM -L HelloRunning your application Programming HCS12 Flash EEprom AutoMON12 Operation MON12 operation notesMON12 Interrupt Support Mon12 Monitor CommandsMovw #IRQSRV,VIRQ Noice Operation MON12 and Noice Memory MapAutostart BDM OperationClock frequency = 24MHz Memen ECSMode ModcAuto OFF / spare OscselJP1 and JP2 Ports and ConnectorsTB1 and J1 Power CUT-AWAY Options 1Mcuport Analog PortPCOM1 and PCOM2 BusportKeypad / Port H 6 connected and 7,8 connectedCAN-H Can PortPCOM2 pin connections CAN-LP1 P4 HCS12 Header Ring Lcdport ConnectorLcdport See the HC12 Technical Reference Manual for complete BDM PortTest Points Documentation of the BDMTroubleshooting Tips and Suggestions Command LCD Command and Character CodesCode Delay MON12 Interrupt Table