upd70f3422gj-gae-qs-ax Renesas Electronics Corporation., upd70f3422gj-gae-qs-ax Datasheet - Page 333

no-image

upd70f3422gj-gae-qs-ax

Manufacturer Part Number
upd70f3422gj-gae-qs-ax
Description
32-bit Single-chip Microcontroller
Manufacturer
Renesas Electronics Corporation.
Datasheet
ROM Correction Function (ROMC)
9.2.1 “DBTRAP” ROM correction operation
The “DBTRAP” ROM correction unit compares the address on the V850 fetch
bus (VFB) with the contents of the programmable correction address registers
CORADm. If an address matches, the DBTRAP instruction opcode is put on
the V850 fetch bus instead of the ROM contents. If no address matches, the
ROM contents is passed on the fetch bus as normal.
The DBTRAP exception branches to the DBTRAP/ILGOP exception handler
address 0000 0060
Since the ROM correction routines for all correction channels are invoked at
the DBTRAP exception handler address 0000 0060
has to evaluate first the right correction routine to be executed. This is done by
reading the DBPC register, which holds the address next to the correction
address of CORADm, which has caused the DBTRAP exception. If non of
CORADm matches DBPC - 2, DBTRAP was generated by an illegal opcode
detection event ILGOP. For further details concerning DBTRAP/ILGOP
handling refer to “Exception Trap“ on page 222.
Figure 9-2 outlines a typical program flow for using the “DBTRAP” ROM
correction.
1. If the address CORADm to be corrected and the fetch address of the
2. When the DBTRAP instruction is executed, execution branches to address
3. The DBTRAP evaluation routine identifies the cause of the DBTRAP
4. In case several consecutive ROM instruction are replaced by ROM
5. Return processing is started by the DBRET instruction.
Siemens VDO Preliminary User’s Manual U17566EE1V2UM00
internal ROM memory match, the instruction code fetched from ROM is
replaced by the DBTRAP instruction.
0000 0060
exception and launches either the appropriate ROM correction routine or
the ILGOP handler.
correction code the return address in DBPC must be corrected. It may also
be required to correct some flags in the DBPSW register.
H
.
H
, which comprises the user’s ROM correction instructions.
H
, the exception handler
Chapter 9
333

Related parts for upd70f3422gj-gae-qs-ax