| Electronic Components Datasheet Search |
|
HT46CU26 Datasheet(PDF) 32 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46CU26 Datasheet(HTML) 32 Page - Holtek Semiconductor Inc |
|
32 / 86 page ![]() HT46RU26/HT46CU26 Rev. 1.00 32 June 12, 2008 0 0 0 B 0 0 0 B 0 1 1 B 0 1 0 B S T A R T E O C B P C R 2 ~ P C R 0 A C S 2 ~ A C S 0 P o w e r - o n R e s e t E n d o f A / D c o n v e r s i o n 1 : D e f i n e P B c o n f i g u r a t i o n 2 : S e l e c t a n a l o g c h a n n e l S t a r t o f A / D c o n v e r s i o n R e s e t A / D c o n v e r t e r 0 0 0 B S t a r t o f A / D c o n v e r s i o n R e s e t A / D c o n v e r t e r 0 0 0 B 1 . P B p o r t s e t u p a s I / O s 2 . A / D c o n v e r t e r i s p o w e r e d o f f t o r e d u c e p o w e r c o n s u m p t i o n 1 0 0 B 0 0 1 B S t a r t o f A / D c o n v e r s i o n R e s e t A / D c o n v e r t e r D o n ' t c a r e E n d o f A / D c o n v e r s i o n E n d o f A / D c o n v e r s i o n S T A R T b i t s e t h i g h w i t h i n o n e t o t e n i n s t r u c t i o n c y c l e s a f t e r t h e P C R 0 ~ P C R 2 b i t s c h a n g e s t a t e A / D c l o c k m u s t b e f S Y S / 2 , f S Y S / 8 o r f S Y S / 3 2 N o t e : A / D s a m p l i n g t i m e A / D s a m p l i n g t i m e A / D s a m p l i n g t i m e 3 2 t A D 3 2 t A D 3 2 t A D t A D C A / D c o n v e r s i o n t i m e A / D c o n v e r s i o n t i m e A / D c o n v e r s i o n t i m e t A D C t A D C A/D Conversion Timing A C S R R e g i s t e r S e l e c t A / D c o n v e r t e r c l o c k s o u r c e b 7 b 0 T E S T A D C S 1 A D C S 0 A D C S 1 0 0 1 1 A D C S 0 0 1 0 1 : s y s t e m c l o c k / 2 : s y s t e m c l o c k / 8 : s y s t e m c l o c k / 3 2 : u n d e f i n e d N o t i m p l e m e n t e d , r e a d a s " 0 " F o r t e s t m o d e u s e o n l y A/D Converter Clock Source Register fSYS A/D Clock Period (tAD) ADCS1, ADCS0=00 (fSYS/2) ADCS1, ADCS0=01 (fSYS/8) ADCS1, ADCS0=10 (fSYS/32) ADCS1, ADCS0=11 1MHz 2 ms8ms32ms Undefined 2MHz 1 ms4ms16ms Undefined 4MHz 500ns* 2 ms8ms Undefined 8MHz 250ns* 1 ms4ms Undefined A/D Clock Period Examples A/D Input Pins All of the A/D analog input pins are pin-shared with the I/O pins on Port B. Bits PCR2~PCR0 in the ADCR regis- ter, not configuration options, determine whether the in- put pins are setup as normal Port B input/output pins or whether they are setup as analog inputs. In this way, pins can be changed under program control to change their function from normal I/O operation to analog inputs and vice versa. Pull-high resistors, which are setup through configuration options, apply to the input pins only when they are used as normal I/O pins, if setup as A/D inputs the pull-high resistors will be automatically disconnected. Note that it is not necessary to first setup the A/D pin as an input in the PBC port control register to enable the A/D input, when the PCR2~PCR0 bits enable an A/D input, the status of the port control register will be overridden. The VDD power supply pin is used as the A/D converter reference voltage, and as such analog inputs must not be allowed to exceed this value. Appropriate measures should also be taken to ensure that the VDD pin remains as stable and noise free as possible. Initialising the A/D Converter The internal A/D converter must be in a special way. Each time the Port B A/D channel selection bits are modi- fied by the program, the A/D converter must be re-initialised. If the A/D converter is not initialised after the channel selection bits are changed, the EOCB flag may have an undefined value, which may produce a false end of conversion signal. To initialise the A/D converter after the channel selection bits have changed, then, within a time frame of one to ten instruction cycles, the START bit |
|
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 |