Serial Communication configures

Serial Communication configures

Postby venkat » Fri Apr 05, 2019 11:50 am

In my project i'm using PIC18F4520 controller.In this project i'm using an keypad which connected with TX and RX pins.
Now i'm going to use these pins for communication also.

Shall I connect the keypad along with communication.?
When the program is started,shall we change the pin config for communication purpose only..?
During operation time(when the communication is started),we wont use keypad.

Is this is correct..?shall we use like this..?

The circuit will be like this...
The COM connector is used for communication.
com.jpg (69.35 KiB) Viewed 8475 times
Posts: 1
Joined: Mon Apr 01, 2019 2:19 am

Re: Serial Communication configures

Postby AussieSusan » Mon Apr 08, 2019 3:49 am

I suspect you are asking for trouble doing this. The pins you are using would appear to be for the UART which makes sense for the 'comms' part of your requirement. However, how does the keypad use these pins - does it contain a UART as well or are you just checking for some connection between these pins?
If you are using the UART, then remember that it will be driving the TX line all of the time the module is enabled; similarly it will be monitoring the RX line at the same times.
Similarly, if the 'COM' connector has an active UART on it then it will be driving its Tx line (your Rx line) and so interfere with whatever the keyboard is doing.
What are the values of the pull-up resistors on the lines? They may well interfere with the signals being passed to and from the UART.
Verified identity
Posts: 173
Joined: Mon Jun 16, 2014 4:45 am
PIC experience: Experienced Hobbyist

Re: Serial Communication configures

Postby ric » Wed May 01, 2019 5:18 am

Also, the "COM" connector should also have a ground pin!
Latest test project, an LED matrix display made from one reel of addressable LEDs. here
User avatar
Verified identity
Posts: 659
Joined: Sat May 24, 2014 2:35 pm
Location: Melbourne, Australia
PIC experience: Professional 5+ years with MCHP products

Return to Digital I/O Ports

Who is online

Users browsing this forum: No registered users and 4 guests