Atmel C51 Datový list Strana 22

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 127
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 21
22
AT89C51RB2/RC2
4180E–8051–10/06
INC is a short (2 Bytes) and fast (12 clocks) way to manipulate the DPS bit in the
AUXR1 SFR. However, note that the INC instruction does not directly force the DPS bit
to a particular state, but simply toggles it. In simple routines, such as the block move
example, only the fact that DPS is toggled in the proper sequence matters, not its actual
value. In other words, the block move routine works the same whether DPS is '0' or '1'
on entry. Observe that without the last instruction (INC AUXR1), the routine will exit with
DPS in the opposite state.
Zobrazit stránku 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 126 127

Komentáře k této Příručce

Žádné komentáře