| Electronic Components Datasheet Search |
|
HT46R0664 Datasheet(PDF) 57 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R0664 Datasheet(HTML) 57 Page - Holtek Semiconductor Inc |
|
57 / 92 page ![]() Rev. 1.00 56 ����st 1�� �011 Rev. 1.00 57 ����st 1�� �011 HT46R0664 Enhanced A/D+LCD 8-Bit OTP MCU A/D Converter Control Registers – ADCR, ACSR, ANCSR0, ANCSR1 To control the function and operation of the A/D converter, four control registers known as ANCSR0, ANCSR1, ADCR and ACSR are provided. These 8-bit registers define functions such as the selection of which analog channel is connected to the internal A/D converter, which pins are used as analog inputs and which are used as normal I/Os, the A/D clock source as well as controlling the start function and monitoring the A/D converter end of conversion status. The ACS3~ACS0 bits in the ADCR register define the channel number. As the device contains only one actual analog to digital converter circuit, each of the individual 12 analog inputs must be routed to the converter. It is the function of the ACS3~ACS0 bits in the ADCR register to determine which analog channel is actually connected to the internal A/D converter. The ANCSR0/ANCSR1 control register also contains the PCR11~PCR0 bits which determine whether the A/D function pins are connected to external pin. If the 12-bit address on PCR11~PCR0 has a value of “FFFH”, then all pins will all be set as analog inputs. Note that if the PCR11~PCR0 bits are all set to zero, then all the pins will be setup as normal I/Os. ANCSR0 Register Bit 7 6 5 4 3 2 1 0 Name PCR7 PCR6 PCR5 PCR4 PCR3 PCR� PCR1 PCR0 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~0 PCR[7:0]: define I/O lines or analog inputs configuration to port 0: digital I/O. Pin is assigned as an I/O line or pin-shared function 1: analog input. Pin is switched to analog input ANCSR1 Register Bit 7 6 5 4 3 2 1 0 Name — — — — PCR11 PCR10 PCR9 PCR8 R/W — — — — R/W R/W R/W R/W POR — — — — 0 0 0 0 Bit 7~4 Unused, read as “0” Bit 3~0 PCR[11:8]: define I/O lines or analog inputs configuration to port 0: digital I/O. Pin is assigned as a I/O line or pin-shared function 1: analog input. Pin is switched to analog input ADCR Register Bit 7 6 5 4 3 2 1 0 Name ST�RT EOCB — — �CS3 �CS� �CS1 �CS0 R/W R/W R — — R/W R/W R/W R/W POR 0 1 — — 0 0 0 0 Bit 7 START: Start the A/D conversion 0→1→0: start 0→1: reset the A/D converter and set EOCB to “1” This bit is used to initiate an A/D conversion process. The bit is normally low but if set high and then cleared low again, the A/D converter will initiate a conversion process. When the bit is set high the A/D converter will be reset. Bit 6 EOCB: End of A/D conversion flag 0: A/D conversion ended 1: A/D conversion in progress This read only flag is used to indicate when an A/D conversion process has completed. When the conversion process is running the bit will be high. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |