GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

Program status word(PSW)_1

Deepali Barapatr Micro-controllers and applications Finals Englisch 1 Seite

Inhalt der Notizen (1)

Seite 1

Program status word(PSW)_1

Flags: 1 bit registers provided to store the status of results of some instruction

: It is a flip flop

8051 has :

-4 math flags: Carry(CY), Auxiliary carry(AC), Overflow(OV), Parity(P)

-3 general purpose user flag:

1) Carry flag (CY) - Set when there is a carry or borrow out of the MSB (D7) of the result

2)Auxiliary carry ( AC) -Set when there is a carry out from lower nibble to higher nibble or borrow from higher nibble to lower nibble

3)Overflow flag(OV)-arithmetic overflow has occurred

4)Parity flag(P)-the result has even parity (even no. of 1's)

General purpose flags

-can be set 1 or 0 as programmer desires

-F0,GF0,GF! are the three general purpose flag

-F0 is in PSW and GF0 and GF1 are in PCON register

Informationen

Beschreibung
Note 1
Erstellt von
Deepali Barapatr · Aug 2015
Aktualisiert
19 Feb 2016
Aufrufe
3
Verlauf
  • Erstellt von Deepali Barapatr · 16 Aug 2015
  • Kopiert von Deepali Barapatr · 16 Aug 2015
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck