HT56R66 Holtek Semiconductor Inc., HT56R66 Datasheet - Page 50

no-image

HT56R66

Manufacturer Part Number
HT56R66
Description
Tinypower Tm A/d Type With Lcd 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
The START bit in the register is used to start and reset
the A/D converter. When themicrocontroller sets this bit
from low to high and then low again, an analog to digital
conversion cycle will be initiated. When the START bit is
brought from low to high but not low again, the EOCB bit
in the ADCR register will be set to a 1 and the analog
to digital converter will be reset. It is the START bit that is
used to control the overall on/off operation of the internal
analog to digital converter.
The EOCB bit in the ADCR register is used to indicate
when the analog to digital conversion process is com-
plete. This bit will be automatically set to 0 by the
microcontroller after a conversion cycle has ended. In
addition, the corresponding A/D interrupt request flag
will be set in the interrupt control register, and if the inter-
rupts are enabled, an appropriate internal interrupt sig-
nal will be generated. This A/D internal interrupt signal
will direct the program flow to the associated A/D inter-
nal interrupt address for processing. If the A/D internal
interrupt is disabled, the microcontroller can be used to
poll the EOCB bit in the ADCR register to check whether
it has been cleared as an alternative method of detect-
ing the end of an A/D conversion cycle.
The clock source for the A/D converter, which originates
from the system clock f
ratio, the value of which is determined by the ADCS2,
ADCS1 and ADCS0 bits in the ACSR register.
Rev. 1.10
SYS
, is first divided by a division
A/D Converter Control Register - ADCR
50
Controlling the on/off function of the A/D converter cir-
cuitry is implemented using the ADONB bit in the ACSR
register and the value of the PCR bits in the ADCR reg-
ister. Both the ADONB bit must cleared to 0 and the
value of the PCR bits must have a non-zero value for the
A/D converter to be enabled.
Although the A/D clock source is determined by the sys-
tem clock f
there are some limitations on the maximum A/D clock
source speed that can be selected. As the minimum value
of permissible A/D clock period, t
taken for system clock speeds in excess of 4MHz. For
system clock speeds in excess of 4MHz, the ADCS2,
ADCS1 and ADCS0 bits should not be set to 000 . Doing
so will give A/D clock periods that are less than the mini-
mum A/D clock period which may result in inaccurate A/D
conversion values. Refer to the following table for exam-
ples, where values marked with an asterisk * show where,
depending upon the device, special care must be taken,
as the values may be less than the specified minimum A/D
Clock Period.
PCR
> 0
> 0
0
SYS
, and by bits ADCS2, ADCS1 and ADCS0,
ADONB
HT56R66/HT56R666
0
1
x
AD
, is 0.5 s, care must be
September 8, 2009
A/D
Off
On
Off

Related parts for HT56R66