EasyManua.ls Logo

Holtek BS66F340 - Serial Interface Module Interrupt

Default Icon
242 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 1.60 210 August 20, 2019 Rev. 1.60 211 August 20, 2019
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
TB0C Register
Bit 7 6 5 4 3 2 1 0
Name TB0ON TB02 TB01 TB00
R/W R/W R/W R/W R/W
POR 0 0 0 0
Bit 7 TB0ON: Time Base 0 Enable Control
0: Disable
1: Enable
Bit 6~3 unimplemented, read as "0"
Bit 2~0 TB02~TB00: Time Base 0 time-out period selection
000: 2
8
/f
PSC0
001: 2
9
/f
PSC0
010: 2
10
/f
PSC0
011: 2
11
/f
PSC0
100: 2
12
/f
PSC0
101: 2
13
/f
PSC0
110: 2
14
/f
PSC0
111: 2
15
/f
PSC0
TB1C Register
Bit 7 6 5 4 3 2 1 0
Name TB1ON TB12 TB11 TB10
R/W R/W R/W R/W R/W
POR 0 0 0 0
Bit 7 TB1ON: Time Base 1 Enable Control
0: Disable
1: Enable
Bit 6~3 unimplemented, read as "0"
Bit 2~0 TB12~TB10: Time Base 1 time-out period selection
000: 2
8
/f
PSC1
001: 2
9
/f
PSC1
010: 2
10
/f
PSC1
011: 2
11
/f
PSC1
100: 2
12
/f
PSC1
101: 2
13
/f
PSC1
110: 2
14
/f
PSC1
111: 2
15
/f
PSC1
Serial Interface Module Interrupt
The Serial Interface Module Interrupt, also known as the SIM interrupt, is contained within the
Multi-function Interrupt. A SIM Interrupt request will take place when the SIM Interrupt request
ag, SIMF, is set, which occurs when a byte of data has been received or transmitted by the SIM
interface, an I
2
C slave address match or I
2
C bus time-out occurrence. To allow the program to
branch to its respective interrupt vector address, the global interrupt enable bit, EMI, the Serial
Interface Interrupt enable bit, SIME, and Muti-function interrupt enable bit must rst be set. When
the interrupt is enabled, the stack is not full and any of the above described situations occurs, a
subroutine call to the respective Multi-function Interrupt vector, will take place. When the Serial
Interface Interrupt is serviced, the EMI bit will be automatically cleared to disable other interrupts,
however only the Multi-function interrupt request ag will be also automatically cleared. As the
SIMF ag will not be automatically cleared, it has to be cleared by the application program.

Table of Contents

Related product manuals