English
Language : 

BS83B08-3 Datasheet, PDF (80/141 Pages) Holtek Semiconductor Inc – 8-Bit Touch Key Flash MCU
BS83B08-3/B12-3/B16-3/B16G-3/C24-3
8-Bit Touch Key Flash MCU
Touch Key Interrupt
Each touch key module, which consists of four touch keys, has two independent interrupts, one for
each of the, 16-bit C/F counter and time slot counter.
The time slot counter interrupt has its own interrupt vector while the 16-bit C/F counter interrupts are
contained within the Multi-function interrupts and therefore do not have their own vector. Care must
be taken during programming as the 16-bit C/F counter interrupt flags contained within the
Multi-function interrupts will not be automatically reset upon entry into the interrupt service routine
but rather must be reset manually by the application program. More details regarding the touch key
interrupts are located in the interrupt section of the datasheet.
Programming Considerations
After the relevant registers are setup, the touch key detection process is initiated the changing the
MnST bit from low to high. This will enable and synchronise all relevant oscillators. The MnRCOV
flag, which is the time slot counter flag will go high and remain high until the counter overflows. When
this happens an interrupt signal will be generated.
When the external touch key size and layout are defined, their related capacitances will then determine
the sensor oscillator frequency.
Touch Key (1 Set = Touch Key*4)
Key0
Key1
Key2
C/F &
Mux.
Key3
Enable
16-bit C/F
Counter
16-bit C/F Counter INT Flag
16-bit C/F Counter Overflow Flag
Reference Clock
Mux.
Time Slot
Counter
Time Slot Counter INT flag
Time Slot Counter Overflow flag
Time Slot Counter
Clock Select
Touch Switch Module Block Diagram
M n K 4 IO b it
E x te r n a l P in
I/O o r T o u c h K e y
T o u c h C ir c u its
L o g ic I/O c ir c u its
M n K 3 IO b it
E x te r n a l P in
I/O o r T o u c h K e y
T o u c h C ir c u its
L o g ic I/O c ir c u its
M n K 2 IO b it
E x te r n a l P in
I/O o r T o u c h K e y
T o u c h C ir c u its
L o g ic I/O c ir c u its
M n K 1 IO b it
E x te r n a l P in
I/O o r T o u c h K e y
T o u c h C ir c u its
L o g ic I/O c ir c u its
Touch Key or I/O Function Select
Rev. 1.30
80
September 22, 2011