leo72:
Ora a mente non ricordo il buffer hardware della DUE ma penso che almeno 1 carattere lo tenga per cui se parliamo di seriale, il problema potrebbe non presentarsi.
Sempre un carattere è ... e se non leggi, lo perdi perché viene sovrascritto ]![]()
A livello di registri vieni comunque avvisato con la solita flag di Overrun ...
"If UART_RHR has not been read by the software (or the Peripheral Data Controller or DMA Controller) since the last transfer, the RXRDY bit is still set and a new character is received, the OVRE status bit in UART_SR is set. OVRE is cleared when the software writes the control register UART_CR with the bit RSTSTA (Reset Status) at 1."
(pag 759 del datasheet)
Guglielmo