(prx) A. K. schrieb:
> Weil diese Bitbefehle nur die Datenadressen 0x20..0x3F bzw I/O-Adressen
> 0x00..0x1F ansprechen können.
Hmm, stimmt. Das war mir gar nicht bewusst. Ich dachte immer, dass die
den ganzen I/O-Bereich abdecken. Dann sind GPIOR1/2 tatsächlich recht
sinnlos, und das Datenblatt ist diesbezüglich fehlerhaft. Das behauptet
nämlich, dass das mit allen GPIORs ginge:
"ATtiny48/88 also contains three general purpose I/O registers that can
be used for storing any information. See GPIOR0, GPIOR1 and GPIOR2 in
“Register Summary” on page 277. These general purpose I/O registers are
particularly useful for storing global variables and status flags, since
they are accessible to bit-specific instructions such as SBI, CBI, SBIC,
SBIS, SBRC, and SBRS."