Department of Computer Science and Information EngineeringNational Cheng Kung University
HANEL
8051 DATA MEMORY SPACEInterfacing to Large External Memory(cont’)....For example, to access the 20000H – 2FFFFH address space we need the following :
CLR P1.2 ;enable external RAMMOV DPTR,#0 ;startof 64K memory blockCLR P1.0 ;A16 = 0SETB P1.1 ;A17= 1 for 20000H blockMOV A,SBUF ;get data from serial portMOVX @DPTR,AINC DPTR ;next location...