Intel 8XC196MD manual Intmask, COMP2 EPA2 COMP1 EPA1 COMP3 COMP0 EPA0 Ovrtm, COMP2 MC, MD, Ovrtm †

Models: 8XC196MD 8XC196MH 8XC196MC

1 579
Download 579 pages 24.12 Kb
Page 102
Image 102

STANDARD AND PTS INTERRUPTS

INT_MASK

Address:

0008H

 

Reset State:

00H

The interrupt mask (INT_MASK) register enables or disables (masks) individual interrupt requests. (The EI and DI instructions enable and disable servicing of all maskable interrupts.) INT_MASK is the low byte of the processor status word (PSW). PUSHF or PUSHA saves the contents of this register onto the stack and then clears this register. Interrupt calls cannot occur immediately following this instruction. POPF or POPA restores it.

 

7

 

 

 

MC, MD

COMP2

EPA2

COMP1

EPA1

 

7

 

 

 

MH

 

 

 

 

COMP3

COMP2

COMP1

EPA1

 

 

 

 

 

0

COMP0

EPA0

AD

OVRTM

 

 

 

 

0

COMP0

EPA0

AD

OVRTM

 

 

 

 

Bit

 

Function

 

Number

 

 

 

 

 

 

 

 

7:0

Setting a bit enables the corresponding interrupt.

 

 

The standard interrupt vector locations are as follows:

 

 

Bit Mnemonic

Interrupt

Standard Vector

 

COMP2 (MC, MD)

EPA Compare-only Channel 2

200EH

 

COMP3 (MH)

EPA Compare-only Channel 3

200EH

 

EPA2 (MC, MD)

EPA Capture/Compare Channel 2

200CH

 

COMP2 (MH)

EPA Compare Channel 2

200EH

 

COMP1

EPA Compare Channel 1

200AH

 

EPA1

EPA Capture/Compare Channel 1

2008H

 

COMP0

EPA Compare Channel 0

2006H

 

EPA0

EPA Capture/Compare Channel 0

2004H

 

AD

A/D Conversion Complete

2002H

 

OVRTM

Overflow/Underflow Timer

2000H

Both timer 1 and timer 2 can generate the multiplexed overflow/underflow interrupt. Write to PI_MASK to enable the interrupt sources; read PI_PEND to determine which source caused the interrupt.

Figure 5-7. Interrupt Mask (INT_MASK) Register

5-15

Page 102
Image 102
Intel 8XC196MD Intmask, COMP2 EPA2 COMP1 EPA1 COMP3 COMP0 EPA0 Ovrtm, Bit Mnemonic Interrupt Standard Vector, COMP2 MC, MD