User manual

RC200/203 Manual
www.celoxica.com Page 82
Parameters: None.
Timing: 2 cycles if CPLD is ready for use, otherwise, undetermined.
Description:
You need to call this macro in parallel with
RC200CPLDRun(), and before accesses to the CPLD. The
macro waits until the CPLD is ready and then sets the CPLD
internal mode to normal operation. Refer to the RC200
Hardware and Installation Manual for more details.
Example:
par
{
RC200CPLDRun();
seq
{
RC200CPLDEnable();
// code for CPLD accesses
...
}
}
5.19 FPGA / parallel port communication
The Send Protocol allows you to send data between the FPGA and your PC via the parallel
port.
To write data to or read data from the host PC:
1. Call
RC200CPLDRun() and RC200CPLDEnable().
2. Call RC200SendProtocolEnable() to enable the Send Protocol driver.
3. Call
RC200SendProtocolWrite() or RC200SendProtocolRead().
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 proc RC200SendProtocolEnable();