| Electronic Components Datasheet Search |
|
HT49CV7 Datasheet(PDF) 26 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT49CV7 Datasheet(HTML) 26 Page - Holtek Semiconductor Inc |
|
26 / 48 page ![]() HT49RV7/HT49CV7 Rev. 1.00 26 April 20, 2006 A/D Converter The 8 channels and 10 bit resolution A/D (9 bits accu- racy) converter are implemented in these microcontrollers. The reference voltage is VDD. The A/D converter contains 4 special registers which are; ADRL (24H), ADRH (25H), ADCR (26H) and ACSR (27H). The ADRH and ADRL contain the A/D result reg- ister higher-order byte and lower-order byte and are read-only. After the A/D conversion is completed, the ADRH and ADRL should be read to get the conversion result data. The ADCR is an A/D converter control regis- ter, which defines the A/D channel number, analog channel select, start A/D conversion control bit and the end of A/D conversion flag. If the user wishes to start an A/D conversion, they should define the PB configura- tion, select the converted analog channel, and give the START bit a rising edge and falling edge (0 ®1®0). At the end of the A/D conversion, the EOCB bit is cleared and an A/D converter interrupt occurs. The ACSR is the A/D clock setting register, which is used to select the A/D clock source. The A/D converter control register is used to control the A/D converter. Bits 2~0 of the ADCR are used to select an analog input channel. There ¢s a total of eight chan- nels to select. Bits 5~3 of the ADCR are used to set the PB configurations. PB can be an analog input or as digi- tal I/O line determined by these 3 bits. Once a PB line is selected as an analog input, the I/O functions and pull-high resistor of this I/O line are disabled and the A/D converter circuit is powered-on. The EOCB bit (bit6 of the ADCR) is end of A/D conversion flag. Check this bit to know when A/D conversion is completed. The START bit of the ADCR is used to begin the conversion of the A/D converter. Giving START bit a rising edge and fall- ing edge means that the A/D conversion has started. In order to ensure that the A/D conversion is completed, the START should remain at ²0² until the EOCB is cleared to ²0² (end of A/D conversion). Bit 7 of the ACSR is used for testing purposes only. It cannot be used by the user. Bits 1~0 of the ACSR are used to select the A/D clock sources. Bit No. Label Function 0~1 ADCS0~ ADCS1 Selects the A/D converter clock source 00= system clock/2 01= system clock/8 10= system clock/32 11= undefined 2~6 ¾ Unused bit, read as ²0² 7 TEST For test mode used only ACSR (27H) Register Bit No. Label Function 0~2 ACS0~ ACS2 Defines the analog channel select. 3~5 PCR0~ PCR2 Defines the port B configuration select. If PCR0, PCR1 and PCR2 are all zero, the ADC cir- cuit is powered-off to reduce power consumption 6 EOCB Provides response at the end of the A/D conversion. (0= end of A/D conversion) 7 START Starts the A/D conversion. (0 ®1®0 =start; 0®1= reset A/D converter) ADCR (26H) Register ACS2 ACS1 ACS0 Analog Channel 000 A0 001 A1 010 A2 011 A3 100 A4 101 A5 110 A6 111 A7 Analog Input Channel Selection |
|
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 |