EasyManua.ls Logo

Holtek BS66F340 - A;D Converter Operation

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 150 August 20, 2019 Rev. 1.60 151 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
TSC2 Register
Bit 7 6 5 4 3 2 1 0
Name VREFP_EXT BIAS D5 D4 D3 D2 TSCLK_S1 TSCLK_S0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0 0 0 0
Bit 7 VREFP_EXT: A/D converter positive reference voltage select
0: Temperature reference voltage – V
TSVREF
1: Determined by VREFS bit
This bit is used to select the A/D converter positive reference voltage. When this bit
is set to 1, the A/D converter reference voltage is determines by the VREFS bit in the
ADCR1 register. However, this bit should be set low to select the V
TSVREF
voltage as
the A/D converter reference voltage together with proper congurations of the OPA2
input signal and gain.
Bit 6 BIAS: OPA2 bias voltage select
0: V
TSVREF
1: Internal A/D converter power
Bit 5~2 D5~D2: Data bits for internal used
These bits should be kept low and can not be changed.
Bit 1~0 TSCLK_S1~TSCLK_S0: Temperature sensor clock source t
TSCLK
select
00: t
TSCLK
=t
ADCK
/4
01: t
TSCLK
=t
ADCK
/8
1x: t
TSCLK
=t
ADCK
/16
The temperature sensor signal conversion time can be obtained using the equation:
Temperature sensor signal conversion time=(5
×
N+1+16)
×
t
ADCK
In the above equation "N" represents the divided ratio, 4, 8 or 16, which is determined
by the TSCLK_S1 and TSCLK_S0 bits.
TSC3Register
Bit 7 6 5 4 3 2 1 0
Name K_VPTAT
R/W R/W
POR 0
Bit 7~6 Unimplemented, read as "0"
Bit 5 K_VPTAT: OPA1 input voltage select
0: V
BG
1: V
PTAT
This bit is used to select the OPA1 input voltage to obtain the internal temperature
sensor reference voltage.
Bit 4~0 Unimplemented, read as "0"
A/D Converter Operation
The START bit in the ADCR0 register is used to start the AD conversion. When the microcontroller
sets this bit from low to high and then low again, an analog to digital conversion cycle will be initiated.
The ADBZ bit in the ADCR0 register is used to indicate whether the analog to digital conversion process
is in progress or not. This bit will be automatically set to 1 by the microcontroller after an A/D conversion
is successfully initiated. When the A/D conversion is complete, the ADBZ will be cleared to 0. In
addition, the corresponding A/D interrupt request ag will be set in the interrupt control register, and if
the interrupts are enabled, an internal interrupt signal will be generated. This A/D internal interrupt signal
will direct the program ow to the associated A/D internal interrupt address for processing. If the A/D
internal interrupt is disabled, the microcontroller can poll the ADBZ bit in the ADCR0 register to check
whether it has been cleared as an alternative method of detecting the end of an A/D conversion cycle.

Table of Contents

Related product manuals