Gast
#4066120
Hallo, ich arbeite mich gerade etwas in den USB eines STM32 ein. Dabei sind auch Interrupt Register zu bearbeiten. Folgendes sagt das Datenblatt dazu: >>To avoid spurious clearing of some bits, it is recommended to clear them >>with a load instruction where all bits which must not be altered are >>written with 1, and all bits to be cleared are written with ‘0 (these bits >>can only be cleared by software). Read-modify-write cycles should be >>avoided because between the read and the write operations another bit >>could be set by the hardware and the next write will clear it before the >>microprocessor has the time to serve the event. Wie muss ich das nun konkret machen, dass hier keine Bits verloren gehen? Gruß Peter