Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/08/04 15:03
Read: times


 
#72082 - RE: Using P0 for LCD along with 64K Ext. RAM
Responding to: ???'s previous message
well,

Asume we have connected 573 latch:
- its input D0...D7 to P0;
- its output to A8...A15;
- load enable (E) to a pin of MCU (let say, P1.4);
- output enable (/OE) to GND.

Now in your original program you have something like:
MOVX DPTR,#RAM_ADDR
MOVX  A,@DPTR

now you modify it to:
MOV P0,#HIGH(RAM_ADDR)  ; i.e.: MOV P0,DPH
SETB P1.4               ; load to latch enable
CLR  P1.4               ; lock A8...A15 into latch
MOV  R0,#LOW(RAM_ADDR)  ; i.e.: MOV R0,DPL
MOV  P0,#0xFF           ; prepare as input
MOVX A,@R0


This way, your RAM looks like 256 pages of 256 bytes on each. You may not load high byte of address as long as you do not come over page boundaries. If you come to another page then you must reload latch again with new value (high byte of address).
Note: for such scheme, P0 must have external pull-up resistors. They are required anyway for access LCD.

Regards,
Oleg

List of 39 messages in thread
TopicAuthorDate
Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
   RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
      Ignore above, corrected version here            01/01/70 00:00      
         RE: Ignore above, corrected version here            01/01/70 00:00      
            RE: Ignore above, corrected version here            01/01/70 00:00      
               RE: Ignore above, corrected version here            01/01/70 00:00      
               RE: Ignore above, corrected version here            01/01/70 00:00      
                  RE: Ignore above, corrected version here            01/01/70 00:00      
         RE: Ignore above, corrected version here            01/01/70 00:00      
            RE: Ignore above, corrected version here            01/01/70 00:00      
               the reason for push/pop            01/01/70 00:00      
   RE: Using P0 for LCD along with 64K Ext.            01/01/70 00:00      
      RE: Using P0 for LCD along with 64K Ext.            01/01/70 00:00      
   RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
      RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
      RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
         RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
   RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
      RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
         RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
            RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
            RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
               RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
                  RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
                     RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
                     RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
   RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
   Version 2            01/01/70 00:00      
      RE: Version 2            01/01/70 00:00      
      RE: Version 2            01/01/70 00:00      
         RE: Version 2            01/01/70 00:00      
            RE: Version 2 - Supervisory chip            01/01/70 00:00      
               RE: Version 2 - Supervisory chip            01/01/70 00:00      
      RE: Version 2            01/01/70 00:00      
      Memory maped LCD?            01/01/70 00:00      
         RE: Memory maped LCD?            01/01/70 00:00      
            RE: Memory maped LCD?            01/01/70 00:00      
               RE: Memory maped LCD?            01/01/70 00:00      
                  RE: Memory maped LCD? another way            01/01/70 00:00      

Back to Subject List