FM33L0 系列
低功耗 MCU 芯片
产品说明书
2019. 04
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
1
本资料是为了让用户根据用途选择合适的上海复旦微电子集团股份有限公司(以下简称复旦微电子)的产品而提供的参考资料,不
转让属于复旦微电子或者第三者所有的知识产权以及其他权利的许可。
在使用本资料所记载的信息最终做出有关信息和产品是否适用的判断前,请您务必将所有信息作为一个整体系统来进行评价。
采购方对于选择与使用本文描述的复旦微电子的产品和服务全权负责,复旦微电子不承担采购方选择与使用本文描述的产品和服务
的责任。除非以书面形式明确地认可,复旦微电子的产品不推荐、不授权、不担保用于包括军事、航空、航天、救生及生命维持系
统在内的,由于失效或故障可能导致人身伤亡、严重的财产或环境损失的产品或系统中。
未经复旦微电子的许可,不得翻印或者复制全部或部分本资料的内容。
今后日常的产品更新会在适当的时候发布,恕不另行通知。在购买本资料所记载的产品时,请预先向复旦微电子在当地的销售办事
处确认最新信息,并请您通过各种方式关注复旦微电子公布的信息,包括复旦微电子的网站(http://www.fmsh.com/)。
如果您需要了解有关本资料所记载的信息或产品的详情,请与上海复旦微电子集团股份有限公司在当地的销售办事处联系。
商标
上海复旦微电子集团股份有限公司的公司名称、徽标以及“复旦”徽标均为上海复旦微电子集团股份有限公司及其分公司在中国的商标
或注册商标。
上海复旦微电子集团股份有限公司在中国发布,版权所有。
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
2
章节列表
章节列表
章节列表 ............................................................................................................................................................................... 3
表目录 ................................................................................................................................................................................. 17
图目录 ................................................................................................................................................................................. 19
1
产品综述 ..................................................................................................................................................................... 24
1.1
概述 ............................................................................................................................................................................. 24
1.2
结构框图 ..................................................................................................................................................................... 26
1.3
产品型号列表 ............................................................................................................................................................. 26
1.4
引脚和封装定义 ......................................................................................................................................................... 28
1.4.1 LQFP64 ..................................................................................................................................................................... 28
1.4.2 LQFP48 ..................................................................................................................................................................... 29
1.4.3 QFN32 ...................................................................................................................................................................... 30
1.4.4 TSSOP20................................................................................................................................................................... 31
1.4.5
引脚功能定义 ..................................................................................................................................................... 32
1.4.1
功能引脚分布 ..................................................................................................................................................... 37
1.4.2
封装尺寸图 ......................................................................................................................................................... 40
2
电参数 ......................................................................................................................................................................... 47
2.1
参数说明 ..................................................................................................................................................................... 47
2.2
参数测试条件 ............................................................................................................................................................. 47
2.2.1
供电方案 ............................................................................................................................................................. 47
2.3
极限参数 ..................................................................................................................................................................... 48
2.4
性能参数 ..................................................................................................................................................................... 49
2.4.1
典型工作条件 ..................................................................................................................................................... 49
2.4.2
功耗参数 ............................................................................................................................................................. 50
2.4.3
复位和电源监控 ................................................................................................................................................. 58
2.4.4
高精度基准源 ..................................................................................................................................................... 59
2.4.5
低功耗模式唤醒时间 ......................................................................................................................................... 62
2.4.6
外部时钟源特性 ................................................................................................................................................. 63
2.4.7
内部时钟源特性 ................................................................................................................................................. 64
2.4.8 PLL 特性 .................................................................................................................................................................. 67
2.4.9 ADC 特性 ................................................................................................................................................................. 68
2.4.10
温度传感器 ......................................................................................................................................................... 72
2.4.11
运算放大器特性 ................................................................................................................................................. 73
2.4.12
Flash 存储器特性 ............................................................................................................................................... 75
2.4.13
GPIO 特性............................................................................................................................................................ 76
2.4.14
LCD 特性 .............................................................................................................................................................. 79
3
电源管理单元(PMU) .............................................................................................................................................. 81
3.1
芯片工作电源 ............................................................................................................................................................. 81
3.1.1
电源域划分 ......................................................................................................................................................... 81
3.1.2
电源结构图 ......................................................................................................................................................... 82
3.1.3 ADC 和基准电压的独立供电 ................................................................................................................................. 82
3.1.4
片内高精度基准源(VREF1p2) ....................................................................................................................... 83
3.2
功耗模式 ..................................................................................................................................................................... 84
3.2.1
概述 ..................................................................................................................................................................... 84
3.2.2
功耗模式与系统频率 ......................................................................................................................................... 85
3.2.3 Active 模式 .............................................................................................................................................................. 86
3.2.4 LP Active 模式 ......................................................................................................................................................... 86
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
3
章节列表
3.2.5 LP Run 模式 ............................................................................................................................................................. 87
3.2.6 SLEEP 模式 .............................................................................................................................................................. 87
3.2.7 DEEPSLEEP 模式 ...................................................................................................................................................... 88
3.3
唤醒源 ......................................................................................................................................................................... 90
3.4
休眠唤醒后的时钟 ..................................................................................................................................................... 91
3.5
寄存器 ......................................................................................................................................................................... 92
3.5.1
低功耗控制寄存器(PMU_CR) ....................................................................................................................... 92
3.5.2
唤醒时间控制寄存器(PMU_WKTR) ............................................................................................................. 93
3.5.3
唤醒源标志查询寄存器(PMU_WKFR) ......................................................................................................... 94
3.5.4 PMU 中断使能寄存器(PMU_IER) ..................................................................................................................... 95
3.5.5 PMU 中断标志寄存器(PMU_ISR) ..................................................................................................................... 95
3.5.6 VREF1p22 控制寄存器(PMU_VREF_CR) ........................................................................................................... 96
3.5.7 VREF1p22 标志寄存器(PMU_VREF_SR) ............................................................................................................ 97
3.5.8 VREF1p22 中断使能寄存器(PMU_VREF_IER) ................................................................................................... 97
3.5.9
模拟 BUFFER 控制寄存器(PMU_BUF_CR) .................................................................................................... 98
4
处理器(CPU) ........................................................................................................................................................... 99
4.1
概述 ............................................................................................................................................................................. 99
4.1.1
处理器配置 ......................................................................................................................................................... 99
4.2
寄存器 .......................................................................................................................................................................100
4.3
异常和中断 ...............................................................................................................................................................101
4.3.1
中断向量表 .......................................................................................................................................................101
4.3.2
中断优先级 .......................................................................................................................................................102
4.3.3
错误处理 ...........................................................................................................................................................102
4.3.4
锁定(Lockup)................................................................................................................................................103
4.4
调试特性 ...................................................................................................................................................................104
4.4.1
调试功能引脚 ...................................................................................................................................................104
4.4.2
调试状态下的看门狗控制 ...............................................................................................................................104
4.4.3 DEBUG 的复位 ......................................................................................................................................................104
4.5
寄存器 .......................................................................................................................................................................105
4.5.1 DEBUG 配置寄存器(DBG_CR) .........................................................................................................................105
4.5.2 HardFault 查询寄存器(DBG_HDFR) ................................................................................................................106
5
总线与存储(BUS AND MEMORY) ......................................................................................................................... 108
5.1
系统总线 ...................................................................................................................................................................108
5.2
存储空间分配 ...........................................................................................................................................................110
5.2.1
概述 ...................................................................................................................................................................110
5.2.1
外设模块寄存器地址分配 ...............................................................................................................................112
5.3
RAM ...........................................................................................................................................................................113
5.4
FLASH...........................................................................................................................................................................114
5.4.1 Flash 读取 .............................................................................................................................................................114
5.4.2 Flash 编程 .............................................................................................................................................................114
5.4.3
启动区交换(BootSwap) ...............................................................................................................................117
5.4.4 Flash 的内容保护..................................................................................................................................................119
5.5
NVR6 ..........................................................................................................................................................................122
5.6
NVR5 ..........................................................................................................................................................................123
5.7
NVR4 ..........................................................................................................................................................................125
5.8
NVR3 ..........................................................................................................................................................................125
5.9
NVR2/1/0 ...................................................................................................................................................................125
5.10 寄存器 .......................................................................................................................................................................126
5.10.1
Flash 读取控制寄存器(FLS_RDCR) .............................................................................................................126
5.10.2
用户配置字寄存器(FLS_OPTBR) .................................................................................................................127
5.10.3
ACLOCK 寄存器(FLS_ACLOCK) .....................................................................................................................127
5.10.4
Flash 擦写控制寄存器(FLS_EPCR) ..............................................................................................................128
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
4
章节列表
5.10.5
5.10.6
5.10.7
6
Flash Key 输入寄存器(FLS_KEY) ..................................................................................................................129
Flash 中断使能寄存器(FLS_IER) .................................................................................................................129
Flash 标志寄存器(FLS_ISR) .........................................................................................................................130
复位管理单元(RCC-RMU) ..................................................................................................................................... 131
6.1
概述 ...........................................................................................................................................................................131
6.2
模块框图 ...................................................................................................................................................................132
6.3
上下电复位 ...............................................................................................................................................................133
6.4
独立看门狗(IWDT) .............................................................................................................................................134
6.4.1
概述 ...................................................................................................................................................................134
6.4.2
结构框图 ...........................................................................................................................................................134
6.4.3 IWDT 功能描述 .....................................................................................................................................................134
6.4.4 IWDT 窗口功能 .....................................................................................................................................................135
6.5
窗口看门狗(WWDT)复位 ..................................................................................................................................136
6.5.1
功能描述 ...........................................................................................................................................................136
6.5.2 WWDT 工作方式...................................................................................................................................................136
6.6
软件复位 ...................................................................................................................................................................139
6.7
NRST 引脚复位 ..........................................................................................................................................................139
6.8
寄存器 .......................................................................................................................................................................140
6.8.1 PDR 控制寄存器(PDR_CR) ..............................................................................................................................140
6.8.2 BOR 控制寄存器(BOR_CR) ..............................................................................................................................141
6.8.3 LOCKUP 复位控制寄存器(LKP_CR) .................................................................................................................142
6.8.4
软件复位寄存器(SOFTRST) .........................................................................................................................142
6.8.5
复位标志寄存器(RSTFR) .............................................................................................................................143
6.8.6 IWDT 清除寄存器(IWDT_SERV) ......................................................................................................................143
6.8.7 IWDT 配置寄存器(IWDT_CR) ..........................................................................................................................144
6.8.8 IWDT 计数值寄存器(IWDT_CNT) ....................................................................................................................144
6.8.1 IWDT 窗口寄存器(IWDT_WIN) .......................................................................................................................145
6.8.1 IWDT 状态寄存器(IWDT_SR) ..........................................................................................................................145
6.8.2 WWDT 控制寄存器(WWDT_CR) .....................................................................................................................146
6.8.3 WWDT 配置寄存器(WWDT_CFGR) .................................................................................................................146
6.8.4 WWDT 计数值寄存器(WWDT_CNT) ...............................................................................................................147
6.8.5 WWDT 中断使能寄存器(WWDT_IER) ............................................................................................................147
6.8.6 WWDT 中断标志寄存器(WWDT_ISR) ............................................................................................................148
6.8.7 WWDT 预分频寄存器(WWDT_PSC) ...............................................................................................................148
6.8.8
外设复位使能寄存器(PRST_EN) .................................................................................................................149
6.8.9 AHB 外设复位寄存器(AHBRST_CR) ................................................................................................................149
6.8.10
APB 外设复位寄存器 1(APBRST_CR1) ........................................................................................................150
6.8.11
APB 外设复位寄存器 2(APBRST_CR2) ........................................................................................................151
7
时钟管理单元(RCC-CMU) ..................................................................................................................................... 154
7.1
概述 ...........................................................................................................................................................................154
7.2
时钟树结构 ...............................................................................................................................................................156
7.2.1
主要时钟说明 ...................................................................................................................................................157
7.2.2
外设模块的总线时钟和工作时钟 ...................................................................................................................157
7.2.3
系统时钟(SYSCLK)选择 ................................................................................................................................158
7.2.4
休眠模式下的外设时钟 ...................................................................................................................................159
7.3
高频 RC 振荡器(RCHF) ..............................................................................................................................................160
7.3.1
概述 ...................................................................................................................................................................160
7.3.2
软件使用说明 ...................................................................................................................................................160
7.4
中频 RC 振荡器(RC4M) .............................................................................................................................................161
7.4.1
概述 ...................................................................................................................................................................161
7.4.2 RC4M 的使用 ........................................................................................................................................................161
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
5
章节列表
7.5
低功耗 RC 振荡器(RCLP)...........................................................................................................................................162
7.5.1
概述 ...................................................................................................................................................................162
7.5.2 RCLP 的使用 ..........................................................................................................................................................162
7.6
低频晶体振荡电路(XTLF) .........................................................................................................................................163
7.6.1
概述 ...................................................................................................................................................................163
7.6.2
工作方式 ...........................................................................................................................................................163
7.6.3
停振检测 ...........................................................................................................................................................163
7.7
高频晶体振荡电路(XTHF).........................................................................................................................................164
7.7.1
概述 ...................................................................................................................................................................164
7.7.2
工作方式 ...........................................................................................................................................................164
7.7.3
停振检测 ...........................................................................................................................................................164
7.8
锁相环(PLL) ...............................................................................................................................................................165
7.8.1
概述 ...................................................................................................................................................................165
7.8.2
应用注意 ...........................................................................................................................................................165
7.9
低功耗模式下的时钟源 ...........................................................................................................................................166
7.10 休眠唤醒的时钟处理 ...............................................................................................................................................166
7.11 寄存器 .......................................................................................................................................................................167
7.11.1
停振检测中断使能寄存器(FDET_IER) ........................................................................................................167
7.11.2
停振检测中断标志寄存器(FDET_ISR) ........................................................................................................168
7.11.3
系统时钟控制寄存器(SYSCLK_CR)..............................................................................................................169
7.11.4
RCHF 控制寄存器(RCHF_CR) .......................................................................................................................170
7.11.5
RC4M 调校寄存器(RC4M_TR).....................................................................................................................171
7.11.6
PLL 控制寄存器(PLL_CR) .............................................................................................................................171
7.11.7
RCLP 控制寄存器(RCLP_CR) ........................................................................................................................172
7.11.8
RCLP 调校寄存器(RCLP_TR) ........................................................................................................................173
7.11.9
XTLF 控制寄存器(XTLF_CR) .........................................................................................................................173
7.11.10 XTHF 控制寄存器(XTHF_CR) .......................................................................................................................174
7.11.11 RC4M 控制寄存器(RC4M_CR) ....................................................................................................................175
7.11.12 RCHF 调校寄存器(RCHF_TR) .......................................................................................................................175
7.11.13
外设总线时钟控制寄存器 1(PCLK_CR1) ................................................................................................176
7.11.14
外设总线时钟控制寄存器 2(PCLK_CR2) ................................................................................................176
7.11.15
外设总线时钟控制寄存器 3(PCLK_CR3) ................................................................................................177
7.11.16
外设总线时钟控制寄存器 4(PCLK_CR4) ................................................................................................178
7.11.17
外设工作时钟控制寄存器 1(OPC_CR1) .................................................................................................179
7.11.18
外设工作时钟控制寄存器 2(OPC_CR2) .................................................................................................180
7.11.19 AHB Master 控制寄存器(AHBM_CR) ..........................................................................................................181
8
电源电压监测(SVD) .............................................................................................................................................. 183
8.1
概述 ...........................................................................................................................................................................183
8.2
模块框图 ...................................................................................................................................................................183
8.3
功能描述 ...................................................................................................................................................................185
8.3.1
电源检测 ...........................................................................................................................................................185
8.3.2
外部电压检测 ...................................................................................................................................................186
8.3.3
检测阈值 ...........................................................................................................................................................187
8.4
寄存器 .......................................................................................................................................................................191
8.4.1 SVD 配置寄存器(SVD_CFGR) ...........................................................................................................................191
8.4.2 SVD 控制寄存器(SVD_CR) ...............................................................................................................................192
8.4.3 SVD 中断使能寄存器(SVD_IER) ......................................................................................................................192
8.4.4 SVD 状态和标志寄存器(SVD_ISR) ..................................................................................................................193
8.4.5 SVD 参考电压选择寄存器(SVD_VSR) .............................................................................................................193
9
AES 硬件运算单元 ..................................................................................................................................................... 195
9.1
功能描述 ...................................................................................................................................................................195
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
6
章节列表
9.2
工作模式 ...................................................................................................................................................................195
9.3
AES 数据流处理模式 ................................................................................................................................................196
9.3.1 ECB 模式 ................................................................................................................................................................196
9.3.2 CBC 模式................................................................................................................................................................197
9.3.3
暂停模式 ...........................................................................................................................................................199
9.3.4 CTR 模式 ................................................................................................................................................................200
9.3.5 CTR 模式下的暂停模式 ........................................................................................................................................201
9.3.6 GCM 模式 ..............................................................................................................................................................201
9.3.7 MultH 模块 ............................................................................................................................................................204
9.3.8
推荐的 GCM 流程 .............................................................................................................................................205
9.4
数据类型 ...................................................................................................................................................................206
9.5
工作流程 ...................................................................................................................................................................208
9.5.1
模式 1:加密 ....................................................................................................................................................208
9.5.2
模式 2:密钥扩展 ............................................................................................................................................208
9.5.3
模式 3:解密 ....................................................................................................................................................209
9.5.4
模式 4:密钥扩展+解密 ..................................................................................................................................210
9.5.5
使用 MultH 模块 ...............................................................................................................................................210
9.6
DMA 接口 ..................................................................................................................................................................212
9.6.1 MultH 模块与 DMA 间接口 ..................................................................................................................................212
9.7
错误标志 ...................................................................................................................................................................213
9.8
寄存器 .......................................................................................................................................................................214
9.8.1 AES 控制寄存器(AES_CR) ................................................................................................................................214
9.8.2 AES 中断使能寄存器(AES_IER) .......................................................................................................................216
9.8.3 AES 中断标志寄存器(AES_ISR) .......................................................................................................................216
9.8.4 AES 数据输入寄存器(AES_DIR) ......................................................................................................................217
9.8.5 AES 数据输出寄存器(AES_DOR) .....................................................................................................................217
9.8.6 AES 秘钥寄存器(AES_KEYx).............................................................................................................................218
9.8.7 AES 初始向量寄存器(AES_IVRx) .....................................................................................................................218
10
随机数发生器(RNG) ......................................................................................................................................... 220
10.1 概述 ...........................................................................................................................................................................220
10.2 功能描述 ...................................................................................................................................................................220
10.2.1
随机数产生 .......................................................................................................................................................220
10.2.1
工作时钟 ...........................................................................................................................................................221
10.2.2
随机数读取 .......................................................................................................................................................221
10.2.3
CRC 运算 ...........................................................................................................................................................221
10.3 寄存器 .......................................................................................................................................................................222
10.3.1
随机数控制寄存器(RNG_CR) .....................................................................................................................222
10.3.2
随机数/CRC 结果输出寄存器(RNG_DOR) ..................................................................................................222
10.3.3
RNG 标志寄存器(RNG_SR)..........................................................................................................................223
10.3.4
CRC 控制寄存器(RNG_CRC_CR) ..................................................................................................................223
10.3.5
CRC 输入数据寄存器(RNG_CRC_DIR) .........................................................................................................224
10.3.1
CRC 标志寄存器(RNG_CRC_SR) ..................................................................................................................224
11
运算放大器(OPA) ............................................................................................................................................. 226
11.1 概述 ...........................................................................................................................................................................226
11.2 结构框图 ...................................................................................................................................................................227
11.3 引脚定义 ...................................................................................................................................................................229
11.4 功能描述 ...................................................................................................................................................................230
11.4.1
Standalone 模式................................................................................................................................................230
11.4.2
比较器模式 .......................................................................................................................................................230
11.4.3
Buffer 模式 ........................................................................................................................................................232
11.4.4
PGA 模式 ...........................................................................................................................................................232
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
7
章节列表
11.4.5
Offset 校准 ........................................................................................................................................................234
11.4.6
低功耗比较器 ...................................................................................................................................................234
11.4.7
中断及触发信号输出 .......................................................................................................................................235
11.4.8
低功耗模式下的 OPA .......................................................................................................................................235
11.5 寄存器 .......................................................................................................................................................................236
11.5.1
OPA1 控制寄存器(OPA1_CR) ......................................................................................................................236
11.5.2
OPA1 校准寄存器(OPA1_CALR) ..................................................................................................................237
11.5.3
OPA1 中断使能寄存器(OPA1_IER) .............................................................................................................238
11.5.4
OPA1 中断标志寄存器(OPA1_ISR)..............................................................................................................239
11.5.5
OPA2 控制寄存器(OPA2_CR) ......................................................................................................................239
11.5.6
OPA2 校准寄存器(OPA2_CALR) ..................................................................................................................240
11.5.1
OPA2 中断使能寄存器(OPA2_IER) .............................................................................................................241
11.5.2
OPA2 中断标志寄存器(OPA2_ISR)..............................................................................................................242
12
I2C .............................................................................................................................................................................. 243
12.1
概述 .......................................................................................................................................................................243
12.2 结构框图 ...................................................................................................................................................................243
12.3 引脚定义 ...................................................................................................................................................................244
12.4 时钟结构 ...................................................................................................................................................................244
12.5 接口时序 ...................................................................................................................................................................245
12.5.1
接口时序图 .......................................................................................................................................................245
12.5.2
接口时序描述 ...................................................................................................................................................246
12.6 I2C 工作模式 ..............................................................................................................................................................248
12.7 I2C 从机地址格式 ......................................................................................................................................................248
12.8 I2C 初始化 ..................................................................................................................................................................249
12.8.1
IO 配置 ..............................................................................................................................................................249
12.8.2
主机波特率配置 ...............................................................................................................................................249
12.8.3
从机的输入模拟滤波和输出延迟 ...................................................................................................................250
12.9 I2C 主机功能 ..............................................................................................................................................................251
12.9.1
7bit 寻址 ...........................................................................................................................................................251
12.9.2
10bit 寻址 .........................................................................................................................................................256
12.9.3
DMA ..................................................................................................................................................................259
12.9.4
SCL 延展(Slave Clock Stretching) .................................................................................................................263
12.9.5
超时机制 ...........................................................................................................................................................263
12.9.6
可编程时序和波特率发生 ...............................................................................................................................263
12.10
I2C 从机功能 .........................................................................................................................................................265
12.10.1
从机寻址.......................................................................................................................................................265
12.10.1
从机发送数据 ...............................................................................................................................................265
12.10.2
从机接收数据 ...............................................................................................................................................266
12.10.3
从机低功耗接收唤醒 ...................................................................................................................................268
12.10.4 DMA ..................................................................................................................................................................268
12.10.5
从机时序.......................................................................................................................................................271
12.11
寄存器 ...................................................................................................................................................................273
12.11.1 I2C 主机配置寄存器(I2C_MSP_CFGR) ........................................................................................................273
12.11.2 I2C 主机控制寄存器(I2C_MSP_CR) ............................................................................................................274
12.11.3 I2C 主机中断使能寄存器(I2C_MSP_IER)....................................................................................................275
12.11.4 I2C 主机中断标志寄存器(I2C_MSP_ISR) ....................................................................................................276
12.11.5 I2C 主机状态寄存器(I2C_MSP_SR).............................................................................................................276
12.11.6 I2C 主机波特率寄存器(I2C_MSP_BGR) ......................................................................................................277
12.11.7 I2C 主机收发缓存寄存器(I2C_MSP_BUF) ..................................................................................................278
12.11.8 I2C 主机时序控制寄存器(I2C_MSP_TCR)...................................................................................................278
12.11.9 I2C 主机超时寄存器(I2C_MSP_TOR) ..........................................................................................................279
12.11.10
I2C 从机控制寄存器(I2C_SSP_CR) ..........................................................................................................279
12.11.11
I2C 从机中断使能寄存器(I2C_SSP_IER) .................................................................................................280
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
8
章节列表
12.11.12
12.11.13
12.11.14
12.11.15
13
I2C 从机中断标志寄存器(I2C_SSP_ISR) .................................................................................................281
I2C 从机状态寄存器(I2C_SSP_SR) ..........................................................................................................282
I2C 从机收发缓存寄存器(I2C_SSP_BUF) ...............................................................................................283
I2C 从机地址寄存器(I2C_SSP_ADR) .......................................................................................................283
UART .......................................................................................................................................................................... 285
13.1 概述 ...........................................................................................................................................................................285
13.2 结构框图 ...................................................................................................................................................................286
13.3 引脚定义 ...................................................................................................................................................................287
13.4 UART 类型区分 .........................................................................................................................................................288
13.5 UART 字符描述 .........................................................................................................................................................288
13.6 功能描述 ...................................................................................................................................................................289
13.6.1
时钟结构 ...........................................................................................................................................................289
13.6.2
位接收采样 .......................................................................................................................................................289
13.6.3
数据发送 ...........................................................................................................................................................290
13.6.4
数据接收 ...........................................................................................................................................................292
13.6.5
低功耗休眠唤醒(UART0/1).........................................................................................................................293
13.6.6
使用 DMA 进行 UART 收发 ..............................................................................................................................293
13.6.7
DMA 模式下的发送完成中断 ..........................................................................................................................294
13.7 波特率发生 ...............................................................................................................................................................295
13.7.1
波特率发生 .......................................................................................................................................................295
13.7.2
波特率自适应 ...................................................................................................................................................296
13.8 红外调制 ...................................................................................................................................................................296
13.9 接收超时 ...................................................................................................................................................................298
13.10
发送延迟 ...............................................................................................................................................................298
13.11
寄存器 ...................................................................................................................................................................299
13.11.1
红外调制寄存器(UART_IRCR) .................................................................................................................300
13.11.2 UARTx 控制状态寄存器(UARTx_CSR) .........................................................................................................300
13.11.3 UARTx 中断使能寄存器(UARTx_IER) ..........................................................................................................302
13.11.4 UARTx 中断标志寄存器(UARTx_ISR) ..........................................................................................................302
13.11.5 UARTx 超时和延迟寄存器(UARTx_TODR) ..................................................................................................303
13.11.6 UARTx 接收缓冲寄存器(UARTx_RXBUF).....................................................................................................304
13.11.7 UARTx 发送缓冲寄存器(UARTx_TXBUF) .....................................................................................................304
13.11.8 UATRx 波特率产生寄存器(UARTx_BGR) .....................................................................................................305
14
LPUART ...................................................................................................................................................................... 306
14.1 概述 ...........................................................................................................................................................................306
14.2 结构框图 ...................................................................................................................................................................307
14.3 引脚定义 ...................................................................................................................................................................308
14.4 工作时钟 ...................................................................................................................................................................309
14.5 字符描述 ...................................................................................................................................................................310
14.6 功能描述 ...................................................................................................................................................................311
14.6.1
接收流程 ...........................................................................................................................................................311
14.6.2
发送流程 ...........................................................................................................................................................311
14.6.3
使用 DMA 进行 LPUART 收发 ..........................................................................................................................311
14.6.4
调制寄存器建议配置 .......................................................................................................................................312
14.6.5
休眠模式下的数据接收唤醒 ...........................................................................................................................312
14.6.6
LPRUN 模式下的数据 DMA 收发 .....................................................................................................................312
14.6.7
DMA 模式下的发送完成中断 ..........................................................................................................................313
14.7 寄存器 .......................................................................................................................................................................314
14.7.1
LPUARTx 控制状态寄存器(LPUARTx_CSR) ..................................................................................................314
14.7.2
LPUARTx 中断使能寄存器(LPUARTx _IER) ..................................................................................................316
LPUARTx 中断标志寄存器(LPUARTx _ISR) ...................................................................................................................316
14.7.3
LPUARTx 波特率调制寄存器(LPUARTx _BMR) ...........................................................................................317
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
9
章节列表
14.7.4
14.7.5
14.7.6
15
LPUARTx 接收缓冲寄存器(LPUARTx _RXBUF) ............................................................................................318
LPUARTx 发送缓冲寄存器(LPUARTx _TXBUF) ............................................................................................318
LPUARTx 数据匹配寄存器(LPUARTx _DMR) ...............................................................................................319
SPI .............................................................................................................................................................................. 320
15.1 概述 ...........................................................................................................................................................................320
15.2 结构框图 ...................................................................................................................................................................321
15.3 引脚定义 ...................................................................................................................................................................322
15.4 接口时序 ...................................................................................................................................................................322
15.4.1
CPHA=0 ..............................................................................................................................................................322
15.4.2
CPHA=1 ..............................................................................................................................................................323
15.4.3
4 线半双工模式(主机) ................................................................................................................................323
15.5 功能描述 ...................................................................................................................................................................326
15.5.1
I/O 配置.............................................................................................................................................................326
15.5.2
全双工数据通信 ...............................................................................................................................................327
15.5.3
TX-ONLY 模式 ....................................................................................................................................................328
15.5.4
RX-ONLY 模式 ....................................................................................................................................................328
15.5.5
主机 SSN 控制...................................................................................................................................................328
15.5.6
数据冲突 ...........................................................................................................................................................329
15.5.7
使用 DMA 进行 SPI 收发 ..................................................................................................................................329
15.6 寄存器 .......................................................................................................................................................................331
15.6.1
SPIx 控制寄存器 1(SPIx_CR1) .....................................................................................................................331
15.6.2
SPIx 控制寄存器 2(SPIx_CR2) .....................................................................................................................332
15.6.3
SPIx 控制寄存器 3(SPIx_CR3) .....................................................................................................................334
15.6.4
SPIx 中断使能寄存器(SPIx_IER) ..................................................................................................................334
15.6.5
SPIx 中断状态寄存器(SPIx_ISR) ..................................................................................................................335
15.6.6
SPIx 发送数据缓冲寄存器(SPIx_TXBUF) ....................................................................................................336
15.6.7
SPIx 接收缓冲寄存器(SPIx_RXBUF) ............................................................................................................336
智能卡接口(ISO7816) ....................................................................................................................................... 337
16
16.1 概述 ...........................................................................................................................................................................337
16.2 结构框图 ...................................................................................................................................................................338
16.3 接口时序 ...................................................................................................................................................................339
16.4 功能描述 ...................................................................................................................................................................340
16.4.1
数据接收 ...........................................................................................................................................................340
16.4.2
数据发送 ...........................................................................................................................................................340
16.4.3
使用 DMA 进行 7816 收发 ...............................................................................................................................342
16.5 寄存器 .......................................................................................................................................................................343
16.5.1
U7816 控制寄存器(U7816_CR) ..................................................................................................................343
16.5.2
U7816 帧格式寄存器(U7816_FFR) .............................................................................................................344
16.5.3
U7816 额外保护时间寄存器(U7816_EGTR) ..............................................................................................345
16.5.4
U7816 工作时钟分频寄存器(U7816_PSC) .................................................................................................346
16.5.5
U7816 波特率寄存器(U7816_BGR) ............................................................................................................346
16.5.6
U7816 数据接收缓存寄存器(U7816_RXBUF) ............................................................................................347
16.5.7
U7816 数据发送缓存寄存器(U7816_TXBUF) ............................................................................................347
16.5.8
U7816 中断使能寄存器(U7816_IER) ..........................................................................................................348
16.5.9
U7816 中断状态标志寄存器(U7816_ISR) ..................................................................................................348
17
DMA .......................................................................................................................................................................... 350
17.1
17.2
17.3
17.4
17.5
概述 ...........................................................................................................................................................................350
工作原理 ...................................................................................................................................................................351
结构框图 ...................................................................................................................................................................352
工作流程 ...................................................................................................................................................................353
访问带宽 ...................................................................................................................................................................354
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
10
章节列表
17.6 通道控制 ...................................................................................................................................................................355
17.6.1
DMA 请求映射 ..................................................................................................................................................355
17.6.2
通道优先级 .......................................................................................................................................................356
17.6.3
传输方向定义 ...................................................................................................................................................356
17.6.4
循环模式 ...........................................................................................................................................................356
17.7 寄存器 .......................................................................................................................................................................357
17.7.1
DMA 全局控制寄存器(DMA_GCR) .............................................................................................................357
17.7.2
通道 x 控制寄存器(DMA_CHx_CR) .............................................................................................................358
17.7.3
通道 x 存储器指针寄存器(DMA_CHx_MAD) .............................................................................................359
17.7.4
通道 7 控制寄存器(DMA_CH7_CR) ............................................................................................................360
17.7.5
通道 7 Flash 地址寄存器(DMA_CH7_FLSAD) .............................................................................................361
17.7.6
通道 7 RAM 地址寄存器(DMA_CH7_RAMAD) ...........................................................................................361
17.7.7
DMA 通道中断状态标志寄存器(DMA_ISR) ...............................................................................................362
18
CRC ............................................................................................................................................................................ 363
18.1 概述 ...........................................................................................................................................................................363
18.2 软件配置过程 ...........................................................................................................................................................364
18.3 GOLDEN 数据 ..............................................................................................................................................................365
18.4 DMA 接口 ..................................................................................................................................................................365
18.5 FLASH 数据完整性校验 ..............................................................................................................................................366
18.6 寄存器 .......................................................................................................................................................................367
18.6.1
CRC 数据寄存器(CRC_DR) ...........................................................................................................................367
18.6.2
CRC 控制状态寄存器(CRC_CR) ...................................................................................................................368
18.6.3
CRC LFSR 寄存器(CRC_LFSR)........................................................................................................................369
18.6.4
CRC 输出异或寄存器(CRC_XOR) .................................................................................................................369
18.6.5
CRC Flash 校验控制寄存器(CRC_FLS_CR) ...................................................................................................370
18.6.6
CRC Flash 校验起始地址(CRC_FLS_AD) ......................................................................................................370
18.6.7
CRC Flash 校验数据长度(CRC_FLS_SIZE) ....................................................................................................371
18.6.8
CRC 多项式寄存器(CRC_POLY) ...................................................................................................................371
19
高级定时器(ATIM) ............................................................................................................................................ 372
19.1 概述 ...........................................................................................................................................................................372
19.2 主要特性 ...................................................................................................................................................................372
19.3 结构框图 ...................................................................................................................................................................373
19.4 功能描述 ...................................................................................................................................................................374
19.4.1
定时单元 ...........................................................................................................................................................374
19.4.2
定时器工作模式 ...............................................................................................................................................376
19.4.3
重复计数器 .......................................................................................................................................................383
19.4.4
Preload 寄存器 .................................................................................................................................................383
19.4.5
计数器工作时钟 ...............................................................................................................................................384
19.4.6
内部触发信号(ITRx) ....................................................................................................................................389
19.4.7
捕捉/比较通道 .................................................................................................................................................389
19.4.8
输入捕捉模式 ...................................................................................................................................................391
19.4.9
软件 Force 输出 ................................................................................................................................................393
19.4.10
输出比较模式 ...............................................................................................................................................393
19.4.11 PWM 输出 .........................................................................................................................................................394
19.4.12
互补输出和死区插入 ...................................................................................................................................395
19.4.13
刹车功能.......................................................................................................................................................396
19.4.14 6-step PWM 输出 ..............................................................................................................................................398
19.4.15
单脉冲输出...................................................................................................................................................399
19.4.16
外部事件清除 OCxREF .................................................................................................................................401
19.4.17
编码器接口模式(encoder interface) .......................................................................................................401
19.4.18 TIM 从机模式 ...................................................................................................................................................402
19.4.19
定时器同步...................................................................................................................................................405
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
11
章节列表
19.4.20 DMA 访问..........................................................................................................................................................405
19.4.21 DMA Burst .........................................................................................................................................................406
19.4.22
输入异或功能 ...............................................................................................................................................407
19.4.23 Debug 模式 .......................................................................................................................................................407
19.5 寄存器 .......................................................................................................................................................................408
19.5.1
ATIM 控制寄存器 1(ATIM_CR1) ..................................................................................................................408
19.5.2
ATIM 控制寄存器 2(ATIM_CR2) ..................................................................................................................410
19.5.3
ATIM 从机模式控制寄存器(ATIM_SMCR) ..................................................................................................411
19.5.4
ATIM DMA 和中断使能寄存器(ATIM_DIER) ...............................................................................................413
19.5.5
ATIM 中断标志寄存器(ATIM_ISR) ..............................................................................................................414
19.5.6
ATIM 事件产生寄存器(ATIM_EGR) .............................................................................................................416
19.5.7
ATIM 捕捉/比较模式寄存器 1(ATIM_CCMR1) ...........................................................................................416
19.5.8
ATIM 捕捉/比较模式寄存器 2(ATIM_CCMR2) ...........................................................................................419
19.5.9
ATIM 捕捉/比较使能寄存器(ATIM_CCER) ..................................................................................................421
19.5.10 ATIM 计数器寄存器(ATIM_CNT) .................................................................................................................423
19.5.11 ATIM 预分频寄存器(ATIM_PSC) .................................................................................................................423
19.5.12 ATIM 自动重载寄存器(ATIM_ARR) .............................................................................................................424
19.5.13 ATIM 重复计数寄存器(ATIM_RCR) .............................................................................................................424
19.5.14 ATIM 捕捉/比较寄存器 1(ATIM_CCR1) ......................................................................................................425
19.5.15 ATIM 捕捉/比较寄存器 2(ATIM_CCR2) ......................................................................................................425
19.5.16 ATIM 捕捉/比较寄存器 3(ATIM_CCR3) ......................................................................................................426
19.5.17 ATIM 捕捉/比较寄存器 4(ATIM_CCR4) ......................................................................................................426
19.5.18 ATIM 刹车和死区控制寄存器(ATIM_BDTR) ...............................................................................................427
19.5.19 ATIM DMA 控制寄存器(ATIM_DCR)............................................................................................................428
19.5.20 ATIM DMA 访问寄存器(ATIM_DMAR) ........................................................................................................429
19.5.21 ATIM 刹车输入控制寄存器(ATIM_BKCR) ...................................................................................................429
20
通用定时器(GPTIM) ......................................................................................................................................... 431
20.1 概述 ...........................................................................................................................................................................431
20.2 主要特性 ...................................................................................................................................................................431
20.3 结构框图 ...................................................................................................................................................................432
20.4 功能描述 ...................................................................................................................................................................433
20.4.1
定时单元 ...........................................................................................................................................................433
20.4.2
定时器工作模式 ...............................................................................................................................................435
20.4.3
计数器工作时钟 ...............................................................................................................................................442
20.4.4
内部触发信号(ITRx)的捕捉 ........................................................................................................................447
20.4.5
捕捉/比较通道 .................................................................................................................................................448
20.4.6
输入捕捉模式 ...................................................................................................................................................449
20.4.7
软件 Force 输出 ................................................................................................................................................451
20.4.8
输出比较模式 ...................................................................................................................................................451
20.4.9
PWM 输出 .........................................................................................................................................................452
20.4.10
单脉冲输出...................................................................................................................................................453
20.4.11
外部事件清除 OCxREF .................................................................................................................................455
20.4.12
编码器接口模式(encoder interface) .......................................................................................................455
20.4.13 GPTIM 从机模式 ...............................................................................................................................................456
20.4.14 DMA 访问..........................................................................................................................................................459
20.4.15 DMA Burst .........................................................................................................................................................460
20.4.16
输入异或功能 ...............................................................................................................................................460
20.4.17 Debug 模式 .......................................................................................................................................................460
20.5 寄存器 .......................................................................................................................................................................462
20.5.1
GPTIMx 控制寄存器 1(GPTIMx_CR1) .........................................................................................................463
20.5.2
GPTIMx 控制寄存器 2(GPTIMx_CR2) .........................................................................................................464
20.5.3
GPTIMx 从机模式控制寄存器(GPTIMx_SMCR) .........................................................................................465
20.5.4
GPTIMx DMA 和中断使能寄存器(GPTIMx_DIER) ......................................................................................467
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
12
章节列表
20.5.5
20.5.6
20.5.7
20.5.8
20.5.9
20.5.10
20.5.11
20.5.12
20.5.13
20.5.14
20.5.15
20.5.16
20.5.17
20.5.18
20.5.19
21
GPTIMx 中断标志寄存器(GPTIMx_ISR) ......................................................................................................468
GPTIMx 事件产生寄存器(GPTIMx_EGR) ....................................................................................................470
GPTIMx 捕捉/比较模式寄存器 1(GPTIMx_CCMR1)...................................................................................470
GPTIMx 捕捉/比较模式寄存器 2(GPTIMx_CCMR2)...................................................................................473
GPTIMx 捕捉/比较使能寄存器(GPTIMx_CCER) .........................................................................................475
GPTIMx 计数器寄存器(GPTIMx_CNT) ........................................................................................................476
GPTIMx 预分频寄存器(GPTIMx_PSC) .........................................................................................................476
GPTIMx 自动重载寄存器(GPTIMx_ARR) ....................................................................................................477
GPTIMx 捕捉/比较寄存器 1(GPTIMx_CCR1) ..............................................................................................477
GPTIMx 捕捉/比较寄存器 2(GPTIMx_CCR2) ..............................................................................................478
GPTIMx 捕捉/比较寄存器 3(GPTIMx_CCR3) ..............................................................................................479
GPTIMx 捕捉/比较寄存器 4(GPTIMx_CCR4) ..............................................................................................479
GPTIMx DMA 控制寄存器(GPTIMx_DCR) ...................................................................................................480
GPTIMx DMA 访问寄存器(GPTIMx_DMAR) ...............................................................................................481
GPTIMx ITR 选择寄存器(GPTIMx_ITRSEL) ..................................................................................................481
基本定时器(BSTIM) .......................................................................................................................................... 482
21.1 概述 ...........................................................................................................................................................................482
21.2 主要特性 ...................................................................................................................................................................482
21.3 结构框图 ...................................................................................................................................................................482
21.4 功能描述 ...................................................................................................................................................................483
21.4.1
定时单元 ...........................................................................................................................................................483
21.4.2
定时器工作模式 ...............................................................................................................................................485
21.4.3
计数器工作时钟 ...............................................................................................................................................487
21.4.1
Debug 模式 .......................................................................................................................................................488
21.5 寄存器 .......................................................................................................................................................................489
21.5.1
BSTIM 控制寄存器 1(BSTIM_CR1) ..............................................................................................................489
21.5.2
BSTIM 控制寄存器 2(BSTIM_CR2) ..............................................................................................................490
21.5.1
BSTIM 中断使能寄存器(BSTIM_IER) ..........................................................................................................491
21.5.2
BSTIM 中断标志寄存器(BSTIM_ISR) ..........................................................................................................491
21.5.3
BSTIM 事件产生寄存器(BSTIM_EGR) .........................................................................................................492
21.5.4
BSTIM 计数器寄存器(BSTIM_CNT) .............................................................................................................492
21.5.5
BSTIM 预分频寄存器(BSTIM_PSC) .............................................................................................................493
21.5.6
BSTIM 自动重载寄存器(BSTIM_ARR) .........................................................................................................493
22
低功耗定时器(LPTIM) ...................................................................................................................................... 494
22.1 概述 ...........................................................................................................................................................................494
22.2 结构框图 ...................................................................................................................................................................495
22.3 定时器功能 ...............................................................................................................................................................495
22.3.1
普通定时器 .......................................................................................................................................................495
22.3.2
外部脉冲触发计数 ...........................................................................................................................................496
22.3.3
外部异步脉冲计数 ...........................................................................................................................................496
22.3.4
Timeout 模式 ....................................................................................................................................................496
22.4 捕捉比较功能 ...........................................................................................................................................................497
22.4.1
32bit PWM ........................................................................................................................................................498
22.4.2
输入捕捉 ...........................................................................................................................................................498
22.5 寄存器 .......................................................................................................................................................................500
22.5.1
LPTIM 配置寄存器(LPTIM_CFGR) ...............................................................................................................500
22.5.2
LPTIM 计数值寄存器(LPTIM_CNT) .............................................................................................................501
22.5.3
LPTIM 捕捉比较控制和状态寄存器(LPTIM_CCSR) ....................................................................................502
22.5.4
LPTIM 目标值寄存器(LPTIM_ARR) .............................................................................................................503
22.5.5
LPTIM 中断使能寄存器(LPTIM_IER) ...........................................................................................................504
22.5.6
LPTIM 中断标志寄存器(LPTIM_ISR) ...........................................................................................................504
22.5.7
LPTIM 控制寄存器(LPTIM_CR)....................................................................................................................505
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
13
章节列表
22.5.8
22.5.1
23
LPTIM 捕捉比较寄存器 1(LPTIM_CCR1).....................................................................................................506
LPTIM 捕捉比较寄存器 2(LPTIM_CCR2).....................................................................................................506
实时时钟(RTC) .................................................................................................................................................. 508
23.1 概述 ...........................................................................................................................................................................508
23.2 结构框图 ...................................................................................................................................................................508
23.3 工作原理 ...................................................................................................................................................................509
23.3.1
时基计数器(LTBC) .......................................................................................................................................509
23.3.2
LTBC 数字调校 ..................................................................................................................................................510
23.3.3
BCD 时间 ...........................................................................................................................................................511
23.3.4
RTC 使能与停止 ................................................................................................................................................512
23.3.5
RTC 时间设置 ....................................................................................................................................................512
23.3.6
RTC 时间读取 ....................................................................................................................................................512
23.3.7
闰年判断 ...........................................................................................................................................................513
23.4 寄存器 .......................................................................................................................................................................514
23.4.1
RTC 写使能寄存器(RTC_WER) ....................................................................................................................514
23.4.2
RTC 中断使能寄存器(RTC_IER) ...................................................................................................................515
23.4.3
RTC 中断标志寄存器(RTC_ISR) ...................................................................................................................516
23.4.4
BCD 时间秒寄存器(RTC_BCDSEC) ...............................................................................................................517
23.4.5
BCD 时间分钟寄存器(RTC_BCDMIN) ..........................................................................................................518
23.4.6
BCD 时间小时寄存器(RTC_BCDHOUR) .......................................................................................................518
23.4.7
BCD 时间天寄存器(RTC_BCDDAY) ..............................................................................................................519
23.4.8
BCD 时间星期寄存器(RTC_BCDWEEK) .......................................................................................................519
23.4.9
BCD 时间月寄存器(RTC_BCDMONTH)........................................................................................................520
23.4.10 BCD 时间年寄存器(RTC_BCDYEAR) ............................................................................................................520
23.4.11
闹钟寄存器(RTC_ALARM) .......................................................................................................................520
23.4.12 RTC 时间信号输出寄存器(RTC_TMSEL) .....................................................................................................521
23.4.13 LTBC 数值调整寄存器(RTC_ADJUST) ..........................................................................................................522
23.4.14 LTBC 数值调整方向寄存器(RTC_ADSIGN) ..................................................................................................522
23.4.15
毫秒计数寄存器(RTC_SBSCNT) ..............................................................................................................523
23.4.16 RTC 备份寄存器组(RTC_BKRx) ....................................................................................................................523
24
LCD 显示 .................................................................................................................................................................... 525
24.1 概述 ...........................................................................................................................................................................525
24.2 结构框图 ...................................................................................................................................................................525
24.3 IO 配置 ......................................................................................................................................................................527
24.4 功能说明 ...................................................................................................................................................................527
24.4.1
工作时钟和显示帧频率 ...................................................................................................................................527
24.4.2
LCD Type A 扫描波形 ........................................................................................................................................528
24.4.3
LCD Type B 扫描波形 ........................................................................................................................................530
24.4.4
片内 buffer 驱动模式 .......................................................................................................................................531
24.4.5
片外电容驱动模式 ...........................................................................................................................................532
24.4.6
显示闪烁功能 ...................................................................................................................................................532
24.4.7
偏置电压调整 ...................................................................................................................................................532
24.5 寄存器 .......................................................................................................................................................................533
24.5.1
显示控制寄存器(LCD_CR) ...........................................................................................................................533
24.5.2
显示测试控制寄存器(LCD_TEST) ...............................................................................................................535
24.5.3
测试模式下引脚输出数据寄存器 ...................................................................................................................536
24.5.4
显示频率控制寄存器(LCD_FCR) .................................................................................................................536
24.5.5
闪烁时间寄存器(LCD_FLKT) .......................................................................................................................537
24.5.6
显示中断使能寄存器(LCD_IER) ..................................................................................................................537
24.5.7
显示中断标志寄存器(LCD_ISR) ..................................................................................................................538
24.5.8
显示数据寄存器(LCD_DATAx) .....................................................................................................................538
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
14
章节列表
24.5.9
24.5.10
25
COM 使能控制寄存器(LCD_COM_EN) .......................................................................................................543
SEG 使能控制寄存器 0(LCD_SEG_EN0) ......................................................................................................544
ADC ............................................................................................................................................................................ 545
25.1 概述 ...........................................................................................................................................................................545
25.2 结构框图 ...................................................................................................................................................................546
25.3 输入通道 ...................................................................................................................................................................547
25.4 单端和差分输入 .......................................................................................................................................................547
25.5 ADC 使能和配置 .......................................................................................................................................................548
25.6 功能描述 ...................................................................................................................................................................549
25.6.1
ADC 采样和转换时序 .......................................................................................................................................549
25.6.2
采样值与实际电压转换 ...................................................................................................................................551
25.6.3
温度传感器 .......................................................................................................................................................551
25.6.4
温度传感器的斜率和标定 ...............................................................................................................................552
25.6.5
可编程采样时间 ...............................................................................................................................................553
25.6.6
转换模式 ...........................................................................................................................................................554
25.6.7
转换触发 ...........................................................................................................................................................555
25.6.8
过采样和硬件平均 ...........................................................................................................................................557
25.6.9
ADC 工作时钟 ...................................................................................................................................................557
25.6.10
数据冲突和自动等待 ...................................................................................................................................558
25.6.11 DMA ..................................................................................................................................................................558
25.6.12
模拟窗口看门狗(AWD) ...........................................................................................................................559
25.6.13 ADC 校准(Calibration) .................................................................................................................................560
25.7 低功耗模式 ...............................................................................................................................................................560
25.8 寄存器 .......................................................................................................................................................................561
25.8.1
ADC 中断和状态寄存器(ADC_ISR) .............................................................................................................561
25.8.2
ADC 中断使能寄存器( ADC_IER) ...............................................................................................................562
25.8.3
ADC 控制寄存器(ADC_CR) ..........................................................................................................................563
25.8.4
ADC 配置寄存器(ADC_CFGR) ......................................................................................................................563
25.8.5
ADC 采样时间控制寄存器(ADC_SMTR) .....................................................................................................566
25.8.6
ADC 通道控制寄存器(ADC_CHER) ..............................................................................................................567
25.8.7
ADC 数据寄存器(ADC_DR) ..........................................................................................................................568
25.8.8
ADC 校准控制寄存器(ADC_CAL) ................................................................................................................568
25.8.9
模拟看门狗阈值寄存器(ADC_HLTR) ..........................................................................................................569
26
蜂鸣器(BEEPER) ..................................................................................................................................................... 570
26.1 概述 ...........................................................................................................................................................................570
26.2 结构框图 ...................................................................................................................................................................570
26.3 频率输出 ...................................................................................................................................................................570
26.4 寄存器 .......................................................................................................................................................................571
26.4.1
BEEP 控制和状态寄存器(BEEP_CSR) ..........................................................................................................571
27
I/O 端口 ..................................................................................................................................................................... 572
27.1 概述 ...........................................................................................................................................................................572
27.2 引脚类型 ...................................................................................................................................................................573
27.2.1
GPIO,输入输出使能,可控上拉电阻,可控开漏输出 ...............................................................................573
27.2.2
GPIO,输入输出使能,真开漏输出(PA11、PA12) ...................................................................................574
27.2.3
GPIO,输入输出使能,2 个可控上拉电阻,可控开漏输出(仅 7816 数据口) ......................................575
27.3 IO 端口功能描述.......................................................................................................................................................576
27.3.1
GPIO 输入..........................................................................................................................................................576
27.3.2
GPIO 输出..........................................................................................................................................................576
27.3.3
数字外设功能 ...................................................................................................................................................576
27.3.4
模拟功能 ...........................................................................................................................................................577
27.3.5
IO 模拟开关 ......................................................................................................................................................578
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
15
章节列表
27.3.6
使用外部晶体引脚 ...........................................................................................................................................579
27.4 NRST 引脚 ..................................................................................................................................................................580
27.5 WKUPX 引脚...............................................................................................................................................................581
27.6 外部引脚中断(EXTI) ............................................................................................................................................582
27.6.1
功能说明 ...........................................................................................................................................................582
27.6.2
应用指南 ...........................................................................................................................................................583
27.7 快速 GPIO 输出 .........................................................................................................................................................585
27.8 寄存器 .......................................................................................................................................................................586
27.8.1
PortX 输入使能寄存器(GPIOx_INEN) .........................................................................................................588
27.8.2
PortX 上拉使能寄存器(GPIOx_PUEN) ........................................................................................................588
27.8.3
PortX 开漏使能寄存器(GPIOx_ODEN) ........................................................................................................589
27.8.4
PortX 功能选择寄存器(GPIOx_FCR) ...........................................................................................................589
27.8.5
PortX 输出数据寄存器(GPIOx_DO) ............................................................................................................592
27.8.6
PortX 输出数据置位寄存器(GPIOx_DSET) .................................................................................................592
27.8.7
PortX 输出数据复位寄存器(GPIOx_DRST) .................................................................................................593
27.8.8
PortX 输入数据寄存器(GPIOx_DIN) ...........................................................................................................593
27.8.9
PortX 额外数字功能寄存器(GPIOx_DFS) ...................................................................................................594
27.8.10 PortX 强驱动使能寄存器(GPIOx_HD) ........................................................................................................594
27.8.11 PortX 模拟开关使能寄存器(GPIOx_ANEN) ................................................................................................595
27.8.12 EXTI 输入选择寄存器(GPIO_EXTI_SEL).......................................................................................................596
27.8.13 EXTI 边沿选择和使能寄存器(GPIO_EXTI_EDS) ..........................................................................................598
27.8.14 EXTI 数字滤波控制寄存器(GPIO_EXTI_DF) ................................................................................................600
27.8.15 EXTI 中断标志寄存器(GPIO_EXTI_ISR) .......................................................................................................600
27.8.16 EXTI 输入信号寄存器(GPIO_EXTI_DI).........................................................................................................601
27.8.17 FOUT 配置寄存器(GPIO_FOUT_SEL)...........................................................................................................601
27.8.18 WKUP 使能寄存器(GPIO_PINWKEN) ..........................................................................................................602
专用编程接口........................................................................................................................................................ 604
28
28.1
28.2
概述 ...........................................................................................................................................................................604
编程器使用 ...............................................................................................................................................................604
器件签名信息........................................................................................................................................................ 605
29
29.1
29.2
存储器容量查询 .......................................................................................................................................................605
器件 UID ....................................................................................................................................................................605
版本列表 ........................................................................................................................................................................... 607
上海复旦微电子集团股份有限公司销售及服务网点 ....................................................................................................... 608
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
16
表目录
表目录
表 1-1FM33L0 型号列表 .............................................................................................................................................................. 26
表 1-2 引脚列表........................................................................................................................................................................... 36
表 1-3 功能引脚分布表 ............................................................................................................................................................... 39
表 2-1 FM33L0 极限参数 ............................................................................................................................................................. 48
表 2-2 FM33L0 典型工作条件 ..................................................................................................................................................... 49
表 2-3 ACTIVE 电流参数 .............................................................................................................................................................. 51
表 2-4 LP ACTIVE 电流参数 .......................................................................................................................................................... 52
表 2-5 LP RUN 电流参数 .............................................................................................................................................................. 53
表 2-6 SLEEP 电流参数 ................................................................................................................................................................ 54
表 2-7 DEEPSLEEP 电流参数 ........................................................................................................................................................ 55
表 2-8 复位和电压监控参数 ...................................................................................................................................................... 58
表 2-9 高精度基准源参数 .......................................................................................................................................................... 60
表 2-10 唤醒时间参数 ................................................................................................................................................................ 62
表 2-11 FM33L0 低频晶体振荡器参数 ....................................................................................................................................... 63
表 2-12 FM33L0 高频晶体振荡器参数 ....................................................................................................................................... 63
表 2-13 FM33L0 内部 RCHF 振荡器参数 .................................................................................................................................... 64
表 2-14 FM33L0 内部 RC4M 振荡器参数 ................................................................................................................................... 65
表 2-15 FM33L0 内部 RCLP 振荡器参数 ..................................................................................................................................... 66
表 2-16 FM33L0 PLL 参数 ............................................................................................................................................................. 67
表 2-17 FM33L0 ADC 性能参数 ................................................................................................................................................... 69
表 2-18 FM33L0 ADC 采样时间 ................................................................................................................................................... 71
表 2-19 FM33L0 温度传感器参数 ............................................................................................................................................... 72
表 2-20 OPA 参数 ......................................................................................................................................................................... 74
表 2-21 OPA 比较器模式参数 ..................................................................................................................................................... 74
表 2-22 FM33L0 FLASH 参数 .......................................................................................................................................................... 75
表 2-23 FM33L0 普通 I/O 参数 ................................................................................................................................................... 76
表 2-24 FM33L0 高驱动能力 I/O 参数 ....................................................................................................................................... 77
表 2-25 FM33L0 真开漏 I/O 参数 ............................................................................................................................................... 78
表 2-26 FM33L0 NRST 引脚参数 .................................................................................................................................................. 78
表 2-27 LCD 片内电阻分压 .......................................................................................................................................................... 79
表 2-28 LCD 片外电容驱动 .......................................................................................................................................................... 79
表 3-1 FM33L0 功耗模式表 ......................................................................................................................................................... 84
表 3-2 FM33L0 功耗-性能表 ........................................................................................................................................................ 86
表 4-1 CPU 配置参数 ................................................................................................................................................................... 99
表 4-2 CPU 主要内核寄存器 .....................................................................................................................................................100
表 4-3 CPU 中断向量表 .............................................................................................................................................................102
表 4-4 HARDFAULT 异常类型 ........................................................................................................................................................103
表 5-1 FM33L0 外设地址表 .......................................................................................................................................................112
表 5-2 FLASH 访问权限表 ............................................................................................................................................................121
表 5-3 NVR6 数据 .......................................................................................................................................................................122
表 5-4 NVR5 数据 .......................................................................................................................................................................123
表 5-5 OPTBYTE 定义 .................................................................................................................................................................123
表 5-6 LOCK 位对应 FLASH 地址表 .............................................................................................................................................124
表 6-1 IWDT 溢出长度 ...............................................................................................................................................................135
表 6-2 WWDT 溢出长度 ............................................................................................................................................................137
表 7-1 时钟说明表 ....................................................................................................................................................................157
表 7-2 外设时钟对照表 ............................................................................................................................................................158
表 7-3 低功耗模式下的时钟 ....................................................................................................................................................166
表 11-1 OPA 输入输出引脚映射 ...............................................................................................................................................229
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
17
表目录
表 12-1 I2C 接口时序要求 .........................................................................................................................................................247
表 12-2 I2C 从机地址分类 .........................................................................................................................................................248
表 13-1 UART 数据帧格式 .........................................................................................................................................................288
表 13-2 常用时钟频率下波特率计算 .......................................................................................................................................295
表 14-1 LPUART 数据帧格式 .....................................................................................................................................................310
表 14-2 LPUART 推荐调制参数 .................................................................................................................................................312
表 14-3 LPUART 的 DMA 收发 ...................................................................................................................................................313
表 15-1 SPI 引脚映射 .................................................................................................................................................................322
表 17-1 DMA 通道映射 ..............................................................................................................................................................355
表 18-1 GOLDEN 数据表 ..............................................................................................................................................................365
表 19-1 ENCODER INTERFACE 计数方式 ...........................................................................................................................................401
表 19-2 DMA 操作表 ..................................................................................................................................................................406
表 20-1 内部触发信号表 ..........................................................................................................................................................448
表 20-2 ENCODER INTERFACE 计数方式 ...........................................................................................................................................455
表 20-3 DMA 操作表 ..................................................................................................................................................................460
表 24-1 帧频率计算公式 ...........................................................................................................................................................527
表 24-2 典型帧频率和 DF 的关系 ............................................................................................................................................527
表 25-1 ADC 通道映射 ...............................................................................................................................................................547
表 25-2 ADC 通道控制 ...............................................................................................................................................................548
表 27-1GPIO 功能逻辑定义表 ..................................................................................................................................................574
表 27-2 真开漏 IO 功能逻辑定义表 .........................................................................................................................................575
表 27-3 FCR 定义表 ....................................................................................................................................................................576
表 27-4 多个数字外设功能选择表 ...........................................................................................................................................577
表 27-5 模拟通道说明 ..............................................................................................................................................................578
表 27-6 IO 模拟开关对照表 ......................................................................................................................................................579
表 27-7 外部引脚中断配置表 ..................................................................................................................................................582
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
18
图目录
图目录
图 1-1FM33L0XX 结构框图........................................................................................................................................................... 26
图 1-2FM33L0X6 LQFP64 封装图 ................................................................................................................................................. 28
图 1-3 FM33L0X5 QFN32 封装图 ................................................................................................................................................. 29
图 1-4 FM33L0X3 QFN32 封装图 ................................................................................................................................................. 30
图 1-5 FM33L0X2 TSSOP20 封装图 .............................................................................................................................................. 31
图 1-5 LQFP64 封装尺寸图 .......................................................................................................................................................... 40
图 1-6 LQFP48 封装尺寸图 .......................................................................................................................................................... 42
图 1-7 QFN32 封装尺寸图 ........................................................................................................................................................... 44
图 1-9 TSSOP20 封装尺寸图 ........................................................................................................................................................ 45
图 2-1 FM33L0X6 供电方案 ......................................................................................................................................................... 47
图 2-2 ADC 通道输入阻抗 ........................................................................................................................................................... 70
图 2-3 FM33L0X6 LCD 片外电容驱动模式电容连接 .................................................................................................................. 80
图 3-1 芯片电源结构图 ............................................................................................................................................................... 82
图 3-2 功耗模式状态转换 ........................................................................................................................................................... 85
图 3-3 功耗模式与系统主频 ....................................................................................................................................................... 85
图 5-1 芯片电源结构图 .............................................................................................................................................................109
图 5-2 FM33L02X 总线地址 .......................................................................................................................................................110
图 5-3 FM33L01X 总线地址 .......................................................................................................................................................111
图 5-4 FLASH 状态转换................................................................................................................................................................115
图 5-5 BOOTSWAP 示意图 ............................................................................................................................................................117
图 5-6 BOOT 程序备份 ................................................................................................................................................................118
图 5-7 备份升级过程 ................................................................................................................................................................118
图 6-1 芯片复位结构框图 .........................................................................................................................................................132
图 6-2 上下电复位示意图 .........................................................................................................................................................133
图 6-3 IWDT 结构框图 ...............................................................................................................................................................134
图 6-4 WWDT 结构框图 ............................................................................................................................................................136
图 6-5 WWDT 窗口示意图 ........................................................................................................................................................138
图 7-1 芯片时钟树框图 .............................................................................................................................................................156
图 8-1 SVD 结构框图 .................................................................................................................................................................183
图 8-2 低压检测电路工作时序 .................................................................................................................................................184
图 8-3 电源检测电路间歇工作模式 .........................................................................................................................................185
图 8-4 使用外部电阻分压的 SVS 检测 .....................................................................................................................................186
图 8-5 使用内部电阻分压的 SVS 检测 .....................................................................................................................................187
图 9-1 ECB 模式加密流程 ..........................................................................................................................................................196
图 9-2 ECB 模式解密流程 ..........................................................................................................................................................197
图 9-3 CBC 加密过程 .................................................................................................................................................................198
图 9-4 CBC 解密过程 .................................................................................................................................................................199
图 9-5 暂停模式流程 .................................................................................................................................................................199
图 9-6 CTR 加密流程 ..................................................................................................................................................................200
图 9-7 CTR 解密流程 ..................................................................................................................................................................201
图 9-8 32 位计数器和随机数的存储方式 ................................................................................................................................201
图 9-9 GCM 加密流程 ................................................................................................................................................................203
图 9-10 GCM 解密流程 ..............................................................................................................................................................204
图 9-11 MULTH 模块框图 ............................................................................................................................................................205
图 9-12 根据数据类型存储数据的示意图 ...............................................................................................................................207
图 9-13 模式 1:加密流程 ........................................................................................................................................................208
图 9-14 模式 2 示意图...............................................................................................................................................................209
图 9-15 模式 3 示意图...............................................................................................................................................................209
图 9-16 模式 4 示意图...............................................................................................................................................................210
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
19
图目录
图 9-17 MULTH 模块使用流程示意图 ........................................................................................................................................211
图 9-18 输入时 DMA 请求和数据传输示意图 .........................................................................................................................212
图 9-19 输出时 DMA 请求和数据传输示意图 .........................................................................................................................212
图 10-1 真随机数模块框图 ......................................................................................................................................................220
图 10-2 真随机数模块工作时钟 ..............................................................................................................................................221
图 11-1 OPA1 结构框图 .............................................................................................................................................................227
图 11-2 OPA2 结构框图 .............................................................................................................................................................227
图 11-3 OPA 用于 ADC 输入放大 ..............................................................................................................................................228
图 11-4 STANDALONE 模式.............................................................................................................................................................230
图 11-5 比较器模式 ..................................................................................................................................................................231
图 11-6 比较器输出滤波 ..........................................................................................................................................................231
图 11-7 BUFFER 模式 .................................................................................................................................................................232
图 11-8 PGA 模式 .......................................................................................................................................................................233
图 11-9 PGA 模式,INN 和 OUT 之间接电容用于环路滤波 ...................................................................................................233
图 11-10 比较器中断 ................................................................................................................................................................235
图 12-1 I2C 总线时序 .................................................................................................................................................................243
图 12-2 I2C 总线时序 .................................................................................................................................................................245
图 12-3 数据有效时序 ...............................................................................................................................................................245
图 12-4 起始(START)与停止(STOP)命令定义 .........................................................................................................................246
图 12-5 输出应答(ACK) ..............................................................................................................................................................246
图 12-6 从机信号滤波 ...............................................................................................................................................................250
图 12-7 主机向 7 位地址从机写入数据时的帧格式 ...............................................................................................................251
图 12-8 I2C 软件发送数据流图 .................................................................................................................................................252
图 12-9 I2C 主机对 7 位地址从机发送数据流图 .....................................................................................................................253
图 12-10 主机从 7 位地址从机读取数据时的帧格式 .............................................................................................................253
图 12-11 I2C 软件读取数据流图 ...............................................................................................................................................254
图 12-12 I2C 从 7 位地址从机读取数据流图 ...........................................................................................................................255
图 12-13 双向数据通信帧格式 .................................................................................................................................................255
图 12-14 10BIT 寻址,主机向从机写入数据 ............................................................................................................................256
图 12-15 I2C 软件发送数据流图 ...............................................................................................................................................257
图 12-16 10BIT 寻址,主机从从机读取数据 ............................................................................................................................257
图 12-17 I2C 软件发送数据流图 ...............................................................................................................................................258
图 12-18 I2C 软件发送数据流图 ...............................................................................................................................................259
图 12-19 I2C 主机 DMA 发送流程图 .........................................................................................................................................260
图 12-20 I2C 主机 DMA 接收流程图 .........................................................................................................................................262
图 12-21 主机时序控制.............................................................................................................................................................264
图 12-22 从机数据发送波形 .....................................................................................................................................................266
图 12-23 从机数据接收波形(SCLSEN=1) .............................................................................................................................267
图 12-24 从机数据接收波形(SCLSEN=0,接收溢出) .........................................................................................................268
图 12-25 I2C 从机 DMA 接收流程图 .........................................................................................................................................270
图 12-26 I2C 从机 DMA 发送流程图 .........................................................................................................................................271
图 13-1 UART 结构框图 .............................................................................................................................................................286
图 13-2 UART 字符描述 .............................................................................................................................................................288
图 13-3 位接收采样...................................................................................................................................................................290
图 13-4 UART 异步发送波形 1 ..................................................................................................................................................291
图 13-5 UART 异步发送波形 2 ..................................................................................................................................................292
图 13-6 UART 异步发送波形 3 ..................................................................................................................................................292
图 13-7 红外调制波形 ...............................................................................................................................................................297
图 13-8 UART 发送延迟 .............................................................................................................................................................298
图 14-1 LPUART 结构框图 .........................................................................................................................................................307
图 14-2 LPUART 工作时钟 .........................................................................................................................................................309
图 14-3 LPUART 字符描述 .........................................................................................................................................................310
图 15-1SPI 结构框图 ..................................................................................................................................................................321
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
20
图目录
图 15-2 SPI 数据/时钟时序图(CPHA=0) ...............................................................................................................................322
图 15-3 SPI 数据/时钟时序图(CPHA=1) ...............................................................................................................................323
图 15-4 四线半双工写操作 ......................................................................................................................................................324
图 15-5 四线半双工读操作(无 DUMMY CYCLE) ......................................................................................................................324
图 15-6 四线半双工读操作(有 DUMMY CYCLE) ......................................................................................................................325
图 15-7 SPI MASTER/SPI SLAVE 互连..............................................................................................................................................326
图 15-8 SPI SSN 时序图(SSNM=1,CPHA=0)........................................................................................................................328
图 15-9 SPI SSN 时序图(SSNM=0) ........................................................................................................................................329
图 16-1 ISO7816 结构框图 ........................................................................................................................................................338
图 16-2 ISO7816 数据帧结构 ....................................................................................................................................................339
图 16-3 ISO7816 数据接收过程 ................................................................................................................................................340
图 16-4 ISO7816 数据发送过程 ................................................................................................................................................341
图 17-1 DMA 结构框图 ..............................................................................................................................................................352
图 17-2 DMA 寄存器配置 ..........................................................................................................................................................353
图 17-3 DMA 工作流程 ..............................................................................................................................................................354
图 18-1 CRC 运算流程图............................................................................................................................................................364
图 18-2 使用 DMA 对 RAM 中的数据进行 CRC 运算 ..............................................................................................................365
图 18-3 FLASH CRC 校验结构图 ..................................................................................................................................................366
图 19-1 高级定时器结构框图 ...................................................................................................................................................373
图 19-2 预分频从 1 变为 2 的波形 ...........................................................................................................................................375
图 19-3 预分频从 1 变为 4 的波形 ...........................................................................................................................................375
图 19-4 向上计数波形,内部时钟不分频 ...............................................................................................................................376
图 19-5 向上计数波形,内部时钟 2 分频 ...............................................................................................................................377
图 19-6 ARPE=0(ATIM_ARR 没有预装载)时的更新事件 .....................................................................................................377
图 19-7 ARPE=1(ATIM_ARR 预装载)时的更新事件 .............................................................................................................378
图 19-8 向下计数,内部时钟不分频 .......................................................................................................................................379
图 19-9 向下计数,内部时钟 2 分频 .......................................................................................................................................379
图 19-10 向下计数,内部时钟不分频 .....................................................................................................................................380
图 19-11 向下计数,不使用重复计数时的更新事件 .............................................................................................................380
图 19-12 中心对齐计数器时序图,ATIM_PCS=0,ATIM_ARR=0X6 ........................................................................................381
图 19-13 计数器时序图,ARPE=1 时的更新事件(计数器下溢) .............................................................................................382
图 19-14 计数器时序图,ARPE=1 时的更新事件(计数器溢出) .............................................................................................382
图 19-15 不同模式下更新速率的例子,及 ATIM_RCR 的寄存器设置 ..................................................................................383
图 19-16 ATIM 时钟源框图........................................................................................................................................................384
图 19-17 内部时钟源模式,时钟分频因子为 1 ......................................................................................................................385
图 19-18TI2 外部时钟连接例子 ................................................................................................................................................385
图 19-19 外部时钟模式 1 下的时序 .........................................................................................................................................386
图 19-20 外部时钟模式 1 下的时序 .........................................................................................................................................387
图 19-21 外部触发输入框图 .....................................................................................................................................................387
图 19-22 外部时钟模式 2 下的时序 1 ......................................................................................................................................388
图 19-23 外部时钟模式 2 下的时序 2 ......................................................................................................................................389
图 19-24 捕获/比较通道(通道 1 输入部分) .............................................................................................................................390
图 19-25 捕获/比较通道 1 的主电路 .......................................................................................................................................390
图 19-26 捕获/比较通道的输出部分(通道 1 至 3) ..................................................................................................................391
图 19-27 捕获/比较通道的输出部分(通道 4) ..........................................................................................................................391
图 19-28PWM 输入捕获模式时序 ............................................................................................................................................392
图 19-29 输出比较模式,翻转 OC1 .........................................................................................................................................393
图 19-30 边沿对齐的 PWM 波形(ARR=7) .................................................................................................................................394
图 19-31 中央对齐的 PWM 波形(APR=7) .................................................................................................................................395
图 19-32 带死区插入的互补输出 .............................................................................................................................................396
图 19-33 死区波形延迟大于负脉冲 .........................................................................................................................................396
图 19-34 死区波形延迟大于正脉冲 .........................................................................................................................................396
图 19-35 刹车输入结构 ............................................................................................................................................................396
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
21
图目录
图 19-36 响应刹车的输出 .........................................................................................................................................................398
图 19-37 产生六步 PWM,使用 COM 的例子(OSSR=1) ..........................................................................................................399
图 19-38 单脉冲模式的例子 .....................................................................................................................................................400
图 19-39 ETR 信号清除 ATIM 的 OCXREF ..................................................................................................................................401
图 19-40 编码器模式下的计数器操作实例 .............................................................................................................................402
图 19-41 复位模式下的时序 .....................................................................................................................................................403
图 19-42 门控模式下的时序 .....................................................................................................................................................404
图 19-43 触发器模式下的时序 .................................................................................................................................................404
图 19-44 外部时钟模式 2+触发模式下的时序 ......................................................................................................................405
图 20-1 GPTIM 结构框图 ...........................................................................................................................................................432
图 20-2 预分频从 1 变为 2 的波形 ...........................................................................................................................................434
图 20-3 预分频从 1 变为 4 的波形 ...........................................................................................................................................434
图 20-4 向上计数波形,内部时钟不分频 ...............................................................................................................................435
图 20-5 向上计数波形,内部时钟 2 分频 ...............................................................................................................................436
图 20-6ARPE=0(GPTIM_ARR 没有预装载)时的更新事件 ...................................................................................................436
图 20-7ARPE=1(GPTIM_ARR 预装载)时的更新事件 ...........................................................................................................437
图 20-8 向下计数,内部时钟不分频 .......................................................................................................................................438
图 20-9 向下计数,内部时钟 2 分频 .......................................................................................................................................438
图 20-10 向下计数,内部时钟 2 分频 .....................................................................................................................................439
图 20-11 向下计数,不使用重复计数时的更新事件 .............................................................................................................439
图 20-12 中心对齐计数器时序图,GPTIM_PCS=0,GPTIM_ARR=0X6 ...................................................................................440
图 20-13 计数器时序图,ARPE=1 时的更新事件(计数器下溢) .............................................................................................441
图 20-14 计数器时序图,ARPE=1 时的更新事件(计数器溢出) .............................................................................................441
图 20-15 GPTIM 时钟源框图 .....................................................................................................................................................442
图 20-16 内部时钟源模式,时钟分频因子为 1 ......................................................................................................................442
图 20-17TI2 外部时钟连接例子 ................................................................................................................................................443
图 20-18 外部时钟模式 1 下的时序 .........................................................................................................................................443
图 20-19 外部时钟模式 1 下的时序 .........................................................................................................................................444
图 20-20 外部触发输入框图 .....................................................................................................................................................445
图 20-21 外部时钟模式 2 下的时序 1 ......................................................................................................................................445
图 20-22 外部时钟模式 2 下的时序 2 ......................................................................................................................................446
图 20-23 捕获/比较通道(通道 1 输入部分) .............................................................................................................................448
图 20-24 捕获/比较通道 1 的主电路 .......................................................................................................................................449
图 20-25 捕获/比较通道的输出部分 .......................................................................................................................................449
图 20-26PWM 输入捕获模式时序 ............................................................................................................................................450
图 20-27 输出比较模式,翻转 OC1 .........................................................................................................................................451
图 20-28 边沿对齐的 PWM 波形(ARR=7) .................................................................................................................................452
图 20-29 中央对齐的 PWM 波形(APR=7) .................................................................................................................................453
图 20-30 单脉冲模式的例子 .....................................................................................................................................................454
图 20-31 ETR 信号清除 GPTIM 的 OCXREF ................................................................................................................................455
图 20-32 编码器模式下的计数器操作实例 ............................................................................................................................456
图 20-33 复位模式下的时序 ....................................................................................................................................................457
图 20-34 门控模式下的时序 ....................................................................................................................................................458
图 20-35 触发器模式下的时序 ................................................................................................................................................458
图 20-36 外部时钟模式 2+触发模式下的时序 .....................................................................................................................459
图 21-1 BSTIM 结构框图............................................................................................................................................................482
图 21-2 预分频从 1 变为 2 的波形 ...........................................................................................................................................484
图 21-3 预分频从 1 变为 4 的波形 ...........................................................................................................................................484
图 21-4 向上计数波形,内部时钟不分频 ...............................................................................................................................485
图 21-5 向上计数波形,内部时钟 2 分频 ...............................................................................................................................486
图 21-6ARPE=0(ARR 没有预装载)时的更新事件 ................................................................................................................486
图 21-7ARPE=1(ARR 预装载)时的更新事件 ........................................................................................................................487
图 21-8 内部时钟源模式,时钟分频因子为 1 ........................................................................................................................487
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
22
图目录
图 22-1 LPTIM 结构框图 ............................................................................................................................................................495
图 22-2 外部 ETR 脉冲上升沿触发计数 ...................................................................................................................................496
图 22-3 外部 ETR 脉冲异步计数 ...............................................................................................................................................496
图 22-4TIMEOUT 模式..................................................................................................................................................................497
图 22-5PWM 输出......................................................................................................................................................................498
图 22-6PWM 输出......................................................................................................................................................................499
图 23-1RTC 结构框图 ................................................................................................................................................................508
图 23-2LTBC 结构框图 ...............................................................................................................................................................509
图 23-3 RTC 时间读取流程图 ....................................................................................................................................................513
图 24-1 LCD 显示控制模块结构框图 ........................................................................................................................................526
图 24-2LCD 驱动波形(1/4 DUTY, 1/3 BIAS, TYPE A) ........................................................................................................................529
图 24-3 LCD 驱动波形(1/4 DUTY, 1/3 BIAS, TYPE B)........................................................................................................................530
图 24-4 LCD 片内电阻 BUFFER 型驱动电路 ................................................................................................................................531
图 25-1 ADC 结构框图 ...............................................................................................................................................................546
图 25-2 单端输入 ......................................................................................................................................................................547
图 25-3 差分输入 ......................................................................................................................................................................548
图 25-4 ADC 工作时序图 ...........................................................................................................................................................549
图 25-5 ADC 连续转换时序图 ...................................................................................................................................................550
图 25-6 ADC 转换过程中关闭使能 ...........................................................................................................................................550
图 25-7 ADC 单端输入通道示意图 ...........................................................................................................................................553
图 25-8 ADC 差分输入通道示意图 ...........................................................................................................................................554
图 25-9 ADC 触发通道示意图 ...................................................................................................................................................556
图 25-10 ADC 触发信号滤波 .....................................................................................................................................................556
图 25-11 ADC 工作时钟 .............................................................................................................................................................558
图 25-12 连续模式下的自动等待 ............................................................................................................................................558
图 25-13 模拟看门狗 ................................................................................................................................................................559
图 26-1 BEEPER 结构框图 ............................................................................................................................................................570
图 27-1 普通 GPIO 结构框图 ....................................................................................................................................................573
图 27-2 真开漏 GPIO 结构框图 ................................................................................................................................................574
图 27-3 普通 GPIO(两路上拉)结构框图 ..............................................................................................................................575
图 27-4 引脚输入数字滤波 .......................................................................................................................................................582
图 27-5 EXTI 信号输入示意图 ...................................................................................................................................................583
产品说明书
FM33L0 低功耗 MCU 芯片
版本 1.8
23
1 产品综述
1
产品综述
1.1
概述
FM33L0的主要特性如下:
⚫
宽电压范围:1.8~5.5V
⚫
工作温度范围:-40℃~+85℃
⚫
处理器内核
⚫
⚫
⚫
⚫
◼
ARM Cortex-M0
◼
支持用户/特权模式
◼
最高主频48Mhz
◼
SWD调试接口
低功耗技术平台
◼
典型运行功耗105uA/MHz@48Mhz
◼
32KHz下LPRUN功耗:
很抱歉,暂时无法提供与“FM33L013”相匹配的价格&库存,您可以联系我们找货
免费人工找货