Electronic Components Datasheet Search
  English  ▼

X  

HT48R005 Datasheet(PDF) 40 Page - Holtek Semiconductor Inc

Part # HT48R005
Description  Small Package 8-Bit OTP MCU
PDF  62 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT48R005 Datasheet(HTML) 40 Page - Holtek Semiconductor Inc

Back Button HT48R005 Datasheet HTML 36Page - Holtek Semiconductor Inc HT48R005 Datasheet HTML 37Page - Holtek Semiconductor Inc HT48R005 Datasheet HTML 38Page - Holtek Semiconductor Inc HT48R005 Datasheet HTML 39Page - Holtek Semiconductor Inc HT48R005 Datasheet HTML 40Page - Holtek Semiconductor Inc HT48R005 Datasheet HTML 41Page - Holtek Semiconductor Inc HT48R005 Datasheet HTML 42Page - Holtek Semiconductor Inc HT48R005 Datasheet HTML 43Page - Holtek Semiconductor Inc HT48R005 Datasheet HTML 44Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 40 / 62 page
background image
HT48R005/HT46R005
Rev. 1.00
40
November 29, 2011
fSYS
A/D Clock Period (tADCK)
ADCS2,
ADCS1,
ADCS0=000
(fSYS/2)
ADCS2,
ADCS1,
ADCS0=001
(fSYS/8)
ADCS2,
ADCS1,
ADCS0=010
(fSYS/32)
ADCS2,
ADCS1,
ADCS0=100
(fSYS)
ADCS2,
ADCS1,
ADCS0=101
(fSYS/4)
ADCS2,
ADCS1,
ADCS0=110
(fSYS/16)
ADCS2,
ADCS1,
ADCS0=011,
111
1MHz
2
ms8ms32ms1ms4ms16ms
Undefined
2MHz
1
ms4ms16ms
500ns
2
ms8ms
Undefined
4MHz
500ns
2
ms8ms
250ns*
1
ms4ms
Undefined
8MHz
250ns*
1
ms4ms
125ns*
500ns
2
ms
Undefined
12MHz
167ns*
667ns
2.67
ms
83ns*
333ns*
1
ms
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 A as well as other functions. The PCR2~
PCR0 bits in the ADCR register, determine whether the
input pins are setup as A/D converter analog inputs or
whether they have other functions. If the PCR2~PCR0
bits for its corresponding pin is set high then the pin will
be setup to be an A/D converter input and the original
pin functions disabled. In this way, pins can be changed
under program control to change their function between
A/D inputs and other functions. All pull-high resistors,
which are setup through register programming, will be
automatically disconnected if the pins are setup as A/D
inputs. Note that it is not necessary to first setup the A/D
pin as an input in the PAC port control register to enable
the A/D input as when the PCR2~PCR0 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 con-
version process.
· Step 1
Select the required A/D conversion clock by correctly
programming bits ADCS2~ADCS0 in the ACSR regis-
ter.
· Step 2
Select which pins are to be used as A/D inputs and
configure them by correctly programming the
PCR2~PCR0 bits in the ADCR register.
· Step 3
Enable the A/D by clearing the ADONB bit 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
ACS1~ACS0 bits which are also contained in the
ADCR 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, 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 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 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 ADCR 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
When programming, special attention must be given to
the PCR[2:0] bits in the register. If these bits are all
cleared to zero no external pins will be selected for use
as A/D input pins allowing the pins to be used as normal
I/O pins. When this happens the internal A/D circuitry
will be power down. Setting the ADONB bit high has the
ability to power down the internal A/D circuitry, which
may be an important consideration in power sensitive
applications.



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


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