AnswerBun.com

Can we use UART COMMUNICATION with MCP23017?

Arduino Asked on December 9, 2021

I am using MCP23017 as a GPIO expander with Arduino in my project. I have too many serial devices and no pins left on Arduino for UART communication.

I am wondering if I can use this MCP23017 GPIO expander pins for UART communication or not?

2 Answers

I can think of one way.

In theory you could use the GPIO pins of the mcp23017 to control a couple of 2-way multiplexers. With these multiplexers you could split your Rx/Tx pins to more than one serial bus.

May it be obvious that you cannot used the split busses at the same time. So depending on your specific use-case this may or may not be a solution.

Answered by bask185 on December 9, 2021

No. No you can't. Serial takes precise timing and fast reactions. Things you can't do with a remote device like that.

Instead there are SPI UART devices specifically for the job, such as the MAX3107.

Answered by Majenko on December 9, 2021

Add your own answers!

Related Questions

IMU (MPU9250) and Ticker on ESP32

1  Asked on December 10, 2020 by r-ho

     

Where this function is defined?

1  Asked on December 7, 2020 by ravi-s

 

Ultrasonic Sensor(HC-SR04) recording random distance

1  Asked on December 1, 2020 by shubham-bajaj

         

How to save data in arduino when it’s power goes off

3  Asked on December 1, 2020 by user63158

     

Max7219 7-segment display not working

0  Asked on November 29, 2020 by elayer213

   

Unresolved reference to public function from library

1  Asked on November 6, 2020 by omar_hussein

 

SG 90 servos randomly spinning

0  Asked on October 25, 2020

       

void loop() stops running after an hour or so

1  Asked on October 22, 2020 by imrobert7

 

Multiple sensors I2C stop working suddenly

0  Asked on October 6, 2020 by zaffresky

   

Is it possible to exit a loop on the change of an input state?

1  Asked on September 15, 2020 by jabawokjayuk

   

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP