8XC196NP, 80C196NU USER’S MANUAL

PSW

PSW

no direct access

The processor status word (PSW) actually consists of two bytes. The high byte is the status word, which is described here; the low byte is the INT_MASK register. The status word contains one bit (PSW.1) that globally enables or disables servicing of all maskable interrupts, one bit (PSW.2) that enables or disables the peripheral transaction server (PTS), and six Boolean flags that reflect the state of a user’s program.

The status word portion of the PSW cannot be accessed directly. To access the status word, push the value onto the stack (PUSHF), then pop the value to a register (POP test_reg). The PUSHF and PUSHA instructions save the PSW in the system stack and then clear it; POPF and POPA restore it.

15

Z

N

V

VT

 

 

 

 

7

8

C

PSE

I

ST

 

 

 

 

0

 

 

See INT_MASK on page C-25

 

 

 

Bit

Bit

Function

Number

Mnemonic

 

 

 

 

7

Z

Zero Flag

 

 

This flag is set to indicate that the result of an operation was zero. For

 

 

multiple-precision calculations, the zero flag cannot be set by the instruc-

 

 

tions that use the carry bit from the previous calculation (e.g., ADDC,

 

 

SUBC). However, these instructions can clear the zero flag. This

 

 

ensures that the zero flag will reflect the result of the entire operation, not

 

 

just the last calculation. For example, if the result of adding together the

 

 

lower words of two double words is zero, the zero flag would be set.

 

 

When the upper words are added together using the ADDC instruction,

 

 

the flag remains set if the result is zero and is cleared if the result is not

 

 

zero.

 

 

 

6

N

Negative Flag

 

 

This flag is set to indicate that the result of an operation is negative. The

 

 

flag is correct even if an overflow occurs. For all shift operations and the

 

 

NORML instruction, the flag is set to equal the most-significant bit of the

 

 

result, even if the shift count is zero.

 

 

 

5

V

Overflow Flag

 

 

This flag is set to indicate that the result of an operation is too large to be

 

 

represented correctly in the available space. For shift operations (SHL,

 

 

SHLB, and SHLL), the flag is set if the most-significant bit of the operand

 

 

changes during the shift. For divide operations, the quotient is stored in

 

 

the low-order half of the destination operand and the remainder is stored

 

 

in the high-order half. The overflow flag is set if the quotient is outside

 

 

the range for the low-order half of the destination operand. (Chapter 4,

 

 

“Programming Considerations,” defines the operands and possible

 

 

values for each. See the PSW flag descriptions in Appendix A for

 

 

details.)

 

 

 

C-34

Page 425
Image 425
Intel Microcontroller, 80C196NU, 8XC196NP manual Psw, Pse

Microcontroller, 80C196NU, 8XC196NP specifications

The Intel 8XC196NP and 80C196NU microcontrollers are part of Intel's renowned 16-bit microcontroller series that gained popularity in the 1980s and 1990s for embedded systems applications. Designed for a variety of applications, these microcontrollers are characterized by their robust performance, versatility, and industry-standard architecture.

The 8XC196NP features an enhanced instruction set with over 100 instructions, allowing for efficient code execution. It operates at clock speeds up to 16 MHz, which contributes to improved performance in time-sensitive applications. The microcontroller is equipped with a 16-bit data bus, enabling more efficient data handling compared to its 8-bit predecessors, thus accommodating complex algorithms and large data sets.

In terms of memory architecture, the 8XC196NP supports an addressable memory space of up to 64 KB of program memory and 64 KB of data memory. This configuration provides sufficient space for large applications while ensuring fast data access. The microcontroller includes integrated features such as timers, serial I/O capabilities, and interrupt processing, which enhance its functionality for real-time applications and control mechanisms.

The 80C196NU, on the other hand, is designed for lower power operation, making it suitable for battery-powered devices. This microcontroller maintains similar features to the 8XC196NP while offering advancements that support low-power consumption. The 80C196NU can also function in a range of temperature environments, making it adaptable for industrial applications.

Both the 8XC196NP and 80C196NU support external memory interfacing, allowing designers to expand the system's capability by connecting additional ROM and RAM. This flexibility makes them appealing for developing complex systems, such as motor controls, industrial automation, and consumer electronics.

Another standout feature of these microcontrollers is their built-in debugging capabilities. Intel provided hardware and software tools that enabled developers to test and troubleshoot their applications effectively, reducing the development time and increasing reliability.

Overall, the Intel 8XC196NP and 80C196NU microcontrollers stand out for their dependability, versatility, and performance, contributing significantly to the evolution of embedded system design. Their legacy continues to influence modern microcontroller technology, ensuring their relevance in a wide array of applications today.