27.06.2013 Views

Using External Memory with PIC24F/24H/dsPIC33F ... - Microchip

Using External Memory with PIC24F/24H/dsPIC33F ... - Microchip

Using External Memory with PIC24F/24H/dsPIC33F ... - Microchip

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PARTIALLY MULTIPLEXED MODE<br />

In Partially Multiplexed mode, the lower address byte<br />

lines are multiplexed <strong>with</strong> the PMD pins. The<br />

higher address byte lines are on the PMA pins.<br />

The PMA0 pin becomes the PMALL pin; this latches<br />

the lower address byte. Therefore, seven pins<br />

(PMA) are available (free from the PMP module)<br />

for other purposes. Figure 5 illustrates the interface of<br />

a 32K x 8-bit memory device <strong>with</strong> lower address byte<br />

lines multiplexed <strong>with</strong> data lines. Figure 6 provides the<br />

timing diagram. In the Partially Multiplexed mode, each<br />

read and write operation takes two instruction cycles.<br />

AN1210<br />

Table 5 provides the register configurations for the<br />

associated registers.<br />

To use the APIs provided <strong>with</strong> this application note for<br />

this configuration, uncomment the following lines in the<br />

MIDefn.h file:<br />

#define Single32KBChip<br />

#define LowAddressDataMux<br />

FIGURE 5: 32K x 8-BIT MEMORY DEVICE INTERFACE USING PARTIALLY MULTIPLEXED MODE<br />

<strong>PIC24F</strong><br />

PMD<br />

PMALL<br />

PMA<br />

PMCS2<br />

PMRD<br />

PMWR<br />

A<br />

373<br />

D<br />

A<br />

<strong>Memory</strong><br />

© 2008 <strong>Microchip</strong> Technology Inc. DS01210A-page 9<br />

D<br />

CE<br />

OE<br />

WR<br />

Address Bus<br />

Data Bus<br />

Control Lines<br />

Address/Data Multiplexed

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!