beautypg.com

Rainbow Electronics W78C801 User Manual

Page 6

background image

W78C801

- 6 -

Interrupt Enable Register 0

Bit:

7

6

5

4

3

2

1

0

EA

-

-

-

ET1

EX1

ET0

EX0

Mnemonic: IE

Address: A8H

EA : Global enable. Enable/disable all interrupts.
ET1: Enable Timer 1 interrupt
EX1: Enable external interrupt 1
ET0: Enable Timer 0 interrupt
EX0: Enable external interrupt 0

Interrupt Enable Register 1

Bit:

7

6

5

4

3

2

1

0

EX9

EX8

EX7

EX6

EX5

EX4

EX3

EX2

Mnemonic: IE1

Address: E8H

EX9: Enable external interrupt 9
EX8: Enable external interrupt 8
EX7: Enable external interrupt 7
EX6: Enable external interrupt 6
EX5: Enable external interrupt 5
EX4: Enable external interrupt 4
EX3: Enable external interrupt 3
EX2: Enable external interrupt 2

Note: 0 = interrupt disabled, 1 = interrupt enabled.

Interrupt Priority Register 0

Bit:

7

6

5

4

3

2

1

0

-

PS1

PT2

PS

PT1

PX1

PT0

PX0

Mnemonic: IP0

Address: B8h

IP.7: Unused.
PS1: This bit defines the Serial port 1 interrupt priority. PS = 1 sets it to higher priority level.
PT2: This bit defines the Timer 2 interrupt priority. PT2 = 1 sets it to higher priority level.
PS : This bit defines the Serial port 0 interrupt priority. PS = 1 sets it to higher priority level.
PT1: This bit defines the Timer 1 interrupt priority. PT1 = 1 sets it to higher priority level.
PX1: This bit defines the External interrupt 1 priority. PX1 = 1 sets it to higher priority level.
PT0: This bit defines the Timer 0 interrupt priority. PT0 = 1 sets it to higher priority level.
PX0: This bit defines the External interrupt 0 priority. PX0 = 1 sets it to higher priority level.