beautypg.com

3 the difference from an actual cpu operation – Renesas M16C FAMILY User Manual

Page 71

background image

5 Using the KD

5) RAM monitor

When using RAM monitor, a User Program execution is stopped temporarily.

6) Register reference

When using register reference, a User Program execution is stopped temporarily

and the data of CPU register and SFR is transferred.

7) User Program stop

A User Program stops, a monitor program operates and it waits for next command.

5.5.3 The difference from an actual CPU operation

1) Real time

When opening a RAM monitor window, a User Program execution is stopped

temporarily, RAM is read out and the communication is performed. Since a User

Program is stopped, User Program execution time is prolonged.

2) Reset vector table

A reset vector is rewritten at the routine address which is used for a monitor program,

therefore when referring this area by dump, the value is differenet from the value

which a user sets.

3) Interrupt

Interrupts of Address Match interrupt and Single Step interrupt and BRK instruction

interrupt and DBC interrupt are used by a monitor program, therefore do not use

these interrupts in a User Program.

4) Values after reset

When a microcomputer is reset, a monitor program is operated, therefore when a

program is stopped at the head of a User Program, the CPU register and the SFR

value may differ from the initial value (value after reset) of a microcomputer.

68