Using External Memory with PIC24F/24H/dsPIC33F ... - Microchip
Using External Memory with PIC24F/24H/dsPIC33F ... - Microchip
Using External Memory with PIC24F/24H/dsPIC33F ... - Microchip
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
MemByteWrite API<br />
The API, MemByteWrite, writes a byte to the specified<br />
address. The inputs for this API are the memory<br />
address (24 bits) where the data has to be written and<br />
the data (8 bits) that needs to be written. This API<br />
returns nothing. Figure 22 illustrates the flow of the<br />
MemByteWrite API.<br />
FIGURE 22: MemByteWrite API FLOWCHART<br />
MemByteWrite<br />
Load the address_low to Address register (PMADDR) and<br />
address_high to Address High register.<br />
Enable the chip select port of the respective chip select.<br />
Is PMP<br />
Busy?<br />
Write PMP Data<br />
Return<br />
AN1210<br />
© 2008 <strong>Microchip</strong> Technology Inc. DS01210A-page 29<br />
No<br />
Yes