Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
8xC196EA microcontroller user's manual.1998.pdf
Скачиваний:
52
Добавлен:
23.08.2013
Размер:
8.29 Mб
Скачать

STANDARD AND PTS INTERRUPTS

PIHx_VEC_BASE

Address:

1E92H, 1EA2H

x = 0–1

Reset State:

XXXXH

The peripheral interrupt handler x vector base-address (PIHx_VEC_BASE) registers contain address bits 6–15 of the interrupt vector. Your code must initialize this register before enabling any PIH interrupt sources.

15

 

 

 

 

 

 

 

 

 

 

8

VA15

VA14

 

VA13

VA12

 

 

VA11

VA10

VA9

 

VA8

7

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

VA7

VA6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

Bit

 

 

 

 

Function

 

 

 

Number

Mnemonic

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15:6

VA15:6

Peripheral Interrupt Handler Vector Base-address Bits 6 through 15

 

 

 

This register contains address bits 6 through 15 for the PIHx interrupt

 

 

 

vectors. Always initialize these registers to the following values:

 

 

 

 

PIH0_VEC_BASE = 20C0H

 

 

 

 

 

 

 

PIH1_VEC_BASE = 2100H

 

 

 

 

 

 

 

5:0

Reserved. These bits are undefined; for compatibility with future devices,

 

 

 

do not modify these bits.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 6-4. Peripheral Interrupt Handler x Vector Base (PIHx_VEC_BASE) Registers

6.3.2Special Interrupts

Four special interrupt sources are always enabled: unimplemented opcode, software trap, and NMI, and stack overflow. These interrupts are not affected by the EI (enable interrupts) and DI (disable interrupts) instructions, and they cannot be masked. All of these interrupts are serviced by the interrupt controller; they cannot be assigned to the PTS. Only NMI and stack overflow go through the transition detector and priority resolver. The other two special interrupts go directly to the interrupt controller for servicing. Be aware that these interrupts are often assigned to special functions in development tools.

6.3.2.1Unimplemented Opcode

If the CPU attempts to execute an unimplemented opcode, an indirect vector through location FF2012H occurs. This prevents random software execution during hardware and software failures. The interrupt vector should contain the starting address of an error routine that will not further corrupt an already erroneous situation. When an unimplemented opcode interrupt occurs, no other interrupt request can be acknowledged until after the next instruction executes.

6-13

Соседние файлы в предмете Электротехника