SM39R04G1
内嵌 4KB
具有 ISP 功能的 Flash
和 256B RAM 的 8 位控制器
FOSVOS TEL: 021-58998693
描述.....................................................................................................................................................................................3
特征.....................................................................................................................................................................................3
各封装引脚配置...................................................................................................................................................................4
系统方框图..........................................................................................................................................................................5
管脚描述..............................................................................................................................................................................6
特殊功能寄存器(SFR).........................................................................................................................................................8
功能描述:........................................................................................................................................................................10
1.
总特征.......................................................................................................................................................................10
1.1.
1.2.
1.3.
1.4.
嵌入式程序存储器 .......................................................................................................................................10
IO 口............................................................................................................................................................10
指令时钟周期选择 .......................................................................................................................................10
复位 .............................................................................................................................................................11
1.4.1.
硬件复位功能..................................................................................................................................11
软件复位功能..................................................................................................................................11
Time Access Key register (TAKEY)................................................................................................11
软件复位寄存器(SWRES) ..............................................................................................................12
Example of software reset .............................................................................................................12
1.4.2.
1.4.3.
1.4.4.
1.4.5.
1.5.
时钟源 .........................................................................................................................................................12
2.
3.
指令设置...................................................................................................................................................................13
存储器结构 ...............................................................................................................................................................17
3.1.
3.2.
程序存储器 ..................................................................................................................................................17
数据存储器 ..................................................................................................................................................18
3.2.1.
3.2.2.
数据内存-低 128 字节(00h to 7Fh) .................................................................................................18
数据存储器-高 128 字节(80h to FFh) .............................................................................................18
4.
CPU 结构..................................................................................................................................................................19
4.1.
4.2.
4.3.
4.4.
4.5.
4.6.
4.7.
累加器 .........................................................................................................................................................19
B 寄存器 .....................................................................................................................................................19
程序状态字 ..................................................................................................................................................20
堆栈指针......................................................................................................................................................20
数据指针......................................................................................................................................................20
数据指针 1...................................................................................................................................................21
接口控制寄存器...........................................................................................................................................21
5.
6.
GPIO ........................................................................................................................................................................22
定时器 0 和定时器 1 ................................................................................................................................................23
6.1.
6.2.
6.3.
定时器/计数器模式控制寄存器(TMOD) .......................................................................................................23
定时/计数控制寄存器(TCON)......................................................................................................................24
T0、T1 可配置性: ....................................................................................................................................24
7.
串行接口 0................................................................................................................................................................25
7.1.
7.2.
7.3.
7.4.
7.5.
7.6.
模式 0 ..........................................................................................................................................................26
模式 1 ..........................................................................................................................................................26
模式 2 ..........................................................................................................................................................27
模式 3 .........................................................................................................................................................27
串行接口 0 的多重机通讯 ...........................................................................................................................27
波特率发生器...............................................................................................................................................28
7.6.1.
串行接口 0 的模式 1 和 3................................................................................................................28
7.7.
波特率的时钟源...........................................................................................................................................28
8.
9.
看门狗定时器............................................................................................................................................................29
中断 ..........................................................................................................................................................................32
9.1.
优先权配置 ..................................................................................................................................................34
电源管理单元...................................................................................................................................................36
待机模式(空闲模式).................................................................................................................................36
10.
10.1.
本说明书如有修改,恕不另行通知,请接洽您的销售代理商以获取最新版本信息。
ISSFD-M054
1
Ver.H SM39R04G1 08/2013