Toshiba H1 Series Data Book page 264

32bit micro controller tlcs-900/h1 series
Table of Contents

Advertisement

3.11.6
An Example of Accessing NAND Flash of MLC Type
as 518byte)
1.
Initialization
;
; ***** Initialize NDFC *****
;
;
2.
Write
Writing valid data
; ***** Write valid data*****
;
Generating ECC → Reading ECC
; ***** Read ECC *****
;
;
;
;
;
;
Conditions: 16-bit bus, CE1, MLC, 2048 (2112) bytes/page, Reed-Solomon codes
ld
(ndfmcr1),0007h ; 16-bit bus, Reed-Solomon ECC, SYSCK-ON
ld
(ndfmcr0),5000h ; SPLW1:0=1, SPHW1:0=1
ldw
(ndfmcr0),5008h ; CE1 enable
ldw
(ndfmcr0),50A8h ; WE enable, CLE enable
ldw
(ndfdtr0),0080h
ldw
(ndfmcr0),50C8h ; ALE enable
ldw
(ndfdtr0),00xxh
ldw
(ndfmcr0),508Dh ; Reset ECC code, ECCE enable
ldw
(ndfdtr0),xxxxh
ldw
(ndfmcr0),5008h ; ECC circuit disable
ldw
(ndfmcr0),50A8h ; WE enable, CLE enable
ldw
(ndfdtr0),0080h
ldw
(ndfmcr0),50C8h ; ALE enable
ldw
(ndfdtr0),00xxh
ldw
xxxx,(ndeccrd0)
Read:
D79-64
ldw
xxxx,(ndeccrd1)
Read:
D63-48
ldw
xxxx,(ndeccrd2)
Read:
D47-32
ldw
xxxx,(ndeccrd3)
Read:
D31-16
ldw
xxxx,(ndeccrd4)
Read:
D15-0
92CZ26A-261
(When the valid data is processed
; serial input command
; Address write ( 4 or 5 times)
; Data write
(259-times/:518byte)
(256-times/512byte)
; serial input command
; Address write ( 4 or 5 times)
; Read ECC from internal circuit
; Read ECC from internal circuit
; Read ECC from internal circuit
; Read ECC from internal circuit
; Read ECC from internal circuit
TMP92CZ26A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tlcs-900Tmp92cz26axbg

Table of Contents