ChipFind - документация

Электронный компонент: HE8P160

Скачать:  PDF   ZIP
KING BILLION ELECTRONICS CO., LTD
HE8P160E
HE80000 Series
1
Preliminary
V1.3E
A. HE8P160 Introduction
HE8P160 is a member of 8-bit microcontroller OTP series product developed by King Billion
Electronics Ltd. This IC uses OTP (One Time Programming) ROM, which can be written by the
OTP writer provided by King Billion. It can provide user with fast verification, pilot-run product,
and more versatile application requests. HE8P160 is a super-set of seven ICs, HE82005HE83000
HE83005HE83115HE83116HE89A21HE89R21) and internal build in 8 channel 12-bit ADC
converter. If user wants to emulate any one of the seven ICs, the OTP EZ-Writer tool will
automatically set the hardware resource, such as ROMRAM size and it is very convenient to use .

This IC has build-in LCD driver which have many configuration and can use Mask Option to select
the configuration, such as 128 pixel LCD driver + 16 Bit I/O Port...64 pixel LCD driver + 32Bit
I/O Port. Build-in voltage regulator let LCD display stable when external battery voltage drop. The
built-in OP operation amplifier can be used with (lightvoicetemperaturehumility) sensor and used
as battery low detection. The 7-bit current-type D/A converter and PWM device provide complete
speech output mechanism.
The instruction set of HE8P160 is quite easy to learn and simple to use. Only about thirty
instructions with four-type addressing mode are provided. Most of instructions take 3 oscillator
clocks (machine cycles). The processing power is enough for most of battery operation system.
B. HE8P160 Features
Operation Voltage:
2.4V 5.5V
System Clock:
DC ~ 8MHz @ 5.0V
DC ~ 4MHz @ 2.4V
Internal ROM:
64K Bytes (64K Program ROM)
Internal RAM:
512 Bytes.
Dual Clock System:
Normal (Fast) clock: 32.768K ~ 8MHz
Slow clock:
32.768 KHz
Operation Mode:
DUALFASTSLOWIDLESLEEP Mode.
Build-in WDT (WATCH DOG TIMER) to prevent deadlock or abnormal condition.
16~32 bit Bi-directional I/O port. Mask Option can select PUSH-PULL or OPEN DRAIN output
mode for each I/O pin. The each of I/O PRTD[3:0] has 5 mA sink capability.
Build-in
OP amplifier
. This OP operating range between
0 ~ (VDD-1)
, that is different from
previous
OP comparator
operating range between 0.8~VDD, the user should notice this. Please set
the operation range on
0.8 ~ (VDD-1)
if users want to design a circuit working both on 8P160 and
target IC.
Build-in 125 KHz, 8-channel 12-bit ADC block.
Build-in voltage regulator which provide LCD stable operating voltage.
4 COM*32 SEG LCD driver which have A, B type. Voltage regulator circuit pleases refer to
application circuit. The LCD highest voltage LV3 must less than 9.0 V.
Contain a 7-bit Current-type D/A converter.
KING BILLION ELECTRONICS CO., LTD
HE8P160E
HE80000 Series
2
Preliminary
V1.3E
Provide PWM output device.(Users can select with or without Rate Selection, connect with
"VDD+PWM" or "PWMP+PWMN")
Two external interrupts and three internal timer interrupts.
Two 16-bit timers and one Time Base timer.
Instruction set: 32 instructions, 4 addressing mode. 9-bit DATA POINTER for RAM and 16-bit
TABLE POINTER for ROM.
C. Mask Option Comparison Table
When user uses KB OTP writer(include application software& hardware) to write data to OTP, user can
select specific IC from software application, in the mean time, the KB OTP writer will set all the
configuration automatically. The following table describes the configuration relative setting, if users want
to use HE8P160 full function setting, please reference following setting.
NAME
Description
82005
83000
83005
83115
83116 89A21 89R21
0: TP not changed at LDV
MO_LDVINC
1: TP++ at LDV
User 1 1 1 1 1
1
0: internal fast OSC
MO_FOSCE
1: external fast OSC, use it now
1 User User User User User
User
0: R/C osc. For fast clock
MO_FXTAL
1: X'tal osc. For fast clock
User User User User User User
User
000: RFRC_I ~= 500k
001: RFRC_I ~= 1M
010: RFRC_I ~= 1.5M
011: RFRC_I ~= 2M
100: RFRC_I ~= 2.5M
101: RFRC_I ~= 3M
110: RFRC_I ~= 3.5M
MO_FRCI_S[2:0]
111: RFRC_I ~= 4M
000:
not exist
User User User User User
User
0: R/C osc. For 32k clock
MO_SXTAL
1: X'tal osc. For 32k clock
0: not
exist
User User User User User
User
00: slow clock only
01: illegal
10: dual clock
MO_FCK/SCKN
11: fast clock only
11 User User User User User
User
0: WDT disable
MO_WDTE
1: WDT enable
0 User User User User User
User
0: open-drain output
MO_CPP[7:4]
1: push-pull output
1 1 User 1 User
User
User
0: open-drain output
MO_CPP[3:0]
1: push-pull output
1 User User User User User
User
0: open-drain output
MO_DPP[7:0]
1: push-pull output
User User User User User User
User
0: open-drain output
MO_14PP[7:0]
1: push-pull output
1 1 1
User
1
User
User
0: open-drain output
MO_15PP[7:0]
1: push-pull output
1 1 1 1 1
User
User
0: IO pin
MO_LIO14[7:0]
1: LCD pin
0 0 0
User
1
User
User
KING BILLION ELECTRONICS CO., LTD
HE8P160E
HE80000 Series
3
Preliminary
V1.3E
NAME
Description
82005
83000
83005
83115
83116 89A21 89R21
0: IO pin
MO_LIO15[7:0]
1: LCD pin
0 0 0 0 1
User
User
0: DTMF clock source 3.58M Hz
MO_DTMFSCK
1: DTMF clock source 32768 Hz
0 0 0 0 0
User
User
0: LCD regulator disable
MO_LVRG
1: LCD regulator enable
0 0 0 0 0 0
User
0: I/O pin
0 0 0 0 0
0
MO_PRTC_ADC[7:0]
1: ADC input
0
0: 2mA IoL
MO_PRTD_HIC[3:0]
1: 5mA IoL
0 0 0 0 0 0
0
0: OTP read protect
MO_PROTECTN
1: OTP not protect
User User User User User User
User
00: ROM 4k byte
01: ROM 8k byte
10: ROM 16k byte
MO_ROM[1:0]
11: ROM 64k byte
11 00 11 11 11
10
10
00: RAM 64 byte
01: RAM 128 byte
10: RAM 256 byte
MO_RAM[1:0]
11: RAM 512 byte
01 00 01 10 10 11
11
0: TC2 not exist
MO_TC2
1: TC2 exist
0 1 1 1 1 1
1
0: TB not exist
MO_TB
1: TB exist
0 0 0 0 0 1
1
00: prt0C not exist
01: only prt0C[3:0] exist
10: only prt0C[7:4] exist
MO_PRT0C[1:0]
11: prt0C exist
00 01 11 01 11 11
11
0: prt14 not exist
MO_PRT14
1: prt14 exist
0 0 0 1 0 1
1
0: prt15 not exist
MO_PRT15
1: prt15 exist
0 0 0 0 0 1
1
0: prt14[7:0]=SEG[19:12]
MO_PRT14_SS
1: prt14[7:0]=SEG[23:16]
0 0 0 0 1 1
1
0: LCD not exist
MO_LCD
1: LCD exist
0 0 0 1 1 1
1
00: PWM not exist
01: PWM logic
10: PWM1 logic
MO_PWM[1:0]
11: PWM not exist
10 00 10 10 01 00
00
0: PWMP/PWMN output
MO_PMD
1: PWM/GND_PWM output
1 0 0 0 0 0
0
0: DAC not exist
MO_VO
1: DAC exist
1 0 1 1 1 0
0
0: OP Amp. not exist
MO_OPAMP
1: OP Amp. exist
0 1 1 1 1 0
0
0: DTMF not exist
MO_DTMF
1: DTMF exist
0 0 0 0 0 1
1
KING BILLION ELECTRONICS CO., LTD
HE8P160E
HE80000 Series
4
Preliminary
V1.3E
D. Pin Description
Pin#
Pin Name
I/O
Function
Description
52, 51
FXI, FXO
B/
O
External fast clock pin.
Connecting to crystal or RC to
generate 32.768 kHz ~ 8MHz
frequency.
55, 54
SXI, SXO
I/
O
External slow clock pin.
Connecting with 32768 Hz crystal
or resistor as slow clock and
providing clock source for LCD
display, TIMER1, Time-Base and
other internal blocks.
Mask option setting
MO_FCK/SCKN= 00Slow Clock only
01Illegal
10Dual Clock
11Fast Clock only
MO_FOSCE = 0Internal fast osc.
= 1External fast osc.
MO_FXTAL = 0RC osc. for fast clock
= 1X'tal osc. for fast clock
MO_SXTAL = 0RC for 32768 Hz clock
= 1X'tal for 32768 Hz clock
Use OP1 and OP2 to switch among different operation
mode (NORMAL, SLOW, IDEL and SLEEP). In Dual
Clock mode, the main system clock is still the Fast Clock.
The 32768 Hz clock is for LCD and Timer 1 only.
50
RSTP_N
I System
Reset.
Level trigger, active low. Except for using this pin, using
mask option (MO_PORE=1) could enable IC build-in
Power-on reset circuit.
Besides, MO_WDTE can set Watch Dog Timer
MO_WDTE=0Disable Watch Dog Timer
=1Enable Watch Dog Timer
53
TSTP_P
I
Test Pin, active high.
Please bond this pin and add a test point on PCB for
debugging. But for improving ESD, please connect this
point with zero Ohm resistor to GND.
82, 83
1..6
PRTC[7:0]
/ADC[7:0];
B
Port C bi-directional I/O pintotal
8 pin or ADC[7:0] can be used as
8-channel ADC Data Input Pin.
Mask options
MO_CPP[7..0]=1 ~ Push-pull.
= 0 ~ Open-drain.
When use them as input (No tri-state structure), it must
Output "1" before reading.
70..77
PRTD[7:0]
B
8-pin bi-directional I/O port.
PRTD[7..2] as wake-up pin.
PRTD[7..6] as external interrupt
pin.
Mask options
MO_DPP[7..0]=1 ~ Push-pull.
= 0 ~ Open-drain.
When use them as input (No tri-state structure), it must
Output "1" before reading.
16..23
PRT14[7:0]/
SEG[23:16]
B/
O
8-pin bi-directional I/O port that is
shared with LCD segment pin.
Mask options
MO_LIO14[7..0]=1 ~ LCD Pin.
= 0 ~ I/O Pin.
MO_14PP[7..0]=1 ~ Push-pull.
=0 ~ Open-drain.
When use them as input (No tri-state structure), it must
Output "1" before reading.
8..15
PRT15[7:0]/
SEG[31:24]
B/
O
8-pin bi-directional I/O port that is
shared with LCD segment pin.
Mask options
MO_LIO15[7..0]=1 ~ LCD Pin.
=0 ~ I/O Pin.
MO_15PP[7..0]=1 ~ Push-pull.
=0 ~ Open-drain.
Output must be "1" before reading whenever uses them as
input (No tri-state structure).
40..43
COM[3:0]
O LCD COM Output
Please reference LCD and RAM map.
24..31
SEG[15:8]/
D[7:0]
O
LCD segment Output/
OTP writing pin
32
SEG[7]/SDO
O Segment/ OTP writing pin
33
SEG[6]/SDI
O Segment/ OTP writing pin
These are LCD segment and OTP Writer shared pin, User
Must refer standard interface to arrange these pins on
PCB board, let KB writer can write data to OTP. These
pins are LCD segment pin on normal mode.
KING BILLION ELECTRONICS CO., LTD
HE8P160E
HE80000 Series
5
Preliminary
V1.3E
Pin#
Pin Name
I/O
Function
Description
34
SEG[5]/SCLK O Segment/ OTP writing pin
35
SEG[4]/D_CN O Segment/ OTP writing pin
36
SEG[3]/R_WN O Segment/ OTP writing pin
37
SEG[2]/P_SN
O Segment/ OTP writing pin
38, 39
SEG[1:0]
O LCD segment Output
45
LC2
B Charge Pump Switch 1
44
LC1
B Charge Pump Switch 2
48
L V3
B Charge Pump
V3
47
L V2
B Charge Pump
V2
46
L V1
B Charge Pump
V1
Refer to application circuit.
63
PWM
O
The PWM output can drive
speaker or buzzer directly.
Set Bit2 (PWM=1) of VOC register to turn on PWM.
65
PWMP
O
The PWM positive output can
drive speaker or buzzer directly.
Set Bit2 (PWM=1) of VOC register to turn on PWM.
64
PWMN
O
The PWM negative output can
drive speaker or buzzer directly.
S Set Bit2 (PWM=1) of VOC register to turn on PWM.
69
VO
O D/A voice output.
Set Bit1 (DA=1) of VOC register to turn on VO.
67
OPIN
I Negative input of OP comparator
68
OPIP
I Positive input of OP comparator
66
OPO
O OPAMP output pin
Set the bit0 (OP=1) of VOC register to turn on OP
comparator.
The operating range between 0 ~ (VDD-1).
59
DTMFO
O DTMF Output
Through Port12can turn on/off DTMF & write data.
Use Mask Option MO_DTMFSCK set clock source
MO_DTMFSCK=0, Clock Source=3.579545 MHz
=1Clock Source=32768 Hz
58
MUTE
O MUTE Output for Dialer
MUTE can be turned on/off by Port12.
60
SDO
O SDO for Dialer Application
SDO & write data can be turned on/off by Port12.
61
KEYTONE
O 1024 Hz 50% Duty square wave KEYTONE can be turned on/off by Port12.
57
LOADER
I Define Loader Mode
Used for program download
78
VREFP
I ADC positive voltage reference
Tie this pin to reference Input: 1V to VDDA
79
VREFN
I ADC negative voltage reference Tie this pin to VSSA
56
VDD
P Digital Positive Power
49
GND
P Digital
Power
Ground
81
VDDA
P Analog Positive Power
80
VSSA
P Analog
Power
Ground
7
VPP
P OTP high voltage power
62
GND_PWM
P Dedicated GND for PWM
Adding 0.1 F capacitor as by-pass capacitor on each set
is necessary.
VDDA and VSSA must always be tied to high and low.