S3F80JB

EMBEDDED FLASH MEMORY INTERFACE

 

 

READING

The read operation starts by ‘LDC’ instruction.

The program procedure in user program mode

1.Load a flash memory upper address into upper register of pair working register.

2.Load a flash memory lower address into lower register of pair working register.

3.Load receive data from flash memory location area on ‘LDC’ instruction by indirectly addressing mode

PROGRAMMING TIP — Reading

 

 

 

 

 

 

 

LD

R2,#03H

; Load flash memory’s upper address

 

 

 

; to upper register of pair working register

 

LD

R3,#00H

; Load flash memory’s lower address

 

 

 

; to lower register of pair working register

LOOP:

LDC

R0,@RR2

; Read data from flash memory location

 

INC

R3

; (Between 300H and 3FFH)

 

 

 

CP

R3,#0FFH

 

 

JP

NZ,LOOP

 

 

 

 

 

 

 

 

 

 

 

 

 

15-17

Page 296
Image 296
Samsung S3F80JB manual Programming TIP Reading, Loop LDC, Nz,Loop