Using The Page Pointer For Ram Clear (Page 0, Page 1) - Samsung S3C8275X User Manual

8-bit cmos microcontrollers
Table of Contents

Advertisement

S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X
PROGRAMMING TIP — Using the Page Pointer for RAM Clear (Page 0, Page 1)
LD
SRP
LD
RAMCL0
CLR
DJNZ
CLR
LD
LD
RAMCL1
CLR
DJNZ
CLR
NOTE: You should refer to page 6-39 and use DJNZ instruction properly when DJNZ instruction is used in your program.
PP,#00H
#0C0H
R0,#0FFH
@R0
R0,RAMCL0
@R0
PP,#10H
R0,#0FFH
@R0
R0,RAMCL1
@R0
; Destination ← 0, Source ← 0
; Page 0 RAM clear starts
; R0 = 00H
; Destination ← 1, Source ← 0
; Page 1 RAM clear starts
; R0 = 00H
ADDRESS SPACES
2-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

F8275xF8274xC8278xC8274xF8278x

Table of Contents