Hardware description
1. Call
RC200CPLDRun()
and
RC200CPLDEnable()
.
2. Call
RC200SendProtocolEnable()
to enable the Send Protocol driver.
3. Call
RC200SendProtocolWrite()
or
RC200SendProtocolRead()
.
2
Do not use the Send Protocol macros at the same time as the SmartMedia macros.
5.19.1 Enabling the Send Protocol driver
extern macro pro
0SendProtocolEnable();
rs:
Description:
ny calls to
RC200SendProtocolWrite()
or
RC200SendProtocolRead()
.
o proc RC200S
tocolDisable();
rs:
cription:
Disables the Send Protocol driver.
o pr
rs:
Description:
he
You must call
RC200SendProtocolEnable()
before using this macro.
extern macro proc RC200SendProtocolRead(
DataPtr
);
c RC20
Paramete
None.
Timing:
1 clock cycle.
Enables the Send Protocol driver. You cannot use this at the same time as the
RC200 SmartMedia macros.
You need to call
RC200CPLDRun()
and
RC200CPLDEnable()
before calling this
macro.
You must call this macro before a
5.19.2 Disabling the Send Protocol driver
extern macr
endPro
Paramete
None.
Timing:
1 clock cycle.
Des
5.19.3 Writing data to the host PC
extern macr
oc
RC200SendProtocolWrite(
Data
);
Paramete
Data
: Data of type
unsigned 8
to be sent to the host PC.
Timing:
Variable. Depends on whether the host PC has read the previous data item.
Sends one byte of data from the FPGA to the host PC. This macro will block if t
previous data item written has not yet been read by the host.
5.19.4 Reading data from the host PC
www.celoxica.com
Page 70