| Electronic Components Datasheet Search |
|
HT46R46 Datasheet(PDF) 18 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R46 Datasheet(HTML) 18 Page - Holtek Semiconductor Inc |
|
18 / 42 page ![]() HT46R46/HT46C46/HT46R47/HT46C47 Rev. 1.00 18 December 28, 2004 A/D Converter The 4 channels and 8-bit resolution for the HT46R46/ HT46C46 or 9-bit resolution for the HT46R47/HT46C47 A/D converter are implemented in this microcontroller. The reference voltage is VDD. The A/D converter con- tains 3 special registers for the HT46R46/HT46C46 which are; ADR (21H), ADCR (22H) and ACSR (23H) or contains 4 special registers for the HT46R47/HT46C47 whice are; ADRL (20H), ADRH (21H), ADCR (22H) and ACSR (23H). The ADR is HT46R46/ HT46C46 an A/D result register that is read-only. The ADRH and ADRL are HT46R47/HT46C47 A/D result register higher-order byte and lower-order byte which are read-only. After the A/D conversion is completed, the ADR (HT46R46/ HT46C46) or ADRL, ADRH (HT46R47/HT46C47) should be read to get the conversion result data. The ADCR is an A/D converter control register, which de- fines the A/D channel number, analog channel select, start A/D conversion control bit and the end of A/D con- version flag. If the users want to start an A/D conversion, define PB configuration, select the converted analog channel, and give START bit a raising edge and a falling edge (0 ®1®0). At the end of A/D conversion, the EOCB bit is cleared and an A/D converter interrupt oc- curs (if the A/D converter interrupt is enabled). The ACSR is A/D clock setting register, which is used to se- lect the A/D clock source. The A/D converter control register is used to control the A/D converter. The bit2~bit0 of the ADCR are used to select an analog input channel. There are a total of four channels to select. The bit5~bit3 of the ADCR are used to set PB configurations. PB can be an analog input or as digital I/O line decided 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 power 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 A/D converter. Give START bit a raising edge and falling edge that means the A/D conversion has started. In or- der to ensure the A/D conversion is completed, the START should stay at ²0² until the EOCB is cleared to ²0² (end of A/D conversion). The bit 7 of the ACSR is used for testing purpose only. It can not be used for the users. The bit1 and bit0 of the ACSR are used to select A/D clock sources. When the A/D conversion is completed, the A/D inter- rupt request flag is set. The EOCB bit is set to ²1² when the START bit is set from ²0² to ²1². Register Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 ADR D7 D6 D5 D4 D3 D2 D1 D0 Note: D0~D7 is A/D conversion result data bit LSB~MSB. ADR (21H) Register for HT46R46/HT46C46 Register Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 ADRL D0 ¾¾¾¾¾¾¾ ADRH D8 D7 D6 D5 D4 D3 D2 D1 Note: D0~D8 is A/D conversion result data bit LSB~MSB. ADRL (20H), ADRH (21H) Register for HT46R47/HT46C47 f S Y S / 2 P W M [ P W M ] = 1 0 0 [ P W M ] = 1 0 1 P W M [ P W M ] = 1 0 2 P W M [ P W M ] = 1 0 3 P W M P W M c y c l e : 2 5 6 / f S Y S 2 5 / 6 4 2 6 / 6 4 2 6 / 6 4 2 6 / 6 4 2 5 / 6 4 2 5 / 6 4 2 5 / 6 4 2 5 / 6 4 2 5 / 6 4 2 5 / 6 4 2 5 / 6 4 2 6 / 6 4 2 6 / 6 4 2 5 / 6 4 2 5 / 6 4 2 6 / 6 4 2 5 / 6 4 2 6 / 6 4 2 6 / 6 4 2 6 / 6 4 M o d u l a t i o n c y c l e 0 P W M m o d u l a t i o n p e r i o d : 6 4 / f S Y S M o d u l a t i o n c y c l e 1 M o d u l a t i o n c y c l e 2 M o d u l a t i o n c y c l e 3 M o d u l a t i o n c y c l e 0 PWM |
|
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 |