5.2.3 Digital I/O
The RCM3700 was designed to interface with other systems, and so there are no drivers
written specifically for the I/O. The general Dynamic C read and write functions allow
you to customize the parallel I/O to meet your specific needs. For example, use
WrPortI(PEDDR, &PEDDRShadow, 0x00);
to set all the Port E bits as inputs, or use
WrPortI(PEDDR, &PEDDRShadow, 0xFF);
to set all the Port E bits as outputs.
When using the external I/O bus on the Rabbit 3000 chip, add the line
#define PORTA_AUX_IO
to the beginning of any programs using the external I/O bus.
The sample programs in the Dynamic C
folders provide further examples.
RabbitCore RCM3700 User's Manual
// required to enable external I/O bus
SAMPLES/RCM3700
and the
SAMPLES/RCM3720
58