Presentation is loading. Please wait.

Presentation is loading. Please wait.

Memory –Random Access Memory Read/Write, volatile –Read-Only Memory Program, non-volatile Programable ROM Erasable PROM –UV EPROM –Electrical EPROM –Flash.

Similar presentations


Presentation on theme: "Memory –Random Access Memory Read/Write, volatile –Read-Only Memory Program, non-volatile Programable ROM Erasable PROM –UV EPROM –Electrical EPROM –Flash."— Presentation transcript:

1

2 Memory –Random Access Memory Read/Write, volatile –Read-Only Memory Program, non-volatile Programable ROM Erasable PROM –UV EPROM –Electrical EPROM –Flash memory –Serial EEPROM

3

4 8051 write to 6264 –A0~A12  / 解碼電路  CS –D0~D7  –WR  8051 read from 6264 –A0~A12  / 解碼電路  CS –RD  –  D0~D7

5 READ –1. CS  –2. A0-A12  –3. RD  –4.  D0-D7 WRITE –1. CS  –2. A0-A12  –3. D0-D7  –4. WR 

6

7 READ –1. CS  –2. A0-A12  –3. RD  –4.  D0-D7 Program

8

9

10 101x xxxx xxxx xxxx 1010 0000 0000 0000 = A000h 1011 1111 1111 1111 = BFFFh 001x xxxx xxxx xxxx 0010 0000 0000 0000 = 2000h 0011 1111 1111 1111 = 3FFFh

11 MOVX @DPTR,A –DPL  P0, DPH  P2 –ALE  –A  P0 –WR  MOVX A,@DPTR –DPL  P0, DPH  P2 –ALE  –RD  –A  P0

12 000x xxxx xxxx xxxx 0000 0000 0000 0000 = 0000h 0001 1111 1111 1111 = 1FFFh 101x xxxx xxxx xxxx 1010 0000 0000 0000 = A000h 1011 1111 1111 1111 = BFFFh

13 Fetch instruction –PC L  P0, PC H  P2 –ALE  –PSEN  –Instruction Register  P0 MOVC A,@A+DPTR –(DPTR+A) L  P0, (DPTR+A) H  P2 –ALE  –PSEN  –A  P0

14 __data unsigned char test_data; __xdata unsigned char test_data; __xdata __at 0x7ffe unsigned int chksum; __idata unsigned char test_data; __code unsigned char test_code=‘A’; bit test_bit;

15 __code __at 0xA000 unsigned char x=‘1’; __xdata __at 0x2000 unsigned char y; y=x;

16

17 __xdata __at 0x3000 unsigned char x[1024]; for(i=0;i<1024;i++) x[i]=i;

18 Stack

19

20

21 110x xxxx xxxx xxxx 1100 0000 0000 0000 = C000h 1101 1111 1111 1111 = DFFFh __xdata __at 0xC000 unsigned char x[8192]; int i; for(i=0;i<8192;<i++) –x[i]=0;


Download ppt "Memory –Random Access Memory Read/Write, volatile –Read-Only Memory Program, non-volatile Programable ROM Erasable PROM –UV EPROM –Electrical EPROM –Flash."

Similar presentations


Ads by Google