p2125vps20 Renesas Electronics Corporation., p2125vps20 Datasheet - Page 543

no-image

p2125vps20

Manufacturer Part Number
p2125vps20
Description
16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
The difference between the erasing procedures in user program mode and user boot mode depends
on whether the MAT is switched or not as shown in figure 19.15.
MAT switching is enabled by writing a specific value to FMATS. Note however that while the
MATs are being switched, the LSI is in an unstable state, e.g. access to a MAT is not allowed until
MAT switching is completed, and if an interrupt occurs, from which MAT the interrupt vector is
read is undetermined. Perform MAT switching in accordance with the description in section 19.6,
Switching between User MAT and User Boot MAT.
Except for MAT switching, the erasing procedure is the same as that in user program mode.
The area that can be executed in the steps of the user procedure program (on-chip RAM and user
MAT) is shown in section 19.4.4, Storable Areas for Procedure Program and Program Data.
19.4.4
In the descriptions in the previous section, the storable areas for the programming/erasing
procedure programs and program data are assumed to be in the on-chip RAM. However, the
procedure programs and program data can be stored in and executed from other areas, such as part
of flash memory which is not to be programmed or erased.
(1)
1. The on-chip programming/erasing program is downloaded from the address in the on-chip
2. The on-chip programming/erasing program will use 128 bytes at the maximum as a stack. So,
3. Download by setting the SCO bit to 1 will lead to switching of the MATs. Therefore, if this
4. The flash memory is accessible until the start of programming or erasing, that is, until the
5. Since flash memory is not accessible during programming/erasing processing, programs
RAM specified by FTDAR, therefore, this area is not available for use.
make sure that this area is allocated.
operation is used, it should be executed from the on-chip RAM.
result of downloading has been determined. The required procedure programs, NMI handling
vector, and NMI handling routine should be transferred to the on-chip RAM before
programming/erasing of the flash memory starts.
downloaded to the on-chip RAM are executed. The procedure programs that initiate
programming/erasing processing, and execution areas for the NMI interrupt vector table and
NMI interrupt handling program must be stored in on-chip RAM.
Conditions that Apply to Programming/Erasing
Storable Areas for Procedure Program and Program Data
Section 19 Flash Memory (0.18-µm F-ZTAT Version)
Rev. 1.00 Sep. 21, 2006 Page 505 of 658
REJ09B0310-0100

Related parts for p2125vps20