Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
You can use any pin of a microcontroller to read or send serial data if you program it appropriately. If the microcontroller has a UART module it is usually easier to use it instead of using software but they normally constrain the UART connection to fixed pin numbers.
A UART is a specific device within most microcontrollers, you need to consult the data sheet to see how to use it.
If you want to use any other pin for serial communication you have to write your own software to do it, we call it a 'software uart' or a 'bit-banged uart'. Your program is responsible for performing all the timing and shifting between serial and parallel streams. How to do it depends on which MCU you are using and to some extent what other things it also has to do. Software UARTs require precise timing so it often isn't feasible to use one if other demands are made on the MCUs resources.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.