Lowest Level Example - Fujitsu F2MC-16L Series User Manual

Hide thumbs Also See for F2MC-16L Series:
Table of Contents

Advertisement

5.2. Lowest Level Example

As a further step the Evaluation Board should be used without downloading anything to
become familiar with some commands. A simple ">" refers to Evaluation Board monitor
commands and "C:\>" refers to DOS commands. The Evaluation Board should be prepared
(power, RS232 connector).
The configuration should be set to ANSI, if supported by the terminal program.
>EMULATION ON↵
A very simple program doing nothing can be created by writing NOP codes (No Operation) in
page E. The command
>FILL FE0000 FEFFFF 0↵
is the fastest way to do that. The code can be checked by disassembling this area:
>DIS FE0000↵
There are only NOP instructions. The "program" is started by:
>GO FE0000↵
Of course, once started nothing happens anymore. The controller proceeds all 65,536 NOP-
instructions and continues at the first one again. The program must be finished with Monitor
Reset button. To get back control without reset a breakpoint should be set at FE0100h.
>BREAK FE0100↵
>BREAK↵
==== Breakpoint List ====
No. T.
Addr.
OCnt.IniC.
00. B
FE0100
0000 0000
>GO FE0000↵
However, the execution is not stopped. The reason is the invalid stack. Since the monitor and
user program has to share one microcontroller, the breakpoints require the user's system stack
(see NOTE of TRACE command). The INT9 instruction is called, but the stack has no data.
Reset must be used again.
>REGISTER↵
AH
AL
SP
0000 0000 000000 FC0042 000000
ILM RP
CCR
0
00 -S-----
>
The above listing shows the current stack pointer SP = 000000 (SSB and USB are initialised to
0 on reset, SSP and USP are undefined). The next data will be stored at 00FFFFh. However,
the current mapping provides no RAM there.
>REGISTER SSB F8↵
sets the system stack pointer anywhere within page 8;
>GO FE0000↵
© FUJITSU Mikroelektronik GmbH 1996
FUJITSU MB90675-Evaluation Board - User Manual
Watch.Cnt Act.(Symbol)
------ --
IP
FP
RW0
0000 0000 0000 0000 0000 0000 0000 0000
DTB
ADB
DPR
00
00
01
*
RW1
RW2
RW3
RW4
USB
USP
SSB
SSP
00 0000
00 0000
RW5
RW6
RW7
PCB
PC
FC 0042
- 47 -

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90675 series

Table of Contents