Motorola MC9S12DP256 manual Mon12 Monitor Commands, MON12 Interrupt Support, Movw #IRQSRV,VIRQ

Page 10

C M L 1 2 S D P 2 5 6

0 7 / 1 7 / 0 2

A)Determine if Auto Start in enabled and proceed to vector if not a value of $FFFF.

B)Set Stack, Initialize memory map and SCI0 port and send prompt.

C)Receive first character from Console port and execute monitor if ASCII text / command, else start utility mode for programming services.

Mon12 Monitor Commands

AUTO [<Address>]

Enable Auto start, address is the vector

NOAUTO

Disable Auto start

BF <StartAddress> <EndAddress>

Fill memory with data

[<data>]

 

BR [<Address>]

Set/Display user breakpoints

BULK

Erase entire on-chip EEPROM contents

CALL [<Address>]

Call user subroutine at <Address>

G [<Address>]

Begin/continue execution of user code

HELP

Display the Mon12 command summary

LOAD [P]

Load S-Records into memory, P = Paged S2

MD <StartAddress> [<EndAddress>]

Memory Display Bytes

MM <Address>

Modify Memory Bytes (8 bit values)

MW <Address>

Modify memory Words (16 bit values)

MOVE <StartAddress> <EndAddress>

Move a block of memory

<DestAddress>

 

RD

Display all CPU registers

RM

Modify CPU Register Contents

STOPAT <Address>

Trace until address

T [<count>]

Trace <count> instructions

MON12 Interrupt Support

All interrupt services under MON12 are provided through the ram vector table, see Table 2. Each location in the table is initialized to a value of $0000 to cause the trap of an unscheduled interrupt. Any nonzero value will allow the interrupt to proceed to the user's service routine that should be located at the provided address value. Interrupt service delay is plus 21 cycles over standard interrupt service.

To use vectors specified in the table, the user must insert the address of the interrupt service routine during software initialization into the ram interrupt table. For an example, for the IRQ vector, the following is performed:

Example:

IRQ Service routine label = IRQ_SRV

 

Ram Vector Table address is defined in table below, IRQ vector definition:

 

VIRQ EQU $3EF2 ; define ram table vector location

Place IRQ service routine address in the table:

 

MOVW

#IRQ_SRV,VIRQ

10

Image 10
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 Hello Running 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