BL22P64 SPECIFICATION
8 - b i t O T P MCU
V1.3
Shanghai Belling Co., Ltd.
上海贝岭股½有限公司
上海贝岭股½有限公司
股½
Shanghai Belling Co., Ltd.
SPECIFICATION
BL22P64 SPECIFICATION
1. PRODUCT OVERVIEW
.
BL22P64 can be used for dedicated control functions in a variety of applications, such as induction
cooker, microwave oven, soybean milk maker and so on.
A dual address/data bus architecture and bit-configurable I/O ports provide a flexible programming
environment for applications with varied memory and I/O requirements. Timer/counter, A/D converter
and PWM are designed for measure and control.
2. FEATURES
.
●
●
●
●
●
●
●
●
●
●
●
8-bit CISC core(compatible with Motorola HC05)
4K byte OTP ROM
208 byte RAM
Three configurable I/O ports (18 pins)
One 8-bit PWM output
One 8-bit timer/counter with time interval mode
A/D converter with nine input channels and 10-bit resolution
Four interrupt sources (two external interrupt, timer interval interrupt, PWM interrupt)
WATCH DOG
3V LVR
Four configurable clock circuit:
Crystal/Ceramic oscillator (400K-4MHz)
External RC oscillator
3.2MHz(VDD=5V) internal RC oscillator
0.5MHz(VDD=5V) internal RC oscillator
Operating Voltage: 2.7-5.5V
Operating temperature: -40-85℃
Package Types: SOP20/DIP20/SOP16
4KV EMC
●
●
●
●
3. PIN ASSIGNMENTS
.
SOP20/DIP20
TEL:86-21-64850700
WEB:
www.belling.com.cn
Page 2 of 15
上海贝岭股½有限公司
上海贝岭股½有限公司
股½
Shanghai Belling Co., Ltd.
SPECIFICATION
BL22P64 SPECIFICATION
4. PIN DESCRIPTIONS
.
Pin name
GND
P10
P11
P12
P20
P21
P22
P23
P24
P25
P26
P00
P01
P02
P03
P04
P05
P06
P07
VDD
In/Out
-
I/O
I/O
IN
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
-
Voltage input
Bit-programmable I/O port for Schmitt trigger input or
push-pull output. Pull-up resistors are assignable by
software.
Bit-programmable I/O port for Schmitt trigger input or
push-pull, open-drain output. Pull-up resistors are
assignable by software.
ground
Bit-programmable I/O port for Schmitt trigger input or
push-pull, open-drain output. Pull-up resistors or
pull-down resistors are assignable by software.
Schmitt trigger input port
Pin Description
Share
Description
-
XIN
XOUT
RESET/VPP
T0
-
-
-
-
-
ADC8/CLO
ADC0/INT0
ADC1/INT1
ADC2
ADC3
ADC4
ADC5
ADC6/PWM
ADC7
-
5. FUNCTION DESCRIPTIONS
.
5.1 BLOCK DIAGRAM
TEL:86-21-64850700
WEB:
www.belling.com.cn
Page 3 of 15
上海贝岭股½有限公司
上海贝岭股½有限公司
股½
Shanghai Belling Co., Ltd.
SPECIFICATION
BL22P64 SPECIFICATION
P00/ADC0/INT0
P01/ADC1/INT1
P02/ADC2
P03/ADC3
P04/ADC4
P05/ADC5
P06/ADC6/PWM
P07/ADC7
XIN
XOUT
OSC
PORT 0
Port I/O and
periphery Control
Basic
Timer
Timer 0
HC05 CPU
PORT 1
P10
P11
P12
ADC
PORT 2
4KB ROM
PWM
208B RAM
P20/T0
P21
P22
P23
P24
P25
P26/ADC8/CLO
Block Diagram
5.2 ADDRESS SPACES
$0000-$002F: Control registers
$0030-$00FF: RAM (208 bytes)
$0100-$0FFF: Reserved
$1000-$1FFF: OTP ROM (4096 bytes)
5.3 CONTROL REGISTERS
Control Registers
Register name
T0CNT
T0DATA
T0CON
MCR
BTCON
BTCNT
P0
P1
P2
P0CONH
P0CONL
P0PND
P1CON
P2CONH
P2CONL
PWMDATA
PWMCON
ADCON
Address
$00
$01
$02
$03
$0C
$0D
$10
$11
$12
$16
$17
$18
$19
$1A
$1B
$22
$23
$27
R/W
R
R/W
R/W
R/W
R/W
R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
0000 0000
1111 1111
00-- 0-00
---- ---R
0000 1000
0000 0000
0000 0000
---- -000
-000 0000
0000 0000
0000 0000
---- 0000
00-- 0000
-000 0000
0000 0000
0000 0000
00-0 0000
0000 1000
TEL:86-21-64850700
WEB:
www.belling.com.cn
Page 4 of 15
上海贝岭股½有限公司
上海贝岭股½有限公司
股½
Shanghai Belling Co., Ltd.
SPECIFICATION
BL22P64 SPECIFICATION
$28
$29
R
R
XXXX XXXX
---- --XX
ADDATAH
ADDATAL
5.3.1 T0CNT(TIMER 0 Counter Register)
)
(
T0CNT is a 8-bit counter register of Timer 0. T0CNT is read only.
NOTE:
●
- :
Not used;
X:
Undefined;
R: Determined by OPBIT[2]
5.3.2 T0DATA(TIMER 0 Data Register)
(
)
T0DATA is a 8-bit Data Register to set match data of Timer 0. When the counter value is identical to
the value written to T0DATA, generates a Timer 0 match interrupt.
5.3.3 T0CON(TIMER 0 Control Register)
(
)
Timer 0 Control Register, is used to select the Timer 0 operating mode.
.7-.6 T0PS[1:0] Timer 0 input clock selection
00: Fsys/4096
01: Fsys/256
10: Fsys/8
11: Fsys
(
NOTE
:
Fsys is system frequency which is half of oscillator’s
)
.5-.4 Not used
.3 T0CLR Timer 0 counter clear bit. Value is “0” when read.
0: No effect
1: Clear the Timer 0 counter (when write) 0
.2 Not used
.1 T0E Timer 0 interrupt enable bit
0: Disable T0 interrupt
1: Enable T0 interrupt
.0 T0F Timer 0 interrupt pending bit
0: No T0 interrupt pending (when read)
0: Clear T0 pending bit (when write)
1: Interrupt is pending (when read)
1: No effect (when write)
5.3.4 MCR(Miscellaneous Control Register)
(
)
MCR is used to control LVR. The reset value is determined by OPBIT[2]。
.7-.1 Not used
.0 LVRE LVR enable bit
0: LVR disable
1: LVR enable
5.3.5 BTCON(Basic Timer Control Register)
(
)
BTCON, is used to select the input clock frequency, to clear the basic timer counter and frequency
dividers, and to control the watchdog timer.
.7-.4 WDTE[3:0] Watchdog timer enable bits
TEL:86-21-64850700
WEB:
www.belling.com.cn
Page 5 of 15