Device for converting RS232 to IC protocol control board
By designing the control board of RS232 to I2C protocol, the protocol conversion is achieved using port P1, microcontroller U1 and capacitor circuit, which solves the problem that the upper computer communication interface cannot communicate with the I2C protocol equipment, improves the flexibility and scope of application of the control board, and reduces costs.
Patent Information
- Application Number
- CN202422000601.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2034-08-19
AI Technical Summary
The existing upper computer communication interface cannot communicate with devices using the I2C protocol, resulting in less flexibility in use.
A RS232 to I2C protocol control board is designed, and the RS232 protocol is converted into I2C protocol through port P1, microcontroller U1 and capacitor circuit.
The communication between the control board and the I2C protocol components is realized, which improves the flexibility and scope of use of the control board, and reduces the cost of use.
Smart Images

Figure CN223022673U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of RS232 to I 2 C protocol control boards, and specifically relates to a device for RS232 to I 2 C protocol control boards. Background Technique
[0002] The host computer communication interface refers to the interface that connects a computer or other control device with a lower computer or external device for data interaction. The host computer interface acts as the central processing unit of the control and monitoring system. It can receive the data sent by the lower computer or external device, parse and process it, and send instructions and control signals to it. Through the host computer interface, people can conveniently interact and control with the lower computer or external device, realize data transmission and operation retrieval, and perform data processing and analysis at the host computer end. In short, the host computer interface plays a crucial role in the control system and data processing, enabling people to more intuitively connect and operate with the lower computer or external device. The commonly used protocols for the host computer communication interface are USB and RS232, and there is no I 2 C protocol. However, many products such as fans are of I 2 C protocol, so it causes the host computer to be unable to communicate with fan products, resulting in low flexibility in the use of the device. Content of the Utility Model
[0003] The purpose of the utility model is to provide a device for RS232 to I 2 C protocol control boards to solve the problems raised in the above background technique.
[0004] To achieve the above purpose, the utility model provides the following technical solution:
[0005] The utility model provides a device for RS232 to I 2 C protocol control boards, including port P1. The port P1 is specifically a double-row nine-pin structure. The pins of the port P1 are connected to a single-chip microcomputer U1. The 7th pin of the port P1 is connected to the 5th pin of the single-chip microcomputer U1. The 8th pin of the port P1 is connected to the 6th pin of the single-chip microcomputer U1. The 7th pin of the single-chip microcomputer U1 is connected to the 17th pin of the port P1. A capacitor circuit is connected between the port P1 and the single-chip microcomputer U1.
[0006] Further, the capacitor circuit includes a capacitor C1 connected to the 14th pin of the port P1. A capacitor C2 is connected between the 2nd pin and the 4th pin of the single-chip microcomputer U1. The capacitor C1 and the capacitor C2 are interconnected. One end of the capacitor C1 is connected to the 4th pin of the single-chip microcomputer U1. The other end of the capacitor C2 is connected to the 14th pin of the port P1.
[0007] Further, the 5th pin of the port P1 is grounded, and both the capacitor C1 and the capacitor C2 are grounded.
[0008] Further, the specific model of the single-chip microcomputer U1 is STC8G.
[0009] Further, the specific capacitance of the capacitor C1 is 22 uF, and the specific capacitance of the capacitor C2 is 0.1 uF.
[0010] Further, the 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th, 13th, 14th, 15th, 16th, 17th, and 18th pins of the port P1 are SCL2, SDA2, SCL4, RST, VSS, INT, RXD, TXD, CTS, RTS, SDA4, SCL3, SDA3, VDD, OSCOUT, OSCIN, SCL1, and SDA1 respectively, and the 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, and 8th pins of the single-chip microcomputer U1 are P5.4, VCC, P5.5, GNDRXD, TXD, SCL, and SDA respectively.
[0011] Compared with the prior art, the beneficial effects of the present utility model are as follows:
[0012] By setting the port P1, the single-chip microcomputer U1, and the capacitor circuit, the present utility model can realize the function of converting RS232 to I 2 C protocol, so that the control board can be compatible with RS232 and I 2 C protocol, thereby enabling communication between the control board and I 2 C protocol components, improving the flexibility of the control board, expanding the applicable range of the control board, and reducing the use cost of the control board. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 is the circuit diagram of the present utility model. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0014] The technical solutions in the embodiments of the present utility model will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present utility model. Obviously, the described embodiments are only a part of the embodiments of the present utility model, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present utility model without creative efforts shall fall within the protection scope of the present utility model.
[0015] Please refer to Figure 1 , the present utility model provides a device for converting RS232 to I 2Device of C protocol control board, including port P1. The port P1 is specifically a double-row nine-pin structure. There is a single-chip microcomputer U1 connected to the pins of the port P1. The 7th pin of the port P1 is connected to the 5th pin of the single-chip microcomputer U1. The 8th pin of the port P1 is connected to the 6th pin of the single-chip microcomputer U1. The 7th pin of the single-chip microcomputer U1 is connected to the 17th pin of the port P1. There is a capacitor circuit connected between the port P1 and the single-chip microcomputer U1.
[0016] In the above embodiment, it can realize the conversion of RS232 to I 2 C protocol function, so that the control board can be compatible with RS232 and I 2 C protocol, thus enabling communication between the control board and I 2 C protocol components, thereby improving the flexibility of the control board in use, expanding the applicable range of the control board, and reducing the usage cost of the control board.
[0017] The capacitor circuit includes a capacitor C1 connected to the 14th pin of the port P1. There is a capacitor C2 connected between the 2nd pin and the 4th pin of the single-chip microcomputer U1. The capacitor C1 and the capacitor C2 are interconnected. One end of the capacitor C1 is connected to the 4th pin of the single-chip microcomputer U1. One end of the capacitor C2 is connected to the 14th pin of the port P1, and it can realize the conversion of RS232 to I 2 C protocol function.
[0018] The 5th pin of the port P1 is grounded. Both the capacitor C1 and the capacitor C2 are grounded, which can improve the safety of the circuit operation.
[0019] The specific model of the single-chip microcomputer U1 is STC8G. STC8G has the required performance and relatively low cost.
[0020] The specific capacitance of the capacitor C1 is 22uF, and the specific capacitance of the capacitor C2 is 0.1uF.
[0021] The 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th, 13th, 14th, 15th, 16th, 17th, and 18th pins of the port P1 are SCL2, SDA2, SCL4,, RST, VSS, INT, RXD, TXD, CTS, RTS, SDA4, SCL3, SDA3, VDD, OSCOUT, OSCIN, SCL1, and SDA1 respectively. The 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, and 8th pins of the single-chip microcomputer U1 are P5.4, VCC, P5.5, GNDRXD, TXD, SCL, and SDA respectively.
[0022] Working principle: It can convert RS232 into I 2 C protocol, so that the control board can be compatible with RS232 and I 2 C protocol, so as to enable communication between the control board and I 2 C protocol components, thereby improving the flexibility of the control board, expanding the applicable range of the control board, and reducing the usage cost of the control board.
[0023] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device.
[0024] Although the embodiments of the present invention have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the present invention. The scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A RS232 to I converter 2 C protocol control board device, characterized in that: It includes a port P1, which is specifically a double-row nine-pin structure. The pins of the port P1 are connected to a single-chip microcomputer U1. Pin No. 7 of the port P1 is connected to pin No. 5 on the single-chip microcomputer U1, pin No. 8 on the port P1 is connected to pin No. 6 on the single-chip microcomputer U1, pin No. 7 on the single-chip microcomputer U1 is connected to pin No. 17 on the port P1, and a capacitor circuit is connected between the port P1 and the single-chip microcomputer U1.
2. A kind of RS232 according to claim 1 to transfer 2 The device of the C protocol control board is characterized by: The capacitor circuit includes a capacitor C1 connected to pin No. 14 on port P1, a capacitor C2 is connected between pin No. 2 and pin No. 4 of the microcontroller U1, the capacitor C1 and the capacitor C2 are interconnected, one end of the capacitor C1 is connected to pin No. 4 of the microcontroller U1, and one end of the capacitor C2 is connected to pin No. 14 of port P1.
3. A kind of RS232 according to claim 2 is converted into 2 C protocol control board device, characterized in that: Pin No. 5 of the port P1 is grounded, and the capacitor C1 and the capacitor C2 are both grounded.
4. A kind of RS232 according to claim 3 is converted into 2 The device of the C protocol control board is characterized by: The specific model of the single chip microcomputer U1 is STC8G.
5. A kind of RS232 according to claim 4 is converted into 2 C protocol control board device, characterized in that: The specific capacity of the capacitor C1 is 22uF, and the specific capacity of the capacitor C2 is 0.1uF.
6. A kind of RS232 converter according to claim 5 2 The device of the C protocol control board is characterized by: Pins No. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 and 18 of the port P1 are SCL2, SDA2, SCL4, RST, VSS, INT, RXD, TXD, CTS, RTS, SDA4, SCL3, SDA3, VDD, OSCOUT, OSCIN, SCL1 and SDA1 respectively, and pins No. 1, 2, 3, 4, 5, 6, 7 and 8 of the microcontroller U1 are P5.4, VCC, P5.5, GNDRXD, TXD, SCL and SDA respectively.