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

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 Programming One Byte
This program uses the following registers:
R0H: Used for erase block specification.
R1H: Stores programming data.
R1L: Stores read data.
R3:
R4:
R5:
R6L: Used for the program-verify fail count.
Arbitrary data can be programmed at an arbitrary address by setting the R3 (programming address)
and R1H (programming data) values.
The values of #a and #b depend on the operating frequency. They should be set as indicated in
table 6.12.
FLMCR:
EBR1:
EBR2:
TCSRW:
TCW:
PRGM:
PRGMS:
LOOP1:
Stores the programming address. Valid address specifications are H'0000 to H'EF7F.
Used for program and program-verify loop counter value setting. Also stores register set
values.
Used for program loop counter value setting.
.EQU
.EQU
.EQU
.EQU
.EQU
.ALIGN 2
MOV.B
MOV.B
MOV.B
MOV.W
MOV.B
INC
MOV.W
MOV.B
MOV.B
MOV.B
MOV.B
MOV.W
BSET
SUBS
MOV.W
BNE
BCLR
MOV.B
MOV.B
MOV.B
BSET
H'FF80
H'FF82
H'FF83
H'FFBE
H'FFBF
#H'**,
R0H,
#H'00,
#H'a,
R1H,
R6L
#H'FE5A,
R4L,
R4H,
#H'36,
R4L,
R5,
#0,
#1,
R4,
LOOP1
#0,
#H'50,
R4L,
#H'b,
#2,
R0H
@EBR*:8
R6L
R5
@R3
R4
@TCSRW:8 ;
@TCW:8
R4L
@TCSRW:8 ;
R4
@FLMCR:8 ;
R4
R4
@FLMCR:8 ;
R4L
@TCSRW:8 ;
R4H
@FLMCR:8 ;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
Set EBR
Program-verify fail count
Set program loop counter
Dummy write
Program-verify fail counter + 1
Start watchdog timer
Set program loop counter
Set P bit
Wait loop
Clear P bit
Stop watchdog timer
Set program-verify fail counter
Set PV bit
*
R6L
133

Related parts for HD6433640