Ref. IS.MDUINO.58+
Rev. 0: 30-08-2019
35
To enable I2C the switches SCL/I2.6 & SDA/I2.5 must be set to OFF mode. In this mode the
inputs are totally disabled and the I2C is now enabled.
Industrial Shields does not provide any library to implement the I2C as it can be used the
standard library of Arduino called Wire.
10.4
SPI
The M-Duino pins used for the SPI bus are summarized in the table below. For SPI bus MISO,
MOSI and CLOCK pins are common to all the connected devices to the M-Duino, conversely,
each of the connected devices will have a single and dedicated SS pin.
Function
M-Duino connection
Mega board pin
MISO
50 S0
50
MOSI
51 SI
51
CLOCK
52 SCK
52
Reset
Reset
Reset
SS
SCL/SDA/RX0/TX0/RX1/TX1/RX3/TX3/Pin2/Pin3
21/20/1/0/19/18/15/14/2/3
Check the switch configuration at section 8 to enable SS pins.
10.5
TTL
M-Duino has two TTL ports, RX0/TX0, RX1/TX1. TTL0 is accessed with the function Serial (pins 0
and 1 of the Arduino Mega). TTL1 is accessed with the function Serial1 (pins 18 and 19 of the
Arduino Mega).
In order to use the TTL pins the configuration of the switches have to be the following one:
If the switches RX1/I1.6(I1.1) & TX1/I1.5(I1.0) are in OFF mode, the RX1/TX1 will be enabled. In
order to use TTL3 these switches must be in OFF mode.
10.6
Ethernet
M-Duino Ethernet port controller is based on w5500 IC, which is the compatible IC compatible
with Arduino Ethernet2 Shield libraries. All Ethernet shield Arduino libraries are compatible
with the M-Duino. In the M-Duino, W5500 IC communicates to the Mega board via SPI bus (SS
Arduino Mega pin 10).
Switch
Analog Shield
ON
OFF
C ZONE
RX1/I1.6
I1.6
RX1
TX1/I1.5
I1.5
TX1
Содержание M-DUINO PLC ARDUINO ETHERNET 58
Страница 2: ...Ref IS MDUINO 58 Rev 0 30 08 2019 1...
Страница 3: ...Ref IS MDUINO 58 Rev 0 30 08 2019 2 Ethernet PLC MDuino 58 PLUS User Guide Revised August 2019...
Страница 23: ...Ref IS MDUINO 58 Rev 0 30 08 2019 22 Select the correct M Duino Board M Duino 58 Select correct port...
Страница 42: ...Ref IS MDUINO 58 Rev 0 30 08 2019 41 Analog Out Turn On Analog Out Turn Off Analog Digital input Turn on...
Страница 43: ...Ref IS MDUINO 58 Rev 0 30 08 2019 42 Typical Connections 13...
Страница 44: ...Ref IS MDUINO 58 Rev 0 30 08 2019 43...
Страница 45: ...Ref IS MDUINO 58 Rev 0 30 08 2019 44...
Страница 46: ...Ref IS MDUINO 58 Rev 0 30 08 2019 45...
Страница 47: ...Ref IS MDUINO 58 Rev 0 30 08 2019 46...