This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UART OF CC2530

S THERE ANY WAY TO USE THE U0CSR REGISTER ... IE I NEED TO CLEAR THE RXBYTE OF U0CSR REGISTER O THAT I CAN ABLE TO RECEIVE DATA CONTINUOUSLY . 

  • Hi Dhileep,

    As described in the datasheet, "This bit is automatically cleared when reading U0DBUF; clearing this bit by writing 0 to it effectively discards the data in U0DBUF"

    So basically in order to clear this bit, you should do something like U0CSR = ((U0CSR & 0xE0) |  0x19)

    This will reserve the top 3 bits which are R/W, and will write 0 to RX_BYTE and will write 1 to the other R/W0 registers in order not to change their value.

    Best regards,

    OD

  • thank u OD .. will check it out .