SN8P2602B
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD Page 3 Version1.2
目 录
修改记录..............................................................................................................................................................................2
目 录 .................................................................................................................................................................................3
1
1
1
产品概述 .....................................................................................................................................................................5
1.1 功能特性 ............................................................................................................................................................5
1.2 系统结构框图 .....................................................................................................................................................6
1.3 引脚配置 ............................................................................................................................................................7
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) ...................................................................................................................................15
2.1.4 系统寄存器 ..................................................................................................................................................16
2.2 寻址模式 ..........................................................................................................................................................23
2.2.1 立即寻址......................................................................................................................................................23
2.2.2 直接寻址......................................................................................................................................................23
2.2.3 间接寻址......................................................................................................................................................23
2.3 堆栈..................................................................................................................................................................24
2.3.1 概述 .............................................................................................................................................................24
2.3.2 堆栈寄存器 ..................................................................................................................................................25
2.3.3 堆栈操作举例...............................................................................................................................................25
3
3
3
复位 ..........................................................................................................................................................................26
3.1 概述..................................................................................................................................................................26
3.2 上电复位 ..........................................................................................................................................................27
3.3 看门狗复位.......................................................................................................................................................27
3.4 掉电复位 ..........................................................................................................................................................28
3.4.1 概述 .............................................................................................................................................................28
3.4.2 系统工作电压...............................................................................................................................................28
3.4.3 掉电复位性能改进 .......................................................................................................................................29
3.5 外部复位 ..........................................................................................................................................................31
3.6 外部复位电路 ...................................................................................................................................................32
3.6.1 RC复位电路.................................................................................................................................................32
3.6.2 二极管及RC复位电路 ..................................................................................................................................32
3.6.3 稳压二极管复位电路....................................................................................................................................33
3.6.4 电压偏置复位电路 .......................................................................................................................................33
3.6.5 外部IC复位 ..................................................................................................................................................34
4
4
4
系统时钟 ...................................................................................................................................................................35
4.1 概述..................................................................................................................................................................35
4.2 时钟框图 ..........................................................................................................................................................35
4.3 寄存器OSCM ...................................................................................................................................................36
4.4 系统高速时钟 ...................................................................................................................................................37
4.4.1 石英/陶瓷振荡器 ..........................................................................................................................................37
4.4.2 RC振荡器 ....................................................................................................................................................38
4.4.3 外部时钟源 ..................................................................................................................................................38
4.5 系统低速时钟 ...................................................................................................................................................39
4.5.1 系统时钟测试...............................................................................................................................................39
5
5
5
系统工作模式............................................................................................................................................................40
5.1 概述..................................................................................................................................................................40
5.2 系统模式转换举例............................................................................................................................................41
5.3 唤醒时间 ..........................................................................................................................................................42
5.3.1 概述 .............................................................................................................................................................42
5.3.2 唤醒时间......................................................................................................................................................42
5.3.3 P1W唤醒控制寄存器 ...................................................................................................................................42
6
6
6
中断 ..........................................................................................................................................................................43