Stop receiving data on error until erroneous data is read
Select to stop receiving data on error until erroneous data is read
Since R2024b
Model Configuration Pane: Hardware Implementation / Simulink or Embedded Coder Hardware Support Package / Hardware board settings / Target hardware resources / UART/USART
Description
Select to stop receiving data on error until erroneous data is read.
Settings
off
|
on
In case
of Buffered mode using RXNE
and Buffered mode using DMA
,
if error flag is set while receiving the data, we have two options:
When Stop receiving data on error until erroneous data is read parameter is disabled, the receiving of data will continue, but the error bit will be set in status output of the next time step read operation itself irrespective of whether the error byte is read from the buffer in that time step or later.
Using this option, we might not know which time step actually reads and outputs the error byte from the buffer, if reading of data happens at a slower rate.
When Stop receiving data on error until erroneous data is read parameter is enabled, DMA/interrupt will be disabled if any error byte is received till that error byte is read from the buffer.
This option will lead to loss of any data transmitted between receiving of an error byte and reading it from the buffer, if reading is happening at a slower rate in the model.
However using this option ensures that the error bit will be set in status output only when error data is read from the buffer
Recommended Settings
No recommendation.
Programmatic Use
No programmatic use is available. |
Version History
Introduced in R2024b