Method for self-defining physical interface of serial port by software
A technology of software customization and physical interface, which is applied in the direction of program control devices, etc., can solve problems such as changes, sampling values that cannot adapt to the frequency of AC volume, etc., to facilitate operations, eliminate the possibility of misselection, and avoid static interference Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0018] The present invention will be further described below in conjunction with specific examples.
[0019] A kind of software custom serial port physical interface method that the present invention proposes, comprises the following steps:
[0020] 1) Determine the relationship between input and output, where the input is 6 states: the respective sending and receiving states of RS232 / RS422 / RS485, and when RS232 / RS422 / RS485 is used as a slave, it only receives and does not send; the corresponding output is 5-way control Pin: RS232 send control, RS232 receive control, RS485 send control, RS485 receive control, RS422 receive control;
[0021] 2) Through four general-purpose logic gate chips 74AHC1G00GV, 74AHC1G04GV, 74AHC1G08GV, and 74AHC1G32GV, use 2 separate IO pins and master-slave IO pins of the CPU to control 6 states of the 3 chips. This not only saves the cost of optocouplers and wiring space, but also achieves mutual exclusion of logic, reducing the probability of error...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 