PTB O130XXSPTB O131XXS/C
数据手册
带
12
½
ADC、8
½单片机
第
0.05
版
2015
年
6
月
17
日
www.puolop.com
- 1-
2015-6-17
PTBO130XXS/PTBO131XXS/C
重要声明
迪浦
电子保留权利在任½时候变更或终止产品,建议客户在½用或下单前与
迪浦
电子或代理
商联系以取得最新、最正确的产品信息。
迪浦
电子不担保本产品适用于保障生½安全或紧急安全的应用,
迪浦
电子不为此类应用产品
承担任½责任。关键应用产品包括,½不仅限于,可½涉及的½在风险的死亡,人身伤害,火灾
或严重财产损失。
迪浦
电子不承担任½责任来自于因客户的产品设计所造成的任½损失。在
迪浦
电子所保障的
规格范围内,客户应设计和验证他们的产品。为了½量减少风险,客户设计产品时,应保留适½
的产品工½范围安全保障。
提供本文档的中文简½版是为了便于了解,请勿½视文中英文的部½,因为其中提供有关产品性½以及产品½用的有
用信息,
迪浦
电子暨代理商对于文中可½存在的差错不承担任½责任,建议参考本档英文版。
www.puolop.com
- 2-
2015-6-17
PTBO130XXS/PTBO131XXS/C
目
½
1.
单片机特点
.............................................................................................................................................................7
1.1.
1.2.
1.3.
1.4.
系列特点
......................................................................................................................................................7
系统功½
......................................................................................................................................................7
高性½
RISC CPU
架构
...............................................................................................................................7
封装信息
......................................................................................................................................................8
2.
系统概述和方框图
..................................................................................................................................................9
3. PTBO130XXS/PTBO131XXS/C系列引脚功½描述 ...........................................................................................10
4.
器件电气特性
........................................................................................................................................................15
4.1.
4.2.
4.3.
4.4.
4.5.
4.6.
4.7.
4.8.
4.9.
4.10.
4.11.
4.12.
4.13.
4.14.
4.15.
直流/交流特性
............................................................................................................................................15
最大范围
....................................................................................................................................................17
ILRC
频率与
VDD
关系的曲线图
...............................................................................................................18
IHRC
频率与
VDD
关系的曲线图
...............................................................................................................18
ILRC
频率与温度关系曲线图
.....................................................................................................................19
IHRC
频率与温度关系曲线图(校准至
16MH
Z
) ...........................................................................................19
工½电流量测值
@系统时钟= ILRC÷
N
.......................................................................................................20
工½电流量测值
@系统时钟= IHRC÷
N
......................................................................................................20
工½电流量测值
@系统时钟= 4MH
Z
晶振
EOSC÷
N
..................................................................................21
工½电流量测值
@系统时钟= 32
K
H
Z
晶振
EOSC÷
N
.................................................................................21
工½电流量测值
@系统时钟= 1MH
Z
晶振
EOSC÷
N
..................................................................................22
IO
引脚输出驱动电流(I
OH
)和灌电流(I
OL
)曲线图 ..........................................................................................22
测量的
IO
输入阈值电压(V
IH
/V
IL
) ................................................................................................................23
IO
引脚拉高阻抗曲线图
.............................................................................................................................23
开机时序图
.................................................................................................................................................24
5.
功½概述
...............................................................................................................................................................25
5.1.
5.2.
5.3.
5.4.
OTP
程序存储器
........................................................................................................................................25
启动程序
....................................................................................................................................................25
数据存储器
.................................................................................................................................................26
振荡器和时钟
.............................................................................................................................................26
5.4.1.
内部高频振荡器(IHRC)和½频振荡器(ILRC)
.....................................................................26
5.4.2.
单片机校准
.................................................................................................................................27
5.4.3.
IHRC
频率校准和系统时钟
.........................................................................................................27
5.4.4.
外部晶½振荡器
..........................................................................................................................28
5.4.5.
系统时钟和
LVR
水平
.................................................................................................................30
5.4.6.
系统时钟切换
..............................................................................................................................30
16
½计数器
(T
IMER
16) ..............................................................................................................................32
8
½
PWM
计数器(T
IMER
2/T
IMER
3) ............................................................................................................34
5.6.1.
½用
Timer2
产生定期波½
.........................................................................................................35
5.6.2.
½用
Timer2
产生
8
½
PWM
波½
...............................................................................................36
5.6.3.
½用
Timer2
产生
6
½
PWM
波½
...............................................................................................38
看门狗计数器
.............................................................................................................................................39
中断
...........................................................................................................................................................40
省电与掉电模式
.........................................................................................................................................41
5.5.
5.6.
5.7.
5.8.
5.9.
www.puolop.com
- 3-
2015-6-17
PTBO130XXS/PTBO131XXS/C
5.10.
5.11.
5.12.
5.13.
5.9.1.
省电模式(stopexe)
.................................................................................................................42
5.9.2.
掉电模式(stopsys)
.................................................................................................................43
5.9.3.
唤醒
............................................................................................................................................44
IO
设½
......................................................................................................................................................45
复½和
LVR ................................................................................................................................................46
5.11.1.
复½
............................................................................................................................................46
5.11.2. LVR ............................................................................................................................................46
数字½换(ADC)模块
..............................................................................................................................47
5.12.1. AD
½换的输入要求
....................................................................................................................48
5.12.2. ADC
分辨率选择
.........................................................................................................................49
5.12.3.
选择参考高电压
..........................................................................................................................49
5.12.4. ADC
时钟选择
............................................................................................................................49
5.12.5. AD
½换
......................................................................................................................................49
5.12.6.
模拟引脚的配½
..........................................................................................................................50
5.12.7.
½用
ADC ....................................................................................................................................50
乘法器
........................................................................................................................................................51
6. IO
寄存器
..............................................................................................................................................................52
6.1.
6.2.
6.3.
6.4.
6.5.
6.6.
6.7.
6.8.
6.9.
6.10.
6.11.
6.12.
6.13.
6.14.
6.15.
6.16.
6.17.
6.18.
6.19.
6.20.
6.21.
6.22.
6.23.
6.24.
6.25.
6.26.
6.27.
6.28.
6.29.
6.30.
6.31.
6.32.
6.33.
算术逻辑状态寄存器(
FLAG
),IO 地址
= 0
X
00 .......................................................................................52
堆栈指针寄存器(
SP
),IO 地址
= 0
X
02 ..................................................................................................52
时钟控制寄存器(
CLKMD
),IO 地址
= 0
X
03 ............................................................................................52
中断允许寄存器(
INTEN
),IO 地址
= 0
X
04 .............................................................................................53
中断请求寄存器(
INTRQ
),IO 地址
= 0
X
05 .............................................................................................53
乘法器运算域寄存器(
MULOP
),
IO
地址
= 0
X
08 ......................................................................................53
乘法器结果高字节寄存器(
MULRH
),
IO
地址=
0
X
09.................................................................................53
T
IMER
16
控制寄存器(
T
16
M
),IO 地址
= 0
X
06 .......................................................................................54
外部晶½振荡器控制寄存器(
EOSCR
),IO 地址
= 0
X
0
A
..........................................................................54
中断边沿选择寄存器(
INTEGS
),IO 地址
= 0
X
0
C
....................................................................................55
端口
A
数字输入½½寄存器(
PADIER
),IO 地址
= 0
X
0
D
.........................................................................56
端口
B
数字输入½½寄存器(
PBDIER
),IO 地址
= 0
X
0
E
.........................................................................57
端口
A
数据寄存器(
PA
),IO 地址
= 0
X
10 ..............................................................................................58
端口
A
控制寄存器(
PAC
),IO 地址
= 0
X
11 ............................................................................................58
端口
A
上拉控制寄存器(
PAPH
),IO 地址
= 0
X
12 ...................................................................................58
端口
B
数据寄存器(
PB
),IO 地址
= 0
X
14 ..............................................................................................58
端口
B
控制寄存器(
PBC
),IO 地址
= 0
X
15 ............................................................................................58
端口
B
上拉控制寄存器(
PBPH
),IO 地址
= 0
X
16 ...................................................................................58
ADC
控制寄存器(
ADCC
),IO 地址
= 0
X
20 ............................................................................................59
ADC
调节控制寄存器(
ADCRGC
),
IO
地址
= 0
X
1
C
..................................................................................59
ADC
模式控制寄存器(
ADCM
),IO 地址
= 0
X
21.....................................................................................60
ADC
数据高½寄存器(
ADCRH
),IO 地址
= 0
X
22 ...................................................................................60
ADC
数据½½寄存器(
ADCRL
),IO 地址
= 0
X
23 ...................................................................................60
杂项寄存器
(
MISC
)
,
IO
地址
= 0X1
B
.........................................................................................................61
T
IMER
2
控制寄存器
(
TM
2
C
), IO
地址
= 0
X
3
C
..............................................................................................61
T
IMER
2
计数寄存器
(
TM
2
CT
), IO
地址
= 0
X
3
D
............................................................................................62
T
IMER
2
分频器寄存器
(
TM
2
S
), IO
地址
= 0
X
37 .........................................................................................62
T
IMER
2
上限寄存器
(
TM
2
B
), IO
地址=
0
X
09................................................................................................62
T
IMER
3
控制寄存器
(
TM
3
C
), IO
地址=
0
X
2
E
...............................................................................................63
T
IMER
3
控制寄存器(
TM
3
CT
), IO
地址
= 0
X
2
F
.............................................................................................64
T
IMER
3
分频寄存器
(
TM
3
S
), IO
地址
= 0
X
39..............................................................................................64
T
IMER
3
上限寄存器(
TM
3
B
), IO
地址
= 0
X
23 ..............................................................................................64
复½状态寄存器
(
RSTST
), IO
地址
= 0
X
25 .................................................................................................64
www.puolop.com
- 4-
2015-6-17
PTBO130XXS/PTBO131XXS/C
7.
指令
......................................................................................................................................................................65
7.1.
7.2.
7.3.
7.4.
7.5.
7.6.
7.7.
7.8.
7.9.
数据传输类指令
.........................................................................................................................................65
算术运算类指令
.........................................................................................................................................67
移½元运算类指令
......................................................................................................................................69
逻辑运算类指令
.........................................................................................................................................70
½运算类指令
.............................................................................................................................................72
条件运算类指令
.........................................................................................................................................73
系统控制类指令
.........................................................................................................................................75
指令执行周期综述
......................................................................................................................................76
指令½响标志的综述
..................................................................................................................................77
8.
特别注意事项
........................................................................................................................................................78
8.1.
½用
IC
时
..................................................................................................................................................78
8.1.1.
IO
½用与设定
.............................................................................................................................78
8.1.2.
中断
............................................................................................................................................80
8.1.3.
系统时钟
.....................................................................................................................................80
8.1.4.
掉电模式、唤醒以及看门狗
........................................................................................................81
8.1.5.
TIMER
溢出时间
.........................................................................................................................82
8.1.6.
LVR ............................................................................................................................................82
8.1.7.
指令
............................................................................................................................................82
8.1.8.
RAM
定义限制
...........................................................................................................................82
8.1.9.
新增功½
.....................................................................................................................................82
8.1.10.
烧½方法
.....................................................................................................................................82
½用
ICE
时
................................................................................................................................................83
8.2.
www.puolop.com
- 5-
2015-6-17