60 likes | 242 Views
The Silicon Laboratories C8051F020. Enhanced 8051 Part 1 External RAM. Memory Interface. address. data. CPU. Memory. control. On-chip “External” RAM. “external” RAM accessed with movx instruction. Can add MORE memory Interfaced using External Data Memory Bus. Memory Expansion.
E N D
The Silicon Laboratories C8051F020 Enhanced 8051 Part 1 External RAM ECE/CS-352: Embedded Microcontroller Systems
Memory Interface address data CPU Memory control ECE/CS-352: Embedded Microcontroller Systems
On-chip “External” RAM “external” RAM accessed with movx instruction Can add MORE memory Interfaced using External Data Memory Bus ECE/CS-352: Embedded Microcontroller Systems
Memory Expansion Can add more external RAM port 4 implements control lines ports 5 and 6 implement address bus port 7 implements data bus ECE/CS-352: Embedded Microcontroller Systems
Using External RAM • Used to hold large data sets • Accessed with movx instruction • MOVX A, @Ri Move external data to A register • MOVX @Ri, A Move A to external data (8-bit address) • MOVX A, @DPTR Move external data (16-bit address) to A • MOVX @DPTR, A Move A to external data (16-bit address) ECE/CS-352: Embedded Microcontroller Systems
Points to Remember • Remember that the data pointer can be incremented, but not decremented. • Always remember to setup the DPTR with the location to be written to: • mov DPTR, #0100h • If using a register Ri, only R0 or R1 can be used. ECE/CS-352: Embedded Microcontroller Systems