This document describes sample software for host microcomputers (RX66T) mounted on the R-IN32M3
Module Evaluation Board (SEM1320), which is manufactured by Shimafuji Electric Co., Ltd.
2.1 List of specifications ................................................................................................................................ 7
2.2 Appearance of the board ......................................................................................................................... 8
2.4 Features ................................................................................................................................................ 10
2.4.1 Power supply ....................................................................................................................................... 10
2.5.2 LED ...................................................................................................................................................... 14
3.1.1 Overview of the project ........................................................................................................................ 27
3.2 Setup of development environment....................................................................................................... 28
3.2.4 FIT Module .......................................................................................................................................... 36
3.3 How to use ............................................................................................................................................. 43
4.1 GOAL API .............................................................................................................................................. 85
4.2 OS Service Call ..................................................................................................................................... 85
4.3 Motor Sample ........................................................................................................................................ 86
Revision History ............................................................................................................................ 87
This document describes sample software for host microcomputers (RX66T) mounted on theR-IN32M3
Module Evaluation Board (SEMB1320), which is manufactured by Shimafuji Electric Co., Ltd.
RX66T is mounted on this board as the host microcomputer of the R-IN32M3 Module and communicate via
SPI.
Figure 1-1 R-IN32M3 Module Evaluation Board
This board can be connected to an optional inverter board, which is included in "24V Motor Control
Evaluation System for RX23T", to evaluate motor control by industrial Ethernet protocol communication.
Figure 1-2 Photos of this board connected to the Inverter Board
One of the following emulators is required separately to run this sample software.
Table 1-2 Supported emulators
To execute the motor control samples included in this sample software, a 24V inverter board included below,
and a BLDC motor are required. In addition, a separate DC24V stabilized power supply is required.
This board has three method of reset, "Power ON Reset", "Reset by JTAG Emulator", and "Reset by
External Switch". The reset and JTAM diagram of this board shows in Figure 2-5
Figure 2-5 RESET diagram
R12AN0111EJ0204 Rev.2.04 Page 12 of 88
Apr.26.2021
For more information about the R-IN32M3 Module mounted on this board, see the R-IN32M3 Module User's
Manual Hardware Edition (R19UH0122EJ****).
The communication between the R-IN32M3 Module and the MCU is done via 4-wire SPI.
The SPI connection is shown in Figure 2-6. Each signal line in the SPI is not processed on this board
because a Pull-Up or Pull-Down resistor is granted in the R-IN32M3 Module.
Figure 2-6 SPI
2.4.5 Emulator connection
The RX66T program is rewritten using E1 or E2 Lite, an on-chip debugging emulator from Renesas
Electronics. The program is written by connecting E1 or E2 Lite to the Emulator connector on this board and
the USB on PC.
Do not supply power from E1, E2 Lite in the integrated development environment.
R12AN0111EJ0204 Rev.2.04 Page 13 of 88
Apr.26.2021
The R-IN32M3 Module on this board has two RJ45 network connectors.
The Ethernet switch function of the R-IN32M3 allows external connections in several network topologies,
such as dizzy chain connections. The internal PHY layer of R-IN32M3-EC can handle a variety of industrial
communication protocols and supports 10BASE-T and 100BASE-TX/FX.
2.5.2 LED
This board is equipped with a 5V power display LED, a protocol display LED, a protocol status LED
representing the status of each protocol, and a general-purpose output LED.
(1) 5V power display (LED10)
The LED10 (Red) is lit by a +5V power supply from the USB Micro B connector or the Inverter Board
connector. See Figure 2-3 for the configuration.
(2) Protocol display (LED1~3)
Depending on the industrial ethernet protocol selected, the project in the sample software is executed on
RX66T. Depending on the protocol running, one of LED1-3 (Green) will light up.
Figure 2-7 protocol display LED
LED display depending on the protocol is shown in Table 2-3.
Table 2-3 protocol display LED
PROFINET ON OFF OFF
LED1 (P94) LED2 (P95) LED3 (P96)
EtherNet/IP OFF ON OFF
EtherCAT OFF OFF ON
R12AN0111EJ0204 Rev.2.04 Page 14 of 88
Apr.26.2021
4bit green LEDs (LED5, LED6, LED8, and LED9) are available for general purpose I/O applications.
Figure 2-9 General purpose LED
2.5.3 Switch
This board has several switches for EtherCAT Explicit Device ID, input for general-purpose I/O applications,
general-purpose DIP, input power, and resets.
(1) EtherCAT Explicit Device ID Switch (SW3)
When EtherCAT is selected as the protocol setting, the ID is set by SW3.
Figure 2-10 EtherCAT Explicit Device ID Switch
Table 2-5 EtherCAT ID setting
(2) General-purpose input SW (SW2,4,5,6)
SW2,4,5,6 (toggle switch) is available as an input switch for each 4bit for general purpose I/O applications.
R12AN0111EJ0204 Rev.2.04 Page 16 of 88
Apr.26.2021
Table 2-7 shows the connectors on this board (except for the RJ-45 connector with the R-IN32M3 Module).
Table 2-7 Connector List
mounted)
(1) Inverter Board Connector (CN1, CN4)
This board is equipped with an Inventor Board connector for use as a CPU card for "24V Motor Control
Evaluation System". The following is a pin assignment for the Integer Board connector:
Table 2-8 Inverter Board Connector A (CN1)
R12AN0111EJ0204 Rev.2.04 Page 19 of 88
Apr.26.2021
The pin assignments for SCI connector, CN6 is shown below.
CN6 is not mounded on this board.
Table 2-13 SCI Connector (CN6)
(6) Connectors for external expansion (CN7
The external expansion connector (CN7) has an unused pin connected to the MCU.
The pin assignments for external expansion connectors are shown below. CN7 connectors (pin headers) are
not implemented.
Table 2-14 Connectors for external extension (CN7)
:Not Mounted)
:Not Mounted)
(7) USB micro B (CN8)
CN8 is USB Micro B connector for 5V power supply to this board. See Figure 2-3 for the power supply
diagram. By switching SW7 to the one described as "USB" with silkscreen, 5V power is supplied from CN8 to
the board.
R12AN0111EJ0204 Rev.2.04 Page 22 of 88
Apr.26.2021
Connect PGAVSS0 terminal and AVSS
# Please use this normally.
not connect
Do not connect PGAVSS0 terminal and AVSS
JP
Description
shipped state
Connect VCC pin and MCU_UVCC of the JTAG connector.
# Please use this normally.
2.5.5 Jumper
Below is a list of jumper pins on this board. Normally, please use it in the shipping state.
Table 2-15 List of Jumper pins
JP2 XJ8C-0211 Select connection of PGAVSS0 and AVSS
JP3 XJ8C-0211
JP4 XJ8D-0311 Select input of MCU_UVCC
JP5 XJ8D-0311 Select input of Module_VCC
The settings for each jumper pin are shown below.
(1) JP2
JP2 is a jumper pin for connecting the PGAVSS0 pin and AVSS of the MCU. (See Figure 2-4)
The configuration table of JP2 is shown below.
When using the inverter board, please use JP2 of this board while keeping it short (shipped state).
Table 2-16
(2) JP3
JP3 is a jumper pin for connecting the VCC pin of JTAG connector (CCN5) to the MCU_UVCC. (See Figure
2-5). The configuration table of JP3 is shown below.
Table 2-17
JP2
1-2
JP3
1-2
not connect
Do not connect VCC pin and MCU_UVCC of the JTAG
connector.
○
○
R12AN0111EJ0204 Rev.2.04 Page 23 of 88
Apr.26.2021
This board is developed referring to the RX66T CPU card (RTK0EMX870C00000BJ) and is configured to
add an industrial Ethernet communication module, but there are several differences in MCU and the
peripheral circuits. For this reason, in order for the sample software for the original RX66T CPU card to work
with this board, it is necessary to make changes that take into account the following hardware differences:
Please refer to Chapter 4.3 about changes of motor control sample software for this board.
Table 2-20 shows the major differences between original RX55T CPU card and this board about MPU
peripheral circuits and R-IN32M3 Module-related circuit.
Table 2-20
Input
input
Differences b/w RX66T CPU card and this board
(SEMB1320)
Name
power
supply
voltage
(MPU spec: 2.7~5.5V)
MTIOC1A)
(MPU spec: 2.7~5.5V)
ection
Volt detect
monitor
tool
board
interface
(*) By changing the input supply voltage from 5V to 3.3V, the voltage loading process of sample software
must be corrected. Here, this sample software is already corrected.
R12AN0111EJ0204 Rev.2.04 Page 25 of 88
Apr.26.2021
The folder structure of this sample software is shown below.
RX66T_CCM_V***
├─appl User application
│ ├─goal_net Sample application of udp_server, tcp_client, tcp_server and udp_client
│ ├─mirror_io_sample Sample application of mirror I/O response (PROFINET, EtherNetI/P and EtherCAT)
│ ├─motor_sample Sample application of motor control (PROFINET, EtherNet/IP and EtherCAT)
│ └─remote_io_sample Sample application of Remote I/O (PROFINET, EtherNet/IP and EtherCAT)
│
├─ext Software component by 3rd party
├─goal Main part of GOAL (Generic Open Abstraction Layer *)
├─goal_global Configuration of SPI mode
├─goal_media Wrapper part to absorb device-dependent and non-dependent components
├─plat HW-dependent components (OS-dependent part, board spec, drivers)
├─projects Project files corresponding to each user application
│ ├─goal_net uITRON, FreeRTOS and OS less project files against 4 sample applications
│ ├─mirror_io_sample uITRON, FreeRTOS and OS less project files against 3 sample applications
│ ├─motor_sample uITRON, FreeRTOS and OS less project files against 3 sample applications
│ └─remote_io_sample uITRON, FreeRTOS and OS less project files against 3 samples applications
│
└─protos enhancements such as the NW protocol and MCTC (Micro Core To Core)
* For more information about GOAL, see “R-IN32M3 Module User's Manual Software API Description” (R17US0002ED****).
R12AN0111EJ0204 Rev.2.04 Page 26 of 88
Apr.26.2021
The protocols (PROFINET, EtherNet/IP and EtherCAT) in this sample software support the following
features:
Table 3-1 Protocol and feature
・
・Netload : I
Min Interval : 1ms
・
・
・
・Mailbox : CoE / FoE / EoE
・Profile : CiA401
I/O mirror response, motor control and Remote I/O can be evaluated with industrial ethernet protocol,
PROFINET, EtherNet/IP and EtherCAT by using the projects in this sample software.
In addition, every project supports RTOS of uITRON and FreeRTOS, and OS less system. The source code
is shared, and the project files are packaged independently.
R12AN0111EJ0204 Rev.2.04 Page 27 of 88
Apr.26.2021
Loading...
+ 62 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.