donderdag 7 juli 2016

6in1 USB serial interface

6 in 1 Multifunction Serial Module CP2102 USB TTL 485 to 232 Convert Module 3.3V/5V compatible

Documentation:

1. Why this post?

I am experimenting with Arduino / Genuino and ESP8266. I wanted a spare USB TTL 5 and 3.3 V interface and found this interesting device/circuit on Aliexpress.  Due to it's interesting features and its price (in June 2016 it even dropped below 3.00 Euro!) i wanted to give it a try. I ordered it and received it after some time together with other interesting hardware.
Then came the main disadvantage of this module : documentation. How to use put the switches to use this device. Most internet pages contained info where to buy  this device or info in Chinese (with pictures!). I still need to test the device (Perhaps i will post some results in this blog, I will not test all modes!)  but i want to share some info that i have found  (for you and for myself! ) 

2 Short description

- A USB 2.0 to TTL UART 6PIN CP2102 Module Serial Converter. Connect MCU easily to your computer!
This item uses the USB to serial chip CP2102, it has the advantages of high-speed, stability, small size. It can help realize the equal energy level interconversion of the USB/TTL/RS232/RS485. It is the essential tool in communication debugging.
Also +5 an +3.3 Volt power

3 Long description 

.Small size: the PCB board size is just 3.1CM*1.8CM, it is even smaller than the U disk.
Compatible with the 3.3V and 5v
3.3V and 5V voltage: can use this module to provide power suppler for the Microcontroller , the max output current is 500ma.
Over current protection: on-board recovery fuse, it can protect the Microcontroller and the PC from the damage of the Short Circuit. The fuse will automatic shutdown and will be work normally after the recovery of the circuit.
Indicator LED: When begin data transmission, the indicator LED will light.
TTL electronic level interface.
232 electronic level interface.
485 level interface: Automatic transceiver control no need for the control line. Default receiving state, when sending data, the state will be changed into sending state.
USB, TTL, RS232,,RS485 four electronic levels free transfer: unique circuit design, uses the switch to realize the functions conversion, it is very fast and convenient.
Stable communication rate: The max rate is 1Mbps.
DTR,RTS control signals: Multifunciton, support MSP430 BSL download.- Stable and reliable chipset CP2102
- USB specification 2.0 compliant with full-speed 12Mbps.
- Standard USB type A male and TTL 6pin connector. 6pins for 3.3V, RST, TXD, RXD, GND & 5V.
- All handshaking and modem interface signals.
- Baud rates: 300 bps to 1.5 Mbps.
- Byte receive buffer; 640 byte transmit buffer.
- Hardware or X-On/X-Off handshaking supported.
- Event character support Line break transmission.
- USB suspend states supported via SUSPEND pins.
- Temperature Range: -40 to +85.
- Supports Windows 98SE, 2000, XP, Vista, Window7, Mac OS 9, Mac OS X & Linux 2.40.

4. Pins / connections

DTR
+5V
+3V3
TXD
RXD
GND

RTS
A
B
232T
232R
GND

USB connector

5. Switches

TTL - 232-485

DIL (2x)
485
USB

6. Functions

(Not tested /  found in documentaton!)

Model Dil code1(USB) Dil code2(485) Switch S1 Picture
USB to TTL
On
Off
Up(232-TTL)
USB to  232
On
Off
Up(232-TTL)
USB to 485
On
On
Up(232-TTL)
TTL to 232
Off
Off
Up(232-TTL)
TTL to 485
Off
On
Up(232-TTL)
232 to 485
Off
On
Down (232-485)

My comment: Picture above switch for 232-TTL / 232-485 seems different than text

USB
My comment: Strange, it seems switch for 232-TTL / 232-485 in pictures below is different

7. Interface usage:


Mode Pin Function
TTL Level Interface TXD TTL Transmit
TTL Level Interface RXD TTL Receive
TTL Level Interface GND TTL ground
232 Level Interface 232-TX 232 Transmit
232 Level Interface 232-RX 232 Receive
232 Level Interface GND 232 Ground
485 Level Interface A 485A+
485 Level Interface B 485B-
+5V Voltage Output +5V +5V Voltage Output
3.3 Voltage Output 3V3 3.3V Voltage Output
DTR Output DTR Special Function
RTS Output RTS Special Function

8.Product testing

I did not test this yet. This is only some text i found in "internet documentation" !
Using the USB TO TTL self-closed loop and the USB TO RS232 self-closed loop to test the product functions:

- USB TO TTL self-closed loop

Use the Dupont line to connect the TTL-TXD and TTL-RXD of this module, place the dial switch according to the function introduction, then insert this module into the computer, uses the serial debugging helper to send the data, check whether there has corresponding back data. If it can receiving the receiving data, it proves that this module can work normally.

- USB TO RS232 self-closed loop

Use the Dupont line to connect the 232-TXD and 232-RXD of this module, place the dial switch according to the function introduction, then insert this module into the computer, uses the serial debugging helper to send the data, check whether there has corresponding back data. If it can receiving the receiving data, it proves that this module can work normally.

The default state of the black two dial switch is "ON",  it is suitable for all conditions.

9.Mechanical drawing




10. Links

Explanation: 

Video + drivers

Geen opmerkingen: