ht82k96e Holtek Semiconductor Inc., ht82k96e Datasheet - Page 24

no-image

ht82k96e

Manufacturer Part Number
ht82k96e
Description
Ht82k96e -- Usb Multimedia Keyboard Encoder 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
HT82K96E
Quantity:
3 240
The A/D converter implemented in the MCU is a 6-channel 8-bit A/D converter. The reference voltage (high reference
voltage and low reference voltage) can be selected as coming from external pins (PB6/VRL and PB7/VRH) or internal
power supplies of MCU (VDD and VSS). The VRL and VRH are used to set the minimal and maximal boundaries of the
full-scale range of the A/D converter. If an analog inputs, VRL or VRH is not used for A/D conversion, it also can be used
as a general purpose I/O line. The ADSC (A/D converter status and control register) register is used to set the configu-
rations and A/D clock sources of A/D converter and control the operation of A/D converter.
The A/D converter data register is used to store the result of A/D conversion.
Mask Options
The following table shows all kinds of mask option in the microcontroller. All of the mask options must be defined to en-
sure proper system functioning.
Rev. 2.00
Bit No.
Bit No.
No.
2~0
7~0
10
11
12
13
1
2
3
4
5
6
7
8
9
4
3
5
6
7
Chip lock bit (by bit)
PA0~PA7 pull-high resistor enabled or disabled (by bit)
PA0~PA5 pull down resistor enabled or disabled (by bit)
PB0~PB7 pull-high resistor enabled or disabled (by nibble)
PC0~PC7 pull-high resistor enabled or disabled (by nibble)
PD0~PD7 pull-high resistor enabled or disabled (by nibble)
LVR enable or disable
WDT enable or disable
WDT clock source: f
PA0~PA7 output structures: CMOS/NMOS open-drain/PMOS open-drain (by bit)
PA0~PA7 wake-up enabled or disabled (by bit)
A/D converter enabled or disabled
CLRWDT instruction(s): 1 or 2
ACS2~ACS0
ADCS1
ADCS0
START
D7~D0
ADON
EOCB
Label
Label
These 3 bits are use to select one of eight A/D converter channels for the conversion.
The A/D converter input channels AN0~AN5 are pin-shared with PB0~PB5. PB6/VRL
and PB7/VRH are used for the A/D converter reference inputs. ACS2,ACS1,ACS0 :
000/001/010/011/100/101/110/111: AN0/AN1/AN2/AN3/AN4/AN5/VRL/VRH
A/D converter clock source selection. ADCS1,ADCS0:
00: 6MHz
01: 3MHz
10: 1.5MHz
11: 0.75MHz
Start the A/D conversion. (0 1 0: start, 0 1: reset A/D converter and A/D data regis-
ter)
This bit is used to control the enable/disable of A/D converter circuit. If this bit is set to
turned-off
End of A/D conversion indication. (0: end of A/D conversion)
Result of A/D conversion
1 the A/D converter enters operating mode. Otherwise, the A/D converter will be
SYS
/4 or WDTOSC
ADSC (1DH) Register
ADR (1EH) Register
24
Option
Function
Function
October 11, 2007
HT82K96E

Related parts for ht82k96e