Rev. 1.00
94
March 24, 2020
Rev. 1.00
95
March 24, 2020
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
M
U
X
f
SYS
/4
f
SYS
f
SUB
Prescaler
CLKSEL[1:0]
f
PSC
f
PSC
/2
8
~ f
PSC
/2
15
M
U
X
TB[2:0]
Time Base Interrupt
TBON
Time Base Interrupt
• 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 selection
00: f
SYS
01: f
SYS
/4
10/11: 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 Control
0: Disable
1: Enable
Bit 6~3
Unimplemented, read as “0”
Bit 2~0
TB2~TB0
: Select Time Base Time-out Period
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 Interrupt
Within the device there are up to 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 touch key TKRCOV interrupt, touch key threshold TKTH interrupt
and TM interrupts.
A Multi-function interrupt request will take place when any of the Multi-function interrupt request
flags, MFnF are set. The Multi-function interrupt flags will be set when any of their 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 either one
of the interrupts contained within each of Multi-function interrupt occurs, a subroutine call to one of
the Multi-function interrupt vectors 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.