SN8P2977
8-Bit Micro-Controller with Regulator, PGIA, 24-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 56
Version 1.7
6.2 INTEN INTERRUPT ENABLE REGISTER
INTEN is the interrupt request control register including four internal interrupts, two external interrupts enable control
bits. One of the register to be set “1” is to enable the interrupt request function. Once of the interrupt occur, the stack is
incremented and program jump to ORG 8 to execute interrupt service routines. The program exits the interrupt service
routine when the returning interrupt service routine instruction (RETI) is executed.
0C9H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
INTEN
ADCIEN
-
TC0IEN
T0IEN
URXIEN
UTXIEN
P01IEN
P00IEN
Read/Write
R/W
-
R/W
R/W
R/W
R/W
R/W
R/W
After Reset
0
-
0
0
0
0
0
0
Bit 0
P00IEN:
External P0.0 interrupt control bit.
0 = Disable INT0 interrupt function.
1 = Enable INT0 interrupt function.
Bit 1
P01IEN:
External P0.1 interrupt control bit.
0 = Disable INT1 interrupt function.
1 = Enable INT1 interrupt function.
Bit 2
UTXIEN:
UART transmit interrupt control bit.
0 = Disable UART transmit interrupt function.
1 = Enable UART transmit interrupt function.
Bit 3
URXIEN:
UART receive interrupt control bit.
0 = Disable UART receive interrupt function.
1 = Enable UART receive interrupt function.
Bit 4
T0IEN:
T0 timer interrupt control bit.
0 = Disable T0 interrupt function.
1 = Enable T0 interrupt function.
Bit 5
TC0IEN:
TC0 timer interrupt control bit.
0 = Disable TC0 interrupt function.
1 = Enable TC0 interrupt function.
Bit 7
ADCIEN:
ADC interrupt control bit.
0 = Disable ADC interrupt function.
1 = Enable ADC interrupt function.
6.3 INTRQ INTERRUPT REQUEST REGISTER
INTRQ is the interrupt request flag register. The register includes all interrupt request indication flags. Each one of the
interrupt requests
occurs, the bit of the INTRQ register would be set “1”. The INTRQ value needs to be clear by
programming after detecting the flag. In the interrupt vector of program, users know the any interrupt requests
occurring by the register and do the routine corresponding of the interrupt request.
0C8H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
INTRQ
ADCIRQ
-
TC0IRQ
T0IRQ
URXIRQ
UTXIRQ
P01IRQ
P00IRQ
Read/Write
R/W
-
R/W
R/W
R/W
R/W
R/W
R/W
After Reset
0
-
0
0
0
0
0
0
Bit 0
P00IRQ: External P0.0 interrupt request bit.
0 = Non INT0 interrupt request.
1 = INT0 interrupt request.
Bit 1
P01IRQ: External P0.1 interrupt request bit.
0 = Non INT1 interrupt request.
1 = INT1 interrupt request.