RS232 to I2C Click Board™
Product Code: MIKROE-5056
How Does The RS232 to I2C Click Board™ Work? The RS232 to I2C Click Board™ is based on the ZDU0110RFX, a digital UART interface IC designed to give you an I2C-controlled UART interface from Zilog. The ZDU0110RFX provides full-duplex asynchronous communications with a 128B FIFO (First In, First Out) buffer, allocating 64 bytes each to the receive and transmit operations. This interface bridge simultaneously represents the connection between the MCU and the RS232 line driver and receiver, the MAX3232, which completes this solution by making it a complete RS232 to I2C converter. The MAX3222 is a low-power and high speed up to 1Mbps RS232 transceiver. It runs at data rates of 120kbps while maintaining RS-232 output levels. This transceiver is connected to the DB9 Female Connector, compliant with TIA/EIA-232-F standards which provides the users an electrical interface between an asynchronous communication controller and the serial-port connector. Alongside RS232 TX and RX signals, the DB-9 connector also carries flow control signals (CTS and RTS) for maximum reliability.
The RS232 to I2C Click Board™ communicates with MCU using the standard I2C 2-Wire interface that supports Standard-Mode (100 kHz) and Fast-Mode (400 kHz) operation. Besides, the ZDU0110RFX allows choosing its I2C slave address using the onboard SMD jumpers labelled as ADDR SEL. The selection can be made by positioning the SMD jumper to an appropriate position marked as 0 or 1. This fully programmable UART IC is preconfigured to operate at a 57.6kb/s rate, so configuration is not required to access the UART or the EEPROM. The ZDU0110RFX also contains a 4kbit EEPROM and General Purpose Input and Output (GPIO) with programmable interrupt capability.
The EEPROM is accessible via I2C communication and comes with the configurable Write Protection function labelled as WP routed on the CS pin of the mikroBUS™ socket, and an active-low reset signal routed on the RST pin of the mikroBUS™ socket. The WP pin protects the EEPROM memory from write operations and must be set to a high logic state to inhibit all the write operations. Also, the ZDU0110RFX provides separate programmable interrupts, and interrupt lines for UART and GPIO notifications. These individual interrupts mean the controlling device doesn't have to poll the UART IC for data. The interrupt selection can be made by positioning SMD jumpers labelled as INT SEL to an appropriate position marked as UART or GPIO, and processed by the INT pin of the mikroBUS™ socket.
In addition to UART communication pins from the mikroBUS™ socket, the user can connect the TX/RX signals directly through the UART external connection header on the left side of the board, while previously mentioned GPIO pins can be connected to the General Purpose I/O header on the right side of the board. The two pins on this header, GP0 and GP1, are GPIO pins that possess an interrupt function.
The RS232 to I2C Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
SPECIFICATIONS
Type
RS232
Applications
The RS232 to I2C Click Board™ can be used in multiple applications such as communication bridges, process and automation control, terminal servers, and many more
On-board modules
ZDU0110RFX - bridge between a UART port and an I2C bus from Zilog, which at the same time represents the connection between the MCU and the RS232 line driver and receiver, the MAX3232
Key Features
Control via I2C interface, 4KB built-in EEPROM, interrupt lines for UARTs and GPIOs for notification, low power consumption, high reliability, and more
Interface
I2C
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 of the RS232 to I2C Click Board™ 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
Reset
RST
2
RST
INT
15
INT
Interrupt
EEPROM Write Protect
WP
3
CS
RX
14
Visit the Debug Store website for more information on RS232 to I2C Click Board™