Specifications
RX62N Group Ethernet Transmit and Receive Settings
R01AN0629EJ0101 Rev.1.01 Page 49 of 52
Mar 31, 2011
5. 4BEndian Mode Selection in Sample Program
In the compile options of the RX compiler, big endian is defined as the predefined macro __BIG and little endian as
__LIT. The sample program uses these macros to absorb the difference due to the endian mode selection.
5.1 26BBig Endian Mode
For big-endian operation, make the following settings, and set the Pin3 of SW4 on the Renesas Starter Kit +(product
number: R0K5562N0C000BE) to OFF (MDE=Hi).
• 1. Launch RX Standard Toolchain by selecting Build → RX Standard Toolchain from the HEW toolbar.
• 2. On the CPU tab select Big under Endian, then click OK.
• 3. Build the file once again.
5.2 27BLittle Endian Mode
For little-endian operation, make the following settings, and set the Pin3 of SW4 on the Renesas Starter Kit
+(product number: R0K5562N0C000BE) to ON (MDE=Low).
• 1. Launch RX Standard Toolchain by selecting Build → RX Standard Toolchain from the HEW toolbar.
• 2. On the CPU tab select Little under Endian, then click OK.
• 3. Build the file once again.
6. 5BInterface (MII/RMII) Selection in Sample Program
MII/RMII selection can be accomplished by switching macros. Make the appropriate change to ETH_MODE_SEL,
which is defined in r_ether.h.
6.1 28BMII
As shown below, set ETH_MODE_SEL to ETH_MII_MODE in the r_ether.h file.
#define ETH_MODE_SEL ETH_MII_MODE
6.2 29BRMII
As shown below, set ETH_MODE_SEL to ETH_RMII_MODE in the r_ether.h file. Please note that the Renesas
Starter Kit +(product number: R0K5562N0C000BE) supports the MII (Media Independent Interface) only, and doesn't
support RMII (Reduced Media Independent Interface).
#define ETH_MODE_SEL ETH_RMII_MODE