role of data register in serial communication

Thread Starter

Mahmud Hasan 1

Joined Aug 7, 2017
2
Serial communication is an important topic for those who are working on Microcontrollers. So my question is
1.What is the role of data register in serial communication?
2.What is the difference between Receive enable (RXEN) and Receive interrupt enable? Which one is compulsory and which one is optional for serial data receive?
 

ErnieM

Joined Apr 24, 2011
8,377
This sounds like you have some specific device in mind. Sharing that would lead to more specific answers.

Generally speaking the data register holds what you want to send or what you received, assuming your micro has the hardware to do the parallel to serial translation for you.

RXEN is a handshaking signal between senders,not used much today.

Receive interrupt enable turns on a call to an interrupt routine when a new byte is available.
 

MaxHeadRoom

Joined Jul 18, 2013
28,681
What Micro are you using?
The RCIF, Int flag is a read only in many pic's, and indicates a word has been received and causes an interrupt.
The USART recieve enable is CREN set to 1.
Max.
 

freak101

Joined Aug 7, 2017
37
Serial communication is an important topic for those who are working on Microcontrollers. So my question is
1.What is the role of data register in serial communication?
2.What is the difference between Receive enable (RXEN) and Receive interrupt enable? Which one is compulsory and which one is optional for serial data receive?
You need to go through datasheet first or atleast walk through tons of tutorials on the internet.
 
Top