Schematic Circuit Diagram Creating UART Modules-Modifying the COMPORT proteus simulation
The Proteus software has an option to interface with external modules in real-time through the COMPIM (Comport Physical Interface Module) component. Its default view is a DB9-Pin Serial Port connector. This component makes it possible to connect various UART Modules like GSM, GPS, Wi-Fi etc.., in real-time with the circuit designed in the worksheet. So, to make the circuit more comprehensible, let’s modify the view of this component. The actual and expected views are shown below,
Step1: Select and place the COMPIM component on the Sheet/Workspace.
Step2: Right-Click on the component and select ‘Decompose’ from the Right-Click Menu.
The expected view is similar to the real-time modules like the GSM Module etc.., which contain TX, RX and GND Pins in common excluding the Power supply terminals. As the serial port has Flow control terminals in addition to the previously mentioned pins, we can remove the unwanted pins.
The connector shape can be made invisible either by removing the block or by placing a desired shape over the connector, but the pins shouldn’t be covered. Every unwanted part like the lines or circles can be deleted. ‘Any component in the worksheet can be deleted by Double Right-Click on the component or part’.
The actual circuit connections are such that, the TX, RX pins of the microcontroller are connected to the TX, RX pins of the COMPORT respectively. But, the schematic view or in the circuit diagram, the TX and RX pins of the microcontroller and the module are cross-connected. So, we have to write 2D-Text for the TX and RX pins of the COMPORT as RX and TX respectively.
The modules have the Ground Pin that should be connected to the circuit ground. In the software, it is not necessary as they are programmed. But to show them in the circuit diagram, we can add a new pin for Ground. The pins mode is used for this purpose.
Place the pin on the workspace. The edge of the pin that has the cross symbol indicates that it should be connected to the external components in the circuit diagram. Edit the properties of the Pin such that, name and number are hidden.
Additional text or blocks can be added to enhance the view of the module like the antenna and Power supply block from the 2D-Graphics Box mode.
Step3: Select all the parts of the expected view. Right-click and select ‘Make device’ from the Right-click Menu.
Step4: Through a series of options, the name of the component, Index and other reference parameters can be edited or left unchanged. After this step, the component is created in the library and can be used a regular component by placing it in the workspace. The decomposed component can be deleted. Let’s check whether this component is shown in the Devices.