RS485 3 click
PID: MIKROE-2821
Weight: 25 g
RS485 3 click uses SN65HVD31DR from Texas Instruments, a tri-state differential line driver
and differential input line receiver. The click is intended to be used as UART to RS422/RS485
communication interface. It is suited for transmitting smaller blocks of data over long distances,
using the four-wire bus, allowing for full-duplex communication.
It can be used as a transceiver between UART interface and RS422/RS485 communication bus.
RS485 3 click can be used for controlling various building automation systems, light controllers,
sensors and many small embedded devices that can all share the same bus, which can stretch up
to 254 nodes and up to 1200m in length.
How does it work?
The main feature of the RS422/RS485 interface is that the signals can be transmitted and
received at distances up to 1200m by using the so-called twisted pairs - basically, the signal and
its inverted copy are sent via the twisted pair wires. Because of the length of the twisted pair, it
will unavoidably be exposed to the influence of the EMI. The interferences will appear in both
wires of the twisted pair equally, but thanks to the opposite polarity of the signals the wires are
carrying, the interferences will get canceled at the differential inputs of the SN65HVD31. This
way, greater signal communication distances can be achieved than with the regular UART.
RS422/RS485 only specifies electrical characteristics of the transmitter and the receiver. It does
not specify or recommend any communications protocol, only the physical layer. The top layer
communication protocol of choice can be used, such as the MODBUS or DMX protocols.
To improve the signal stability, RS485 3 click is equipped with the TVS – transient voltage
suppression diodes used to protect the circuit from the static electricity discharges and other
types of dangerous electrical discharges, that might occur.
There are four onboard screw terminals (RX+, Rx-, Tx+, Tx-) for connecting RS422/RS485
twisted pair cable, along with two screw terminals (GND) for common ground connection.
TX and RX pins should be used for connecting MCU UART interface. Two resistors (R2 and
R5) should be unsoldered if using more than two clicks on the RS422/RS485 bus.
Specifications
Type
RS485
Applications
Transceiver between UART interface and RS422/RS485 communication bus. Controlling
various building automation systems, light controllers, sensors and small embedded
devices that can all share the same bus.
On‐board
modules
SN65HVD31DR 3.3‐V Full‐Duplex RS‐485 Driver and Receiver by Texas Instruments
Full duplex four‐wire serial communication over a distance up to 1200m, low power
Key Features stand‐by mode, receiver failsafe (detection of the short circuit or disconnection), hot
plug capability
Interface
UART
Input Voltage 3.3V
Click board
size
M (42.9 x 25.4 mm)
Pinout diagram
This table shows how the pinout on RS485 3 click corresponds to the pinout on the mikroBUS™
socket (the latter shown in the two middle columns).
Notes
Pin
Pin
Notes
NC
1
AN
PWM
16
NC
NC
2
RST
INT
15
NC
NC
3
CS
RX
14
TX
UART transmit data
NC
4
SCK
TX
13
RX
UART receive data
NC
5
MISO
SCL
12
NC
NC
6
MOSI
SDA
11
NC
Power supply 3.3V
7
3.3V
5V
10
NC
Ground
GND
8
GND
GND
9
GND
Ground
RS485 3 click electrical specifications
Description
Min Typ Max Unit
Voltage at any terminal of the RS485 connectors ‐7 ±5 12 V
Differential load resistance
54 60
Ω
Onboard settings and indicators
Label
Name
PWR Power LED
Default
Description
‐
Power LED indicates that the click is powered on
Software support
We provide a demo application for the RS485 3 click on our LibStock page, as well as a demo
application (example), developed using MikroElektronika compilers. The demo can run on all
the main MikroElektronika development boards.
Examples Description
The application is composed of two sections :
System Initialization ‐ Initializes GPIO pins used for button press detection, and two UART
modules: first one used for click and second used for logging.
Application Task ‐ (Code snippet) Constantly polls the state of GPIO pin used for button press
detection. Whenever the press is detected, a predefined message will be sent using RS485 3
click. At the same time, inside the application task, the UART is constantly polled, checking for
RS485 3 click activity. Whenever new data on click is received, it will be logged to UART module.
void applicationTask()
{
//SENDS DATA
if (Button( &GPIOA_IDR , 5, 100, 1 ))
{
for (i = 0; i
很抱歉,暂时无法提供与“MIKROE-2821”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格 香港价格
- 1+216.367271+26.98195
- 国内价格 香港价格
- 1+204.871001+26.09300
- 国内价格
- 1+191.63543
- 5+187.80314