Some bits in certain registers are designated as read or write only. So what exactly happens if someone tries to write to a read-only bit or someone tries to read from a write only bit?
The following is a simple example -
Bits 7, 6, 4 and 3 in TIFR1 (Timer/Counter1 Interrupt Flag Register) of ATmega169 are designated as read-only bits and are supposed to have the initial value of 0.
What would happen if someone were to write a value to those bits as following?
TIFR1 = 0xFF;
Please let me know.
Thanks a lot in advance !