Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4867

General • Re: Getting Out Of A UART Framing Error

$
0
0
I got caught out by the 'write a 1 to clear the bit' when using some other 'read/write-clear' register. The problem is the RP2040 and RP235X datasheets only says -

"This bit is cleared to 0 by a write to UARTECR"

No indication that a non-zero value has to be written or if the value needs a 1 to be set in the position of the bit(s) you want to clear.

Some micros do clear hardware registers on any write and it's not obvious the RP2 is any different, isn't as simple as the documentation says it is.

Someone should raise it as a documentation issue.

Statistics: Posted by hippy — Fri Dec 13, 2024 1:40 pm



Viewing all articles
Browse latest Browse all 4867

Trending Articles