Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
34
Добавлен:
27.04.2015
Размер:
1.98 Mб
Скачать

Port B Programming Model

5.1.3 Port B Interrupt (PBINT) Register

The Port B interrupt (PBINT) register is a 16-bit read/write control register used to set up and control the capability of generating interrupts from the lower eight Port B GPIO pins. The bits of this register are defined in the following subsections.

NOTE:

The GPIO interrupt can be masked using the CH0 bit (bit 15) in the interrupt priority register (IPR). See Section 3.3.1, “DSP56824 Interrupt Priority Register (IPR),” on page 3-14 for information on the IPR.

5.1.3.1 Interrupt Mask (MSK[7:0])—Bits 15–8

The interrupt mask (MSK[7:0]) control bits are used to enable each of the lower eight Port B pins that can generate a GPIO interrupt. The programming for each of these 8 bits is described in Table 5-3 on page 5-5. The MSK[7:0] bits are cleared on hardware reset.

Table 5-3. MSK Bit Definition

MSK

Function

0Pin masked from generating interrupt

1Pin enabled for generating interrupt

NOTE:

Before any set MSK bit can enable a pin to generate an interrupt, the pin must be configured as an input pin in the PBDDR.

Port B programmable interrupts have the lowest priority of maskable interrupts. Table 3-6 on page 3-16 lists the interrupt priority order for the DSP56824.

5.1.3.2 Interrupt Invert (INV[7:0])—Bits 7–0

The interrupt invert (INV[7:0]) bits are used to individually program whether a rising or falling transition is detected on a pin. The programming for each of these 8 bits is described in Table 5-4. The INV[7:0] bits are cleared on hardware reset.

Table 5-4. INV Bit Definition

INV

Transition Detected

 

 

 

 

0

Rising Edge

 

 

1

Falling Edge

 

 

Port B GPIO Functionality

5-5

Соседние файлы в папке DSP568xx