External Peripheral Interface Library
The External Peripheral Interface (EPI) is a high-speed parallel bus for external peripherals or memory. It has several modes of operation to interface gluelessly to many types of external devices.
The External Peripheral Interface is similar to a standard microprocessor address/data bus, except that it must typically be connected to just one type of external device.
Enhanced capabilities include uDMA support, clocking control and support for external FIFO buffers.
The mikroPascal PRO for ARM provides a library for working with External Peripheral Interface.
Library Routines
- EPI_WorkaroundWordWrite
- EPI_WorkaroundWordRead
- EPI_WorkaroundHWordWrite
- EPI_WorkaroundHWordWriteArrayInc
- EPI_WorkaroundHWordWriteArrayIncByStep
- EPI_WorkaroundHWordWriteArrayDec
- EPI_WorkaroundHWordWriteArrayDecByStep
- EPI_WorkaroundHWordRead
- EPI_WorkaroundByteWrite
- EPI_WorkaroundByteRead
- EPI_ModeSet
- EPI_DividerSet
- EPI_DividerCSSet
- EPI_DMATxCount
- EPI_ConfigSDRAMSet
- EPI_ConfigHB8Set
- EPI_ConfigHB16Set
- EPI_ConfigHB8CSSet
- EPI_ConfigHB16CSSet
- EPI_ConfigHB8TimingSet
- EPI_ConfigHB16TimingSet
- EPI_PSRAMConfigRegSet
- EPI_PSRAMConfigRegRead
- EPI_PSRAMConfigRegGetNonBlocking
- EPI_PSRAMConfigRegGet
- EPI_ConfigGPModeSet
- EPI_AddressMapSet
- EPI_NonBlockingReadConfigure
- EPI_NonBlockingReadStart
- EPI_NonBlockingReadStop
- EPI_NonBlockingReadCount
- EPI_NonBlockingReadAvail
- EPI_NonBlockingReadGet32
- EPI_NonBlockingReadGet16
- EPI_NonBlockingReadGet8
- EPI_FIFOConfig
- EPI_WriteFIFOCountGet
- EPI_IntEnable
- EPI_IntDisable
- EPI_IntStatus
- EPI_IntErrorStatus
- EPI_IntErrorClear
- EPI_SDRAM_Init
- EPI_SDRAM_Init_Advanced
- EPI_SDRAM_Write
- EPI_SDRAM_NonBlockingReadConfig
- EPI_SDRAM_NonBlockingReadStart
- EPI_SDRAM_NonBlockingReadStop
- EPI_SDRAM_NonBlockingReadGet
EPI_WorkaroundWordWrite
| Prototype |
procedure EPI_WorkaroundWordWrite(addr : ^dword; value : dword); |
|---|---|
| Description |
This function writes a 32-bit value into external code address space. |
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_WorkaroundWordRead
| Prototype |
function EPI_WorkaroundWordRead(addr : ^dword) : dword; |
|---|---|
| Description |
This function reads a 32-bit value from external code address space. |
| Parameters |
|
| Returns |
A value read from the source address. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_WorkaroundHWordWrite
| Prototype |
procedure EPI_WorkaroundHWordWrite(addr : ^dword; value : word); |
|---|---|
| Description |
This function writes a 16-bit value into external code address space. |
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_WorkaroundHWordWriteArrayInc
| Prototype |
procedure EPI_WorkaroundHWordWriteArrayInc(dest : ^word; source : ^word; uicount : dword); |
|---|---|
| Description |
This function writes an array of 16-bit values into external code address space.
|
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_WorkaroundHWordWriteArrayIncByStep
| Prototype |
procedure EPI_WorkaroundHWordWriteArrayIncByStep(dest : ^dword; source : ^dword; uicount : word; step : word); |
|---|---|
| Description |
This function writes an array of 16-bit values into external code address space.
|
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_WorkaroundHWordWriteArrayDec
| Prototype |
procedure EPI_WorkaroundHWordWriteArrayDec(dest : ^word; source : ^word; uicount : word); |
|---|---|
| Description |
This function writes an array of 16-bit values into external code address space.
|
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_WorkaroundHWordWriteArrayDecByStep
| Prototype |
procedure EPI_WorkaroundHWordWriteArrayDecByStep(dest : ^word; source : ^dword; uicount : word; step : word); |
|---|---|
| Description |
This function writes an array of 16-bit values into external code address space.
|
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_WorkaroundHWordRead
| Prototype |
function EPI_WorkaroundHWordRead(addr : ^word): word; |
|---|---|
| Description |
This function reads a 16-bit value from external code address space. |
| Parameters |
|
| Returns |
16-bit value from the source address. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_WorkaroundByteWrite
| Prototype |
procedure EPI_WorkaroundByteWrite(addr : ^byte; value : byte); |
|---|---|
| Description |
This function writes an 8-bit value to external code address space. |
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_WorkaroundByteRead
| Prototype |
function EPI_WorkaroundByteRead(addr : ^byte) : byte; |
|---|---|
| Description |
This function reads a 8-bit value from external code address space. |
| Parameters |
|
| Returns |
8-bit value from the source address. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_ModeSet
| Prototype |
procedure EPI_ModeSet(mode : dword); |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
This functions sets the operating mode of the EPI module. |
||||||||||||
| Parameters |
|
||||||||||||
| Returns |
Nothing. |
||||||||||||
| Requires |
Nothing. |
||||||||||||
| Notes |
None. |
EPI_DividerSet
| Prototype |
procedure EPI_DividerSet(divider : dword); |
|---|---|
| Description |
This function sets the clock divider(s) that is used to determine the clock rate of the external interface. |
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_DividerCSSet
| Prototype |
procedure EPI_DividerCSSet(cs : dword; divider : dword); |
|---|---|
| Description |
This function sets the clock divider(s) for the specified CS that is used to determine the clock rate of the external interface. |
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_DMATxCount
| Prototype |
procedure EPI_DMATxCount(count : dword); |
|---|---|
| Description |
This function sets the transfer count for uDMA transmit operations on EPI. A non-zero transmit count in combination with a FIFO threshold trigger asserts an EPI uDMA transmit. |
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_ConfigSDRAMSet
| Prototype |
procedure EPI_ConfigSDRAMSet(config : dword; refresh : dword); |
||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
This function is used to configure the SDRAM interface, when the SDRAM mode is chosen with the function EPI_ModeSet(). |
||||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||||
| Returns |
Nothing. |
||||||||||||||||||||||||||
| Requires |
Nothing. |
||||||||||||||||||||||||||
| Notes |
None. |
EPI_ConfigHB8Set
| Prototype |
procedure EPI_ConfigHB8Set(config : dword; maxWait : dword); |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Configures the interface for Host-bus 8 operation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Returns |
Nothing. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Requires |
Nothing. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Notes |
None. |
EPI_ConfigHB16Set
| Prototype |
procedure EPI_ConfigHB16Set(config : dword; maxWait : dword); |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
This function sets the operating mode of the EPI module. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Returns |
Nothing. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Requires |
Nothing. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Notes |
None. |
EPI_ConfigHB8CSSet
| Prototype |
procedure EPI_ConfigHB8CSSet(cs : dword; config : dword); |
||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Sets the individual chip select configuration for the Host-bus 8 interface. |
||||||||||||||||||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||||||||||||||||||
| Returns |
Nothing. |
||||||||||||||||||||||||||||||||||||||||
| Requires |
Nothing. |
||||||||||||||||||||||||||||||||||||||||
| Notes |
None. |
EPI_ConfigHB16CSSet
| Prototype |
procedure EPI_ConfigHB16CSSet(cs : dword; config : dword); |
||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Sets the individual chip select configuration for the Host-bus 16 interface. |
||||||||||||||||||||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||||||||||||||||||||
| Returns |
Nothing. |
||||||||||||||||||||||||||||||||||||||||||
| Requires |
Nothing. |
||||||||||||||||||||||||||||||||||||||||||
| Notes |
None. |
EPI_ConfigHB8TimingSet
| Prototype |
procedure EPI_ConfigHB8TimingSet(cs : dword; config : dword); |
||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Sets the individual chip select timing settings for the Host-bus 8 interface. |
||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||
| Returns |
Nothing. |
||||||||||||||||||||||||
| Requires |
Nothing. |
||||||||||||||||||||||||
| Notes |
None. |
EPI_ConfigHB16TimingSet
| Prototype |
procedure EPI_ConfigHB16TimingSet(cs : dword; config : dword); |
||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Sets the individual chip select timing settings for the Host-bus 16 interface. |
||||||||||||||||||||||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||
| Returns |
Nothing. |
||||||||||||||||||||||||||||||||||||||||||||
| Requires |
Nothing. |
||||||||||||||||||||||||||||||||||||||||||||
| Notes |
None. |
EPI_PSRAMConfigRegSet
| Prototype |
procedure EPI_PSRAMConfigRegSet(cs : dword; cr : dword); |
|---|---|
| Description |
Sets the PSRAM configuration register. |
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_PSRAMConfigRegRead
| Prototype |
procedure EPI_PSRAMConfigRegRead(cs : dword); |
|---|---|
| Description |
Requests a configuration register read from the PSRAM. |
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_PSRAMConfigRegGetNonBlocking
| Prototype |
function EPI_PSRAMConfigRegGetNonBlocking(cs : dword; cr : ^dword) : byte; |
|---|---|
| Description |
Retrieves the contents of the EPI PSRAM configuration register. |
| Parameters |
|
| Returns |
|
| Requires |
Nothing. |
| Notes |
None. |
EPI_PSRAMConfigRegGet
| Prototype |
function EPI_PSRAMConfigRegGet(cs : dword) : dword; |
|---|---|
| Description |
Retrieves the contents of the EPI PSRAM configuration register. |
| Parameters |
|
| Returns |
EPI PSRAM configuration register contents. Only the lower 16 bits are valid on a read. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_ConfigGPModeSet
| Prototype |
procedure EPI_ConfigGPModeSet(config : dword; frameCount : dword; maxWait : dword); |
||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Configures the interface for general-purpose mode operation. |
||||||||||||||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||||||||||||||
| Returns |
Nothing. |
||||||||||||||||||||||||||||||||||||
| Requires |
Nothing. |
||||||||||||||||||||||||||||||||||||
| Notes |
None. |
EPI_AddressMapSet
| Prototype |
procedure EPI_AddressMapSet(map : dword); |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Configures the address map for the external interface. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Returns |
Nothing. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Requires |
Nothing. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Notes |
None. |
EPI_NonBlockingReadConfigure
| Prototype |
procedure EPI_NonBlockingReadConfigure(channel : dword; dataSize : dword; address : dword); |
||||||||
|---|---|---|---|---|---|---|---|---|---|
| Description |
Configures a non-blocking read transaction. |
||||||||
| Parameters |
|
||||||||
| Returns |
Nothing. |
||||||||
| Requires |
Nothing. |
||||||||
| Notes |
None. |
EPI_NonBlockingReadStart
| Prototype |
procedure EPI_NonBlockingReadStart(channel : dword; count : dword); |
|---|---|
| Description |
Starts a non-blocking read transaction. Once this function is called, the EPI module begins reading data from the external device into the read FIFO. |
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_NonBlockingReadStop
| Prototype |
procedure EPI_NonBlockingReadStop(channel : dword); |
|---|---|
| Description |
This function cancels a non-blocking read transaction that is already in progress. |
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_NonBlockingReadCount
| Prototype |
function EPI_NonBlockingReadCount(channel : dword) : dword; |
|---|---|
| Description |
This function gets the remaining count of items for a non-blocking read transaction. |
| Parameters |
|
| Returns |
The number of items remaining in the non-blocking read transaction. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_NonBlockingReadAvail
| Prototype |
function EPI_NonBlockingReadAvail() : dword; |
|---|---|
| Description |
This function gets the number of items that are available to read in the read FIFO. |
| Parameters |
None. |
| Returns |
The number of items available to read in the read FIFO. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_NonBlockingReadGet32
| Prototype |
function EPI_NonBlockingReadGet32(count : dword; buf : ^dword) : dword; |
|---|---|
| Description |
Read available data from the read FIFO, as 32-bit data items. |
| Parameters |
|
| Returns |
The number of items read from the FIFO. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_NonBlockingReadGet16
| Prototype |
function EPI_NonBlockingReadGet16(count : dword; buf : ^dword) : dword; |
|---|---|
| Description |
Read available data from the read FIFO, as 16-bit data items. |
| Parameters |
|
| Returns |
The number of items read from the FIFO. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_NonBlockingReadGet8
| Prototype |
function EPI_NonBlockingReadGet8(count : dword; buf : ^dword) : dword; |
|---|---|
| Description |
Read available data from the read FIFO, as 8-bit data items. |
| Parameters |
|
| Returns |
The number of items read from the FIFO. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_FIFOConfig
| Prototype |
procedure EPI_FIFOConfig(config : dword); |
||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
This function configures the FIFO trigger levels and error generation. |
||||||||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||||||||
| Returns |
Nothing. |
||||||||||||||||||||||||||||||
| Requires |
Nothing. |
||||||||||||||||||||||||||||||
| Notes |
None. |
EPI_WriteFIFOCountGet
| Prototype |
function EPI_WriteFIFOCountGet() : dword; |
|---|---|
| Description |
Reads the number of empty slots in the write transaction FIFO. |
| Parameters |
Nothing. |
| Returns |
The number of empty slots in the transaction FIFO. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_IntEnable
| Prototype |
procedure EPI_IntEnable(intFlags : dword); |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Enables EPI interrupt sources. |
||||||||||||
| Parameters |
|
||||||||||||
| Returns |
None. |
||||||||||||
| Requires |
Nothing. |
||||||||||||
| Notes |
None. |
EPI_IntDisable
| Prototype |
procedure EPI_IntDisable(intFlags : dword); |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Disables EPI interrupt sources. |
||||||||||||
| Parameters |
|
||||||||||||
| Returns |
None. |
||||||||||||
| Requires |
Nothing. |
||||||||||||
| Notes |
None. |
EPI_IntStatus
| Prototype |
function EPI_IntStatus(bMasked : byte) : dword; |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Gets the EPI interrupt status. |
||||||||||||
| Parameters |
|
||||||||||||
| Returns |
|
||||||||||||
| Requires |
Nothing. |
||||||||||||
| Notes |
None. |
EPI_IntErrorStatus
| Prototype |
function EPI_IntErrorStatus(bMasked : byte) : dword; |
||||||||
|---|---|---|---|---|---|---|---|---|---|
| Description |
Gets the EPI error interrupt status. |
||||||||
| Parameters |
None. |
||||||||
| Returns |
|
||||||||
| Requires |
Nothing. |
||||||||
| Notes |
None. |
EPI_IntErrorClear
| Prototype |
procedure EPI_IntErrorClear(errFlags : dword); |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Clears pending EPI error sources. |
||||||||||||
| Parameters |
|
||||||||||||
| Returns |
None. |
||||||||||||
| Requires |
Nothing. |
||||||||||||
| Notes |
None. |
EPI_SDRAM_Init
| Prototype |
procedure EPI_SDRAM_Init(); |
|---|---|
| Description |
Initialize SDRAM interface with default settings :
|
| Parameters |
None. |
| Returns |
None. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_SDRAM_Init_Advanced
| Prototype |
procedure EPI_SDRAM_Init_Advanced(sdramConf : dword; addressConf : dword; readSize : dword); |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Description |
Initialize SDRAM interface with advanced settings. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Returns |
None. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Requires |
Nothing. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Notes |
None. |
EPI_SDRAM_Write
| Prototype |
function EPI_SDRAM_Write(wBuff : ^word; count : dword; address : dword) : dword; |
|---|---|
| Description |
Write data to SDRAM. |
| Parameters |
|
| Returns |
Number of elements wrritten in SDRAM. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_SDRAM_NonBlockingReadConfig
| Prototype |
procedure EPI_SDRAM_NonBlockingReadConfig(dataSize : dword; address : dword); |
||||||||
|---|---|---|---|---|---|---|---|---|---|
| Description |
This function is used to configure a non-blocking read channel for a transaction. Two channels are available which can be used in a ping-pong method for continuous reading.
Once configured, the non-blocking read is started by calling EPI_SDRAM_NonBlockingReadStart(). If the addresses to be read from the device are in a sequence,
|
||||||||
| Parameters |
|
||||||||
| Returns |
Nothing. |
||||||||
| Requires |
Nothing. |
||||||||
| Notes |
None. |
EPI_SDRAM_NonBlockingReadStart
| Prototype |
procedure EPI_SDRAM_NonBlockingReadStart(dataCount : dword); |
|---|---|
| Description |
This function starts a non-blocking read that was previously configured with the function EPI_SDRAM_NonBlockingReadConfig().
The EPI stops reading when the FIFO fills up and resumes reading when the application drains the FIFO,
Once a read transaction is completed and the FIFO drained, another transaction can be started from the next address by calling this function again. |
| Parameters |
|
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_SDRAM_NonBlockingReadStop
| Prototype |
procedure EPI_SDRAM_NonBlockingReadStop(); |
|---|---|
| Description |
This function cancels a non-blocking read transaction that is already in progress. |
| Parameters |
None. |
| Returns |
Nothing. |
| Requires |
Nothing. |
| Notes |
None. |
EPI_SDRAM_NonBlockingReadGet
| Prototype |
function EPI_SDRAM_NonBlockingReadGet(readType : dword; count : dword; buff : ^word) : dword; |
|---|---|
| Description |
This function start an EPI SDRAM non-blocking read operation. |
| Parameters |
|
| Returns |
Number of items read from the FIFO. |
| Requires |
Nothing. |
| Notes |
None. |