Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

HT46R0664 Datasheet(PDF) 60 Page - Holtek Semiconductor Inc

Part # HT46R0664
Description  Enhanced A/DLCD Type 8-Bit OTP MCU
PDF  92 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT46R0664 Datasheet(HTML) 60 Page - Holtek Semiconductor Inc

Back Button HT46R0664 Datasheet HTML 56Page - Holtek Semiconductor Inc HT46R0664 Datasheet HTML 57Page - Holtek Semiconductor Inc HT46R0664 Datasheet HTML 58Page - Holtek Semiconductor Inc HT46R0664 Datasheet HTML 59Page - Holtek Semiconductor Inc HT46R0664 Datasheet HTML 60Page - Holtek Semiconductor Inc HT46R0664 Datasheet HTML 61Page - Holtek Semiconductor Inc HT46R0664 Datasheet HTML 62Page - Holtek Semiconductor Inc HT46R0664 Datasheet HTML 63Page - Holtek Semiconductor Inc HT46R0664 Datasheet HTML 64Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 60 / 92 page
background image
Rev. 1.00
60
����st 1�� �011
Rev. 1.00
61
����st 1�� �011
HT46R0664
Enhanced A/D+LCD Type 8-Bit OTP MCU
A/D Input Pins
All of the A/D analog input pins are pin-shared with the I/O pins on Port A, B, E, F. Bits
PCR7~PCR0 in the ANCSR0 register and PCR11~PCR8 in the ANCSR1 register, determine
whether the input pins are setup as normal 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 register
programming, 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 I/O port control registers to enable the A/D input as when the
PCRn bits enable an A/D input, the status of the port control register will be overridden.
Summary of A/D Conversion Steps
The following summarises the individual steps that should be executed in order to implement an
A/D conversion process.
● Step 1
Select the required A/D conversion clock by correctly programming bits ADCS2~ADCS0 in the
ACSR register.
● Step 2
Select which pins are to be used as A/D inputs and configure them as A/D input pins by correctly
programming the PCR11~PCR0 bits in the ANCSR0 and ANCSR1 register.
● Step 3
Enable the A/D by clearing the ADONB in the ACSR register to zero.
● Step 4
Select which channel is to be connected to the internal A/D converter by correctly programming
the ACS3~ACS0 bits which are also contained in the register.
● Step 5
If the interrupts are to be used, the interrupt control registers must be correctly configured to
ensure the A/D converter interrupt function is active. The master interrupt control bit, EMI, the
INTC0 interrupt control register must be set to “1”, the A/D converter interrupt bit, ADE, must
also be set to “1”.
● Step 6
The analog to digital conversion process can now be initialised by setting the START bit in the
ADCR register from low to high and then low again. Note that this bit should have been originally
cleared to zero.
● Step 7
To check when the analog to digital conversion process is complete, the EOCB bit in the ADCR
register can be polled. The conversion process is complete when this bit goes low. When this
occurs the A/D data registers ADRL and ADRH can be read to obtain the conversion value. As an
alternative method, if the interrupts are enabled and the stack is not full, the program can wait for
an A/D interrupt to occur.
Note: When checking for the end of the conversion process, if the method of polling the EOCB bit
in the ADCR register is used, the interrupt enable step above can be omitted.
The accompanying diagram shows graphically the various stages involved in an analog to digital
conversion process and its associated timing.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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