
Rev. 1.00
160
October 26, 2018
Rev. 1.00
161
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
• PSCR Register
Bit
7
6
5
4
3
2
1
0
Name
—
—
—
—
—
—
CLKSEL1 CLKSEL0
R/W
—
—
—
—
—
—
R/W
R/W
POR
—
—
—
—
—
—
0
0
Bit 7~2
Unimplemented, read as “0”
Bit 1~0
CLKSEL1~CLKSEL0
: Prescaler clock source f
PSC
selection
00: f
SYS
01: f
SYS
/4
1x: f
SUB
• TBC Register
Bit
7
6
5
4
3
2
1
0
Name
TBON
—
—
—
—
TB2
TB1
TB0
R/W
R/W
—
—
—
—
R/W
R/W
R/W
POR
0
—
—
—
—
0
0
0
Bit 7
TBON
: Time Base Enable Control
0: Disable
1: Enable
Bit 6~4
Unimplemented, read as “0”
Bit 2~0
TB2~TB0
: Time Base time-out period selection
000: 2
8
/f
PSC
001: 2
9
/f
PSC
010: 2
10
/f
PSC
011: 2
11
/f
PSC
100: 2
12
/f
PSC
101: 2
13
/f
PSC
110: 2
14
/f
PSC
111: 2
15
/f
PSC
Multi-function Interrupts
Within the device there are two Multi-function interrupts. Unlike the other independent interrupts,
these interrupts have no independent source, but rather are formed from other existing interrupt
sources, namely the TM interrupts.
A Multi-function interrupt request will take place when the Multi-function interrupt request flag
MFnF is set. The Multi-function interrupt flag will be set when any of its included functions generate
an interrupt request flag. To allow the program to branch to its respective interrupt vector address,
when the Multi-function interrupt is enabled and the stack is not full, and one of the interrupts
contained within the Multi-function interrupt occurs, a subroutine call to the Multi-function interrupt
vector will take place. When the interrupt is serviced, the related Multi-Function request flag will be
automatically reset and the EMI bit will be automatically cleared to disable other interrupts.
However, it must be noted that, although the Multi-function Interrupt request flag will be
automatically reset when the interrupt is serviced, the request flags from the original source of
the Multi-function interrupt will not be automatically reset and must be manually reset by the
application program.
I
2
C Interrupt
An I
2
C interrupt request will take place when the I
2
C Interrupt request flag, IICF, is set, which
occurs when a byte of data has been received or transmitted by the I
2
C interface, or an I
2
C slave
address match occurs, or an I
2
C bus time-out occurs. To allow the program to branch to its respective