Electronic Components Datasheet Search
  English  ▼

X  

HT68F03 Datasheet(PDF) 101 Page - Holtek Semiconductor Inc

Part # HT68F03
Description  Small Package Enhanced Flash Type 8-Bit MCU with EEPROM
PDF  139 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT68F03 Datasheet(HTML) 101 Page - Holtek Semiconductor Inc

Back Button HT68F03 Datasheet HTML 97Page - Holtek Semiconductor Inc HT68F03 Datasheet HTML 98Page - Holtek Semiconductor Inc HT68F03 Datasheet HTML 99Page - Holtek Semiconductor Inc HT68F03 Datasheet HTML 100Page - Holtek Semiconductor Inc HT68F03 Datasheet HTML 101Page - Holtek Semiconductor Inc HT68F03 Datasheet HTML 102Page - Holtek Semiconductor Inc HT68F03 Datasheet HTML 103Page - Holtek Semiconductor Inc HT68F03 Datasheet HTML 104Page - Holtek Semiconductor Inc HT68F03 Datasheet HTML 105Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 101 / 139 page
background image
HT66F03/HT66F04/HT68F03/HT68F04
Rev. 1.00
101
April 16, 2010
· 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, and the A/D converter inter-
rupt bit, EADI, must both be set high to do this.
· Step 6
The analog to digital conversion process can now be
initialised by setting the START bit in the ADCR regis-
ter 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 pro-
cess is complete, the EOCB bit in the ADCR0 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 in-
terrupts are enabled and the stack is not full, the pro-
gram 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
ADCR0 register is used, the interrupt enable step
above can be omitted.
The accompanying diagram shows graphically the vari-
ous stages involved in an analog to digital conversion
process and its associated timing. After an A/D conver-
sion process has been initiated by the application pro-
gram, the microcontroller internal hardware will begin to
carry out the conversion, during which time the program
can continue with other functions. The time taken for the
A/D conversion is 16tADCK where tADCK is equal to the A/D
clock period.
Programming Considerations
During microcontroller operations where the A/D con-
verter is not being used, the A/D internal circuitry can be
switched off to reduce power consumption, by setting bit
ADOFF high in the ADCR0 register. When this happens,
the internal A/D converter circuits will not consume
power irrespective of what analog voltage is applied to
their input lines. If the A/D converter input lines are used
as normal I/Os, then care must be taken as if the input
voltage is not at a valid logic level, then this may lead to
some increase in power consumption.
The power-on reset condition of the A/D converter con-
trol registers will ensure that the shared function pins
are setup as A/D converter inputs. If any of the A/D con-
verter input pins are to be used for functions, then the
A/D converter control register bits must be properly
setup to disable the A/D input configuration.
A/D Transfer Function
As the devices contain a 12-bit A/D converter, its
full-scale converted digitised value is equal to FFFH.
Since the full-scale analog input value is equal to the
VDD or VREF voltage, this gives a single bit analog input
value of VDD or VREF divided by 4096.
1 LSB= (VDD or VREF)
¸ 4096
The A/D Converter input voltage value can be
calculated using the following equation:
A/D input voltage =
A/D output digital value
´ (VDD or VREF) ¸ 4096
The diagram shows the ideal transfer function between
the analog input value and the digitised output value for
the A/D converter. Except for the digitised zero value,
the subsequent digitised values will change at a point
0.5 LSB below where they would change without the off-
set, and the last full scale digitised value will change at a
point 1.5 LSB below the VDD or VREF level.
A/D Programming Example
The following two programming examples illustrate how
to setup and implement an A/D conversion. In the first
example, the method of polling the EOCB bit in the
ADCR0 register is used to detect when the conversion
cycle is complete, whereas in the second example, the
A/D interrupt is used to determine when the conversion
is complete.



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 93 94 95 96 97 98 99 100  ...More


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