09.01.2013 Views

Motorola Semiconductor Engineering Bulletin EB422 Enhanced

Motorola Semiconductor Engineering Bulletin EB422 Enhanced

Motorola Semiconductor Engineering Bulletin EB422 Enhanced

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Freescale <strong>Semiconductor</strong>, Inc...<br />

<strong>Engineering</strong> <strong>Bulletin</strong><br />

The ROM version of the PH8 also has an embedded version of a<br />

PCbug11 talker. Embedding talkers in boot ROM has the advantage of<br />

freeing memory in RAM (from where talkers normally run). The<br />

disadvantage of such a talker is that there is no possibility to alter it if<br />

required, for example, to change programming delay times. Also, due to<br />

the limited memory available, the talker in the PH8 boot ROM does not<br />

support the trace and breakpoint functions of PCbug11.<br />

To use the boot ROM talker, the user must force a jump to the start of<br />

the boot ROM talker. Listing 1. PCbug11 MC68HC(7)11PH8 Talker<br />

Initialization Code shows the code required to perform the initialization.<br />

Note that the boot ROM code only initializes the SCI vector by default;<br />

the user should add further initialization to this talker file, if required. To<br />

generate a machine readable talker, assemble the file using ASMHC11<br />

with the ;B option. The .MAP shown in Listing 2. PCbug11 PH8 Talker<br />

Map File tells PCbug11 where the talker code is. This must have the<br />

same name as the talker file and both files require the use of PCbug11<br />

version 3.40 or later.<br />

Listing 1. PCbug11 MC68HC(7)11PH8 Talker Initialization Code<br />

Listing 2. PCbug11 PH8 Talker Map File<br />

Freescale <strong>Semiconductor</strong>, Inc.<br />

M68HC11 Absolute Assembler Version 2.70C:\talkph8.ASC<br />

1 A 0000 ORG $0<br />

2 A 0000 7EBE40 start JMP $BE40<br />

3 A END<br />

Name of constant must not exceed 14 characters.<br />

Value of constant must start in column 15 or higher.<br />

talker_start $BE40 Talker code start address. (TLKRSTART)<br />

talker_idle $BE5E Talker code idle loop address. (IDLE)<br />

user_start $BE49 User’s reset entry into talker code. (USERSTART)<br />

xirq_ujmp $00F2 Address of user’s XIRQ server address.<br />

relocate_buf $00A0 PCbug11 workspace in MCU RAM<br />

xirq_srv $BE61 Talker’s XIRQ service address. (SCISRV)<br />

swi-srv $BE99 Talker’s SWI service address for break points. (SWISRV)<br />

swi_idle $BE5E Talker’s SWI idle loop. (SWIIDLE)<br />

null_srv $BE99 Talker RTI. (NULLSRV)<br />

xirq_jmp $00F2 XIRQ vector.<br />

swi_jmp $00F5 SWI vector.<br />

cme_jmp $00FE COP clock monitor vector.<br />

<strong>EB422</strong><br />

6 MOTOROLA<br />

For More Information On This Product,<br />

Go to: www.freescale.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!