The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL
INTERRUPT PRIORITY(cont’)

PX0
PT0
PX1
PT1
PS
PT2
--
D7 --

D0

Interrupt Priority Register (Bit-addressable)


External interrupt 0 priority bit
IP.0
PX0

Timer 0 interrupt priority bit
IP.1
PT0

External interrupt 1 priority bit
IP.2
PX1

Timer 1 interrupt priority bit
IP.3
PT1

Serial port interrupt priority bit
IP.4
PS

Timer 2 interrupt priority bit (8052 only)
IP.5
PT2

Reserved
IP.6
--

Reserved
IP.7
-- Priority bit=1 assigns high priorityPriority bit=0 assigns low priority
Free download pdf