While trying to send data byte through UART0, an by writing this data byte to D register, the content of data register D doesn't change and always has a zero value 0x00. What is the problem here? There are a snapshots show that. Also TC and TDRE always set to 1.
In addition, if you'd like to be able to better manage those values. You can create a buffer, that stores the values being read from this register.
Then compare your buffers to confirm if the data is being written correctly.
Best Regards,
Sabina
Hi
The data register is used to write data to that is to be sent and read data that is received. That is, unless you have a loop-back where the data your send is received, you won't see the value that was written (you will see the last data that was received).
You should however see the written data being sent out on the Tx pin.
Regards
Mark
(uTasker project developer for Kinetis and i.MX RT)