HD6433640 HITACHI [Hitachi Semiconductor], HD6433640 Datasheet - Page 151

no-image

HD6433640

Manufacturer Part Number
HD6433640
Description
H8/3644 Series Hardware Manual
Manufacturer
HITACHI [Hitachi Semiconductor]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HD6433640RA78H
Manufacturer:
HITACHI/日立
Quantity:
20 000
Part Number:
HD6433640RB90H
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Sample Program for Erasing Multiple Blocks
This program uses the following registers:
R0:
R1H: Used to test bits 8 to 11 of R0. Stores read data; used in dummy write.
R1L: Used to test bits 0 to 11 of R0.
R2:
R3:
R4:
R5:
R6L: Used for prewrite-verify and erase-verify fail count.
Arbitrary blocks can be erased by setting bits in R0. R0 settings should be made by writing with a
word transfer instruction.
A bit map of R0 and a sample setting for erasing specific blocks are shown below.
Note: Bits 15 to 12 should be cleared to 0.
Example: To erase blocks LB2, SB7, and SB0
R0 is set as follows:
The values of #a, #b, #c, #d, and #e in the program depend on the operating frequency. They
should be set as indicated in tables 6.12 and 6.13.
142
MOV.W
MOV.B
MOV.B
Bit:
R0
Bit:
R0
Used for erase block specification (set as explained below). Also stores address used in
prewrite and erase-verify.
Specifies address where address used in prewrite and erase-verify is stored.
Stores address used in prewrite and erase-verify.
Stores last address of block to be erased.
Used for prewrite and erase loop counter value setting.
15
15
0
#H'0481, R0
R0H,
R0L,
14
14
0
Corresponds to EBR1
Corresponds to EBR1
13
13
0
@EBR1
@EBR2
12
— LB3 LB2 LB1 LB0 SB7 SB6 SB5 SB4 SB3 SB2 SB1 SB0
12
— LB3 LB2 LB1 LB0 SB7 SB6 SB5 SB4 SB3 SB2 SB1 SB0
0
11
11
0
10
10
1
9
9
0
8
8
0
7
7
1
6
6
0
Corresponds to EBR2
Corresponds to EBR2
5
5
0
4
4
0
3
3
0
2
2
0
1
1
0
0
0
1

Related parts for HD6433640