role of data register in serial communication

Discussion in 'Embedded Systems and Microcontrollers' started by Mahmud Hasan 1, Aug 7, 2017.

  1. Mahmud Hasan 1

    Thread Starter New Member

    Aug 7, 2017
    2
    0
    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?
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,977
    1,838
    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.
     
  3. MaxHeadRoom

    Expert

    Jul 18, 2013
    17,752
    5,402
    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.
     
  4. Mahmud Hasan 1

    Thread Starter New Member

    Aug 7, 2017
    2
    0
    ATmega32 Microcontroller
     
  5. MaxHeadRoom

    Expert

    Jul 18, 2013
    17,752
    5,402
    I would expect the answers to be in the Data sheet on the device?
    Max.
     
  6. freak101

    Member

    Aug 7, 2017
    37
    0
    You need to go through datasheet first or atleast walk through tons of tutorials on the internet.
     
Loading...