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

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

Скачать:  PDF   ZIP
HE8P1604
Page 1
Version 1.1
HE8P1604 PRODUCT SPECIFICATION
1.
GENERAL DESCRIPTION .................................................................................................................................................... 3
2.
FEATURES ............................................................................................................................................................................... 3
3.
PIN ASSIGNMENT.................................................................................................................................................................. 3
4.
BLOCK DIAGRAM ................................................................................................................................................................. 4
5.
PIN DESCRIPTION ................................................................................................................................................................. 4
6.
PROGRAM MEMORY (ROM) .............................................................................................................................................. 5
7.
DATA MEMORY (RAM) ........................................................................................................................................................ 5
7.1
RAM BANK LOCATION ................................................................................................................................................ 5
7.2
SYSTEM REGISTER ARRANGEMENT (BANK 0)...................................................................................................... 6
8.
ACCUMULATOR .................................................................................................................................................................... 8
8.1
CARRY FLAG.................................................................................................................................................................. 8
8.2
DECIMAL CARRY FLAG............................................................................................................................................... 8
8.3
ZERO FLAG ..................................................................................................................................................................... 8
9.
WORKING REGISTERS ........................................................................................................................................................ 8
9.1
Y, Z REGISTERS ............................................................................................................................................................. 8
9.2
LOOK-UP TABLE............................................................................................................................................................ 8
9.3
ADDRESSING MODE ..................................................................................................................................................... 9
10.
PROGRAM COUNTER...................................................................................................................................................... 9
10.1
ONE ADDRESS SKIPPING........................................................................................................................................... 10
10.2
MULTI-ADDRESS JUMPING....................................................................................................................................... 10
11.
STACK BUFFER ............................................................................................................................................................... 10
11.1
ACC & WORKING REGISTERS PROTECTION ........................................................................................................ 11
12.
OSCILLATOR ................................................................................................................................................................... 11
12.1
OSCM REGISTER.......................................................................................................................................................... 11
12.2
O
SCILLATOR
O
PTION
........................................................................................................................................................ 12
12.3
INTERNAL LOW CLOCK ............................................................................................................................................ 12
12.4
HIGH-LOW CLOCK EXCHANGE ............................................................................................................................... 12
12.5
0.5 SECOND RESTART FUNCTION ........................................................................................................................... 13
HE8P1604
Page 2
Version 1.1
13.
GTMR PRESCALER ........................................................................................................................................................ 13
13.1
WARMUP TIME ............................................................................................................................................................ 13
13.2
WAKEUP TIME ............................................................................................................................................................. 14
13.3
WATCH DOG (WDOG) TIMER ................................................................................................................................... 14
14.
TIMER/EVENT COUNTER (TC1) ................................................................................................................................. 15
14.1
TC1M MODE REGISTER.............................................................................................................................................. 15
14.2
TC1C COUNTING REGISTER ..................................................................................................................................... 16
14.3
TC1R AUTO-LOAD REGISTER................................................................................................................................... 16
14.4
PWM1 FUNCTION DESCRIPTION ............................................................................................................................. 16
15.
INTERRUPT ...................................................................................................................................................................... 17
15.1
INTEN INTERRUPT ENABLE REGISTER ................................................................................................................. 17
15.2
INTRQ INTERRUPT REQUEST REGISTER ............................................................................................................... 17
16.
I/O PORT............................................................................................................................................................................ 18
16.1
PORT MODE (P
N
M) REGISTER .................................................................................................................................. 18
16.2
PORT (P
N
) DATA REGISTER....................................................................................................................................... 18
16.3
PORT 1 WAKEUP (P1W) REGISTER .......................................................................................................................... 18
17.
APPLICATION NOTE...................................................................................................................................................... 19
18.
ABSOLUTE MAXIMUM RATING................................................................................................................................. 20
19.
ELECTRICAL CHARACTERISTIC.............................................................................................................................. 20
20.
INSTRUCTION SET ......................................................................................................................................................... 21
21.
PACKAGE INFORMATION ........................................................................................................................................... 22
HE8P1604
Page 3
Version 1.1
HE8P1604 8-bit microcontroller
1. GENERAL DESCRIPTION
he HE8P1604 is an 8-bit micro-controller utilized with CMOS technology fabrication and featured with low power
consumption and high performance by its unique electronic structure. This chip is designed with the excellent IC structure,
including the program memory up to 4096-word OTP ROM, 128 bytes of the data memory, one 8-bit timer/event counter,
watchdog timer, two interrupt sources (TC1, INT0), 22 I/O pins and 4 levels stack buffer. Besides, the user can choose desired
oscillator configurations for the controller. There are four external oscillator configurations to select for generating system clock,
including high-performing crystal, ceramic resonator, cost-saving RC and internal RC oscillator.
2. FEATURES
Memory configuration
Two interrupt sources:
OTP ROM size : 4096 * 16 bits.
One internal interrupt : TC1
RAM size : 128 * 8 bits.
One external interrupt : INT0
I/O pin configuration (Total 22 pins)
Four levels stack buffer
One input pin with interrupt function.
An 8-bit timer/event counter.
10 pins with wake-up function.
An 8-bit PWM output or one Buzzer output
Two intput/output port : 12 pins for general purpose.
A watchdog timer.
Built-in voltage detector for the Reset function
Acceptable oscillator type
Crystal or ceramic resonator speed up to 20MHz
56 powerful instructions
RC oscillator type speed up to 10MHz
All of instructions are 1 word with 1 or 2 cycles'
execution.
Internal RC oscillator 16KHz
Execution time : 1 cycle uses 4 clocks of oscillator.
All ROM area JMP instruction.
Package :
All ROM area Subroutine CALL instruction.
SKDIP : 28
All ROM area lookup table function.(MOVC instruction)
SOP : 28
3. PIN ASSIGNMENT
P0.1
1
U
28 RESET
VDD
2
27 XIN
VPP
3
26 XOUT/Fcpu
VSS
4
25 P2.7
P0.0/INT0
5
24 P2.6
P5.0
6
23 P2.5
P5.1
7
22 P2.4
P5.2
8
21 P2.3
P5.3/TC1/PWM1
9
20 P2.2
P1.0 10
19 P2.1
P1.1 11
18 P2.0
P1.2 12
17 P1.7
P1.3 13
16 P1.6
P1.4 14
15 P1.5
HE8P1604K
HE8P1604S
T
HE8P1604
Page 4
Version 1.1
4. BLOCK DIAGRAM
PC
IR
OTP
ROM
H-OSC
TIMING GENERATOR
RAM
SYSTEM REGISTER
ALU
ACC
INTERRUPT
CONTROL
TIMER & COUNTER
PORT 0
PORT 2
PORT 1
PORT 5
FLAGS
1604PA system block
H-OSC
Internal
CLK
PWM
PWM / Buzzer
Low Volt
Detector
Watch-Dog
Timer
5. PIN DESCRIPTION
PIN NAME
TYPE
DESCRIPTION
VDD, VSS
P
Power supply input pins.
VPP/NC
I
During program op-code, this pin be pull to 12.5Vdc to reset internal address counter and to
write data into OTP-ROM. This pin must be kept no connection during normal operation.
RST
I
System reset inputs pin. Schmitt trigger structure, active "low", normal stay to "high".
XIN
I
Oscillator input pin.
XOUT/Fcpu
I/O
Oscillator output pin. RC Mode as the Fcpu output
P0.0/INT0
I
Port 0.0 and INT0 trigger pin with Schmitt trigger structure or wake-up from sleep mode
P0.1
I
P0.1 with wake-up function. The P0.1 can be the clock input for the TC1
P1.0 ~ P1.7
I/O
Port 1.0 ~ Port 1.7 bi-direction pins with sleep mode wake-up function
P2.0 ~ P2.7
I/O
Port 2.0 ~ Port 2.7 bi-direction pins.
P5.0 ~ P5.3
I/O
P5.0 ~ P5.3 bi-direction pin, P5.3 as TC1 output for PWM and Buzzer function
HE8P1604
Page 5
Version 1.1
6. PROGRAM MEMORY (ROM)
The HE8P1604 provides the program memory up to 4096-word (4096 * 16 bits) to be addressed and is able to fetch instructions
through 12-bit wide PC (Program Counter). It also can lookup ROM data by using ROM code registers (R, Y, Z). All of the
program memory is partitioned into two coding areas, located from 000H to 00FH and from 010H to FFFH. The former area is
assigned for executing interrupt vector. And the later area is for storing instruction's OP-code and lookup table's data. The last
location (FFFH) of OTP ROM had been reserved, it can not be used by programming.
OTP ROM
000h
Reset vector
001h
002h
003h
004h
Reserved
005h
"
006h
"
007h
"
008h
Interrupt vector
009h
.
00Ah
.
.
.
.
.
010h
General purpose area
.
.
.
.
.
.
.
.
.
.
.
.
FFEh
.
FFFh
Reserved
7. DATA MEMORY (RAM)
The HE8P1604 has built-in 128 bytes memory location to store general purpose data and built-in special purpose memory to work
as system registers. These memory locations are allocated in RAM bank 0, first 128-byte (00H ~ 7FH) shared for general data
memory and last 128 bytes (80H ~ FFH) shared for system registers.
7.1 RAM BANK LOCATION
RAM location
00h
General purpose area
7Fh
End of Ram
80h
System registers
"
"
"
"
FFh
"