Intel 8XC196NP, 80C196NU, Microcontroller manual Accstat

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 397
Image 397

8XC196NP, 80C196NU USER’S MANUAL

ACC_STAT

ACC_STAT

Address:

0BH

(80C196NU)

Reset State:

00H

The accumulator control and status (ACC_STAT) register enables and disables fractional and saturation modes and contains three status flags that indicate the status of the accumulator’s contents.

80C196NU

7

FME

SME

 

 

 

 

0

STOVF

OVF

STSAT

 

 

 

 

Bit

Bit

Function

Number

Mnemonic

 

 

 

 

7

FME

Fractional Mode Enable

 

 

Set this bit to enable fractional mode. (See Table C-4.) In this mode, the

 

 

result of a signed multiplication instruction is shifted left by one bit before it

 

 

is added to the contents of the accumulator.

 

 

For unsigned multiplication, this bit is ignored.

 

 

 

6

SME

Saturation Mode Enable

 

 

Set this bit to enable saturation mode. (See Table C-4.) In this mode, the

 

 

result of a signed multiplication operation is not allowed to overflow or

 

 

underflow.

 

 

For unsigned multiplication, this bit is ignored.

 

 

 

5:3

Reserved; for compatibility with future devices, write zeros to these bits.

 

 

 

2

STOVF

Sticky Overflow Flag

 

 

For unsigned multiplication, this bit is set if a carry out of bit 31 occurs.

 

 

Unless saturation mode is enabled, this bit is set for signed multiplication to

 

 

indicate that the sign bit of the accumulator and the sign bit of the addend

 

 

are equal, but the sign bit of the result is the opposite. (See Table C-4.)

 

 

Software can clear this flag; hardware does not clear it.

 

 

 

1

OVF

Overflow Flag

 

 

This bit indicates that an overflow occurred during the preceding accumu-

 

 

lation. (See Table C-4.)

 

 

This flag is dynamic; it can change after each accumulation.

 

 

 

0

STSAT

Sticky Saturation Flag

 

 

This bit indicates that a saturation has occurred during accumulation with

 

 

saturation mode enabled. (See Table C-4.)

 

 

Software can clear this flag; hardware does not clear it.

 

 

 

C-6

Page 397
Image 397
Intel 8XC196NP, 80C196NU, Microcontroller manual Accstat