Continue to Site

Welcome to EDAboard.com

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.

[General] Digital pin as TXD , RXD.

Status
Not open for further replies.

ALTAMSH

Newbie level 5
Newbie level 5
Joined
Apr 20, 2019
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
66
Can i use the digital pin of microcontroller as serial (TXD, RXD) ??
 

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.

Brian.
 
how should i program it. is there a specific flow for making digital pin, a UART.
 

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.

Brian.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top