Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

HT66F016 View Datasheet(PDF) - Holtek Semiconductor

Part Name
Description
MFG CO.
HT66F016
Holtek
Holtek Semiconductor Holtek
'HT66F016' PDF : 116 Pages View PDF
HT66F016/HT66F017/HT68F016/HT68F017
HT66F016R/HT66F017R/HT68F016R/HT68F017R
· ACERL Register
Bit
7
6
5
4
Name
¾
¾
¾
¾
R/W
¾
¾
¾
¾
POR
¾
¾
¾
¾
Bit 7~4
Bit 3
Bit 2
Bit 1
Bit 0
unimplemented, read as ²0²
ACE3: Define PA3 is A/D input or not
0: not A/D input
1: A/D input, AN3
ACE2: Define PA2 is A/D input or not
0: not A/D input
1: A/D input, AN2
ACE1: Define PA1 is A/D input or not
0: not A/D input
1: A/D input, AN1
ACE0: Define PA0 is A/D input or not
0: not A/D input
1: A/D input, AN0
3
ACE3
R/W
1
2
ACE2
R/W
1
1
ACE1
R/W
1
0
ACE0
R/W
1
A/D Operation
The START bit in the ADCR0 register is used to start
and reset the A/D converter. When the microcontroller
sets this bit from low to high and then low again, an ana-
log 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 ADCR0 register will be set high and
the analog to digital converter will be reset. It is the
START bit that is used to control the overall start opera-
tion of the internal analog to digital converter.
The EOCB bit in the ADCR0 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 ADCR0 register to check
whether it has been cleared as an alternative method of
detecting the end of an A/D conversion cycle.
The clock source for the A/D converter, which originates
from the system clock fSYS, can be chosen to be either
fSYS or a subdivided version of fSYS. The division ratio
value is determined by the ADCK2~ADCK0 bits in the
ADCR1 register.
Although the A/D clock source is determined by the sys-
tem clock fSYS, and by bits ADCK2~ADCK0, there are
some limitations on the A/D clock source speed range
that can be selected. As the recommended range of per-
missible A/D clock period, tADCK, is from 0.5ms to 10ms,
care must be taken for selected system clock frequen-
cies. For example, if the system clock operates at a fre-
quency of 4MHz, the ADCK2~ADCK0 bits should not be
set to 000B or 110B. Doing so will give A/D clock periods
that are less than the minimum A/D clock period or
greater than the maximum A/D clock period which may
result in inaccurate A/D conversion values. Refer to the
following table for examples, 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.
Rev. 1.40
77
November 22, 2016
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]