Board Initialization - Rabbit Core RCM3700 User Manual

C-programmable core module with ethernet, serial flash, and enhanced software
Hide thumbs Also See for Core RCM3700:
Table of Contents

Advertisement

5.2.1 Board Initialization

void brdInit (void);
Call this function at the beginning of your program. This function initializes Parallel Ports A through G
for use with the RCM3700 Prototyping Board or the RCM3720 Prototyping Board.
The brdInit function is set up to a default I/O configuration based on the RabbitCore module detected
at compile time:
• Any RCM3700 RabbitCore module (except the RCM3720) will have its I/O ports configured for an
RCM3700 Prototyping Board.
• An RCM3720 RabbitCore module will have its I/O ports configured for an RCM3720 Prototyping
Board.
You may override these default settings to run an RCM3720 RabbitCore module on the RCM3700 Proto-
typing Board or to run another RCM3700 RabbitCore module on the RCM3720 Prototyping Board by
adding the following macro to the program you will be running.
To run an RCM3720 RabbitCore module on an RCM3700 Prototyping Board, add the following
macro at the top of the program you will be running.
#define RCM3700_PROTOBOARD
Sample programs that are specifically designed for the RCM3700 Prototyping Board already have
this macro included. When you run a sample program designed for the RCM3700 Prototyping
Board on an RCM3720, a warning message will be displayed to inform you of that. You can disable
the warning by commenting out the line indicated by the compiler.
• To run an RCM3700 RabbitCore module (other than the RCM3720) on an RCM3720 Prototyping
Board, add the following macro at the top of the program you will be running.
#define RCM3720_PROTOBOARD
Summary of Initialization
1. I/O port pins are configured for Prototyping Board operation.
2. Unused configurable I/O are set as tied inputs or outputs.
3. The LCD/keypad module is disabled.
4. RS-485 is not enabled.
5. RS-232 is not enabled.
6. The IrDA transceiver is disabled.
7. LEDs are off.
8. The A/D converter is reset and SCLKB is to 57,600 bps (RCM3700 Prototyping Board only).
9. The A/D converter calibration constants are read (this function cannot run in RAM) (RCM3700
Prototyping Board only).
10. Ethernet select is disabled.
11. Serial flash select is disabled.
CAUTION: Pin PB7 is connected as both switch S2 and as an external I/O bus on the RCM3700
Prototyping Board. Do not use S2 when the LCD/keypad module is installed.
CAUTION: Pins PC1 and PG2 are tied together, and pins PC3 and PG3 are tied together on the
RCM3700 RabbitCore module. Both pairs of pins are connected to the IrDA transceiver and to
the RS-232 transceiver via serial ports on the RCM3700 Prototyping Board. Do not enable both
transceivers on the RCM3700 Prototyping Board at the same time.
RETURN VALUE
None.
RabbitCore RCM3700 User's Manual
41

Advertisement

Table of Contents
loading

Table of Contents