SN8P2501B
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD Page 3 Version1.3
目 录
修正记录 .........................................................................................................................................................................2
目 录..............................................................................................................................................................................3
1
1
1
产品概述 .....................................................................................................................................................................5
1.1 功能特性 ............................................................................................................................................................5
1.2 系统结构框图 .....................................................................................................................................................6
1.3 引脚配置 ............................................................................................................................................................6
1.4 引脚说明 ............................................................................................................................................................7
1.5 引脚电路结构图 .................................................................................................................................................8
2
2
2
中央处理器(CPU) ..................................................................................................................................................9
2.1 存储器................................................................................................................................................................9
2.1.1 程序存储器(ROM).....................................................................................................................................9
2.1.2 编译选项表(CODE OPTION)..................................................................................................................15
2.1.3 数据存储器(RAM) ...................................................................................................................................16
2.1.4 系统寄存器 ..................................................................................................................................................17
2.2 寻址模式 ..........................................................................................................................................................24
2.2.1 立即寻址......................................................................................................................................................24
2.2.2 直接寻址......................................................................................................................................................24
2.2.3 间接寻址......................................................................................................................................................24
2.3 堆栈..................................................................................................................................................................25
2.3.1 概述 .............................................................................................................................................................25
2.3.2 堆栈寄存器 ..................................................................................................................................................26
2.3.3 堆栈操作举例...............................................................................................................................................26
3
3
3
复位 ..........................................................................................................................................................................27
3.1 概述..................................................................................................................................................................27
3.2 上电复位 ..........................................................................................................................................................28
3.3 看门狗复位.......................................................................................................................................................28
3.4 掉电复位 ..........................................................................................................................................................29
3.4.1 概述 .............................................................................................................................................................29
3.4.2 系统工作电压...............................................................................................................................................29
3.4.3 掉电复位性能改进 .......................................................................................................................................30
3.5 外部复位 ..........................................................................................................................................................32
3.6 外部复位电路 ...................................................................................................................................................33
3.6.1 RC复位电路.................................................................................................................................................33
3.6.2 二极管及RC复位电路 ..................................................................................................................................33
3.6.3 稳压二极管复位电路....................................................................................................................................34
3.6.4 电压偏置复位电路 .......................................................................................................................................34
3.6.5 外部IC复位 ..................................................................................................................................................35
4
4
4
系统时钟 ...................................................................................................................................................................36
4.1 概述..................................................................................................................................................................36
4.2 时钟框图 ..........................................................................................................................................................36
4.3 OSCM寄存器 ...................................................................................................................................................37
4.4 系统高速时钟 ...................................................................................................................................................38
4.4.1 内部高速RC振荡器......................................................................................................................................38
4.4.2 外部高速时钟...............................................................................................................................................39
4.5 系统低速时钟 ...................................................................................................................................................41
4.5.1 系统时钟测试...............................................................................................................................................41
5
5
5
系统工作模式............................................................................................................................................................42
5.1 概述..................................................................................................................................................................42
5.2 模式切换举例 ...................................................................................................................................................43
5.3 唤醒时间 ..........................................................................................................................................................44
5.3.1 概述 .............................................................................................................................................................44
5.3.2 唤醒时间......................................................................................................................................................44
5.3.3 P1W唤醒控制寄存器 ...................................................................................................................................44
6
6
6
中断 ..........................................................................................................................................................................45