Reading; The Program Procedure In User Program Mode - Samsung S3F80P5X User Manual

S3f80p5 microcontrollers
Table of Contents

Advertisement

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
LD
LOOP:
LDC
INC
CP
JP
14-16
R2,#03H
; Load flash memory's upper address
; to upper register of pair working register
R3,#00H
; Load flash memory's lower address
; to lower register of pair working register
R0,@RR2
; Read data from flash memory location
; (Between 300H and 3FFH)
R3
R3,#0FFH
NZ,LOOP
S3F80P5_UM_ REV1.00

Advertisement

Table of Contents
loading

Table of Contents