RS232 Isolator click is a fully isolated dual transceiver click, used to provide secure and easy UART to RS232 conversion, with the galvanic isolation. The digital input and output signals are transmitted across the isolation barrier by utilizing the Analog Devices proprietary iCoupler® technology – IC scale transformer windings couple the digital signals magnetically, from one side of the barrier to the other, providing the galvanic isolation and transfer rates up to 460Kbps.
RS232 Isolator click can be used for galvanic isolation of RS232 signals, whenever there is a need for that kind of isolation – operating in harsh environments where electrostatic discharges (ESD) can occur, when the RS232 cable is plugged in and out frequently, and generally – wherever the sensitive part of the RS232 controller logic circuitry needs to be protected.
How does it work?
The RS232 is a serial communication standard, which was first introduced in ’60s. It became very popular during ’90s, as it became an integral part of many PC motherboards. After several reviews of this standard and thanks to its simplicity and past ubiquity, RS232 is still being used – particularly in industrial machines, networking equipment, and scientific instruments where a short-range, point-to-point, low-speed wired data connection is required.
The logic voltage levels used by the RS232 can go up to ±15V with respect to the common ground. This is very different than the CMOS/TTL voltage levels used on many MCUs and other types of commonly used modern devices, so the first task of the RS232 isolator board is to provide appropriate RS232/TTL levels.
The main active component of the RS232 Isolator click is the ADM3252E, an integrated dual-channel RS232 driver/receiver, with the iCoupler® isolation technology, made by Analog Devices. This integrated circuit features four integrated galvanic isolation elements that provide the required isolation level. RS232 level inputs are inverted and encoded into waveforms that are used to energize the primary windings of the integrated transformers. At the secondary windings, the induced waveforms are decoded back into the digital values and routed to the pins, with the appropriate TTL/CMOS voltage levels. The same working principle is applied in the opposite direction, too. This way, the digital signals are effectively conducted through the isolation barrier.
Besides the UART RX and TX lines, the click also supports the hardware flow control via the CTS and RTS lines. One of the two existing channels is used for the UART data communication itself, while the other channel is used for the hardware flow control lines. The usage of the control lines is not always mandatory, so the lines can be disconnected from the mikroBUS if needed, by unsoldering the SMD jumpers labeled as J1 and J2.
The ADM3252E IC also features the isoPower™ technology – an integrated DC-DC converter for generating all the required voltage levels, making it possible to power the click board™ by 3.3V or 5V. The operating voltage for the click board™ can be set with the onboard SMD jumper.
RS232 Isolator click features the onboard D-Sub 9 (DE9) connector for an easy and secure connection.
Specifications
Type
Isolators,RS232
Applications
For applications which operate in harsh, industrial environments, when the RS23 cable is plugged in and out frequently. It can be used whenever the sensitive control circuitry needs to be isolated from the RS232 line levels.
On-board modules
ADM3252E, an isolated, dual channel, RS-232 line driver/receiver from Analog Devices
Key Features
High voltage galvanic isolation of RS232 lines, high speed communication, up to 460 Kbps, D-Sub connector for easy connection
Interface
GPIO,UART
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
L (57.15 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on RS232 Isolator click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
RS232 Isolator click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Receiver inputs voltage range | -30 | +30 | V |
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED indicator |
J1 | VCC SEL | Left | Power supply voltage selection: left position 3V3, right position 5V |
J2 | J2 | Soldered | CTS connection to mikroBUS™ |
J3 | J3 | Soldered | RTS connection to mikroBUS™ |
CN1 | RS232 | – | RS232 connector |
Software Support
We provide a library for the RS232 Isolator Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on MIKROE github account.
Library Description
This library contains API for RS232 Isolator Click driver.
Key functions
-
Function settings RTS state.
-
Read CTS state.
-
Function for send command.
Example Description
This example reads and processes data from RS232 Isolator clicks.
void application_task ( void )
{
#ifdef DEMO_APP_RECEIVER
rs232isolator_process( );
#endif
#ifdef DEMO_APP_TRANSMITER
rs232isolator_send_command( &rs232isolator, TEXT_TO_SEND );
rs232isolator_process( );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
#endif
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on MIKROE github account.
Other MIKROE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Rs232Isolator
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.