
Rev. 1.60
148
August 20, 2019
Rev. 1.60
149
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
0101: External AN5 input
0110: External AN6 input
0111: External AN7 input
1xxx: Internal signal from temperature sensor – temperature output voltage or
reference voltage
The "1xxx" selection is only available when the TSE bit is set to 1. To select the
internal temperature sensor signal to be converted, these bits must be set as "1xxx"
when the TSE bit is set to 1. Otherwise, these bits are used to select the external ANn
channel input without the regard of the ACS3 value if the TSE bit is cleared to 0.
• ADCR1 Register
Bit
7
6
5
4
3
2
1
0
Name
ATM
—
IDLE_CONV VREFS
—
ADCK2 ADCK1 ADCK0
R/W
R/W
—
R/W
R/W
—
R/W
R/W
R/W
POR
0
—
0
0
—
0
0
0
Bit 7
ATM
: A/D auto-conversion mode enable control
0: Disable
1: Enable
When this bit is set to 1, the A/D converter will continuously perform the data
conversion after the current conversion is complete without configuring the "START"
bit by application program. Note that the A/D conversion data can only be read in the
A/D conversion completion interrupt service subroutine when the A/D auto-conversion
mode is enabled.
Bit 6
Unimplemented, read as "0"
Bit 5
IDLE_CONV
: CPU idle conversion mode enable control
0: Disable
1: Enable
When this bit is set to 1, the A/D conversion with CPU idle mode will be enabled. The
CPU will not operate when the A/D converter is operating with the IDLE_CONV bit
being set to 1 until the conversion is completed.
Bit 4
VREFS
: A/D converter reference voltage select
0: Internal A/D converter power
1: VREF pin
This bit is used to select the A/D converter reference voltage and only available when
the VREFP_EXT bit in the TSC2 register is set to 1. It is recommended to keep the
VREFP_EXT bit low when the internal temperature sensor signal is selected to be
converted.
Bit 3
Unimplemented, read as "0"
Bit 2~0
ADCK2~ADCK0
: A/D conversion clock source select
000: f
SYS
001: f
SYS
/2
010: f
SYS
/4
011: f
SYS
/8
100: f
SYS
/16
101: f
SYS
/32
110: f
SYS
/64
111: f
SYS
/128
These bits are used to select the clock source for the A/D converter. It is recommended
that the A/D conversion clock frequency should be in the range from 500 kHz
to 1MHz by properly configuring the ADCK2~ADCK0 bits when the internal
temperature sensor signal is selected to be converted as temperature sensor enabled,