KS152JB Universal Communications Controller Technical Specifications

CY

Carry flag: Set for an arithmetic operation which results in a carry being generated

 

from the ALU. It is also used as the accumulator for the bit operations.

 

 

AC

Auxiliary carry: Set when the previous operation resulted in a carry (during addition0

 

or a borrow (during subtraction) from the high order nibble.

 

 

 

 

F0

User flag 0: General purpose flag that can be set or cleared by the user by software.

RS.1-0

Register bank select bits:

 

 

 

 

 

 

 

 

 

 

RS1

 

RS0

Register bank

 

Address

 

 

 

 

 

 

 

0

 

 

0

 

0

 

 

 

00-07h

 

 

 

 

 

 

 

0

 

 

1

 

1

 

 

 

08-0Fh

 

 

 

 

 

 

 

1

 

 

0

 

2

 

 

 

10-17h

 

 

 

 

 

 

 

1

 

 

1

 

3

 

 

 

18-1Fh

 

 

 

 

 

 

OV

Overflow flag: Set when a carry was generated from the seventh bit but not from the

 

8th bit as a result of the previous operation or vice-versa.

 

 

 

 

F1

User Flag 1: General purpose flag that can be set or cleared by the user by software

P

Parity flag: Set/cleared by hardware to indicate odd/even number of 1’s in the accumu-

 

lator.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The PSW sfr is set to 00h by a reset.

 

 

 

 

 

 

 

 

 

There is unrestricted read/write access to this SFR.

 

 

 

 

 

 

 

 

ACCUMULATOR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit:

7

6

5

 

4

3

 

2

 

1

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ACC.7

ACC.6

ACC.5

ACC.4

ACC.3

ACC.2

ACC.1

ACC.0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mnemonic:

ACC

 

 

 

 

 

 

 

 

Address:

E0h

ACC.7-0 The A or ACC register is the accumulator

The ACC is reset to 00h on any reset

This sfr has unrestricted read/write access.

Kawasaki LSI USA, Inc.

Page 118 of 120

Ver. 0.9 KS152JB2

Page 118
Image 118
Kawasaki 80C152, KS152JB, 80C51 technical specifications Accumulator, ACC.7 ACC.6 ACC.5 ACC.4 ACC.3 ACC.2 ACC.1 ACC.0