Datasheet 搜索 > 微控制器 > ST Microelectronics(意法半导体) > STM32F373RBT6 数据手册 > STM32F373RBT6 产品设计参考手册 2/66 页


¥ 32.273
STM32F373RBT6 产品设计参考手册 - ST Microelectronics(意法半导体)
制造商:
ST Microelectronics(意法半导体)
分类:
微控制器
封装:
LQFP-64
描述:
STMICROELECTRONICS STM32F373RBT6 微控制器, 32位, 16Σ-Δ模数转换器, ARM 皮质-M4F, 72 MHz, 128 KB, 24 KB, 64 引脚, LQFP
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
应用领域在P66
型号编号列表在P1
导航目录
STM32F373RBT6数据手册
Page:
of 66 Go
若手册格式错乱,请下载阅览PDF原文件

Contents UM1566
2/66 Doc ID 023577 Rev 1
Contents
1 CPAL overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 CPAL architecture description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1 CPAL application hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 Communication layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2.1 CPAL main structures (stm32xxxx_i2c_cpal.h) . . . . . . . . . . . . . . . . . . . . 9
2.2.2 CPAL communication functions (stm32xxxx_i2c_cpal.c) . . . . . . . . . . . . 16
2.3 User application interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.3.1 Configuration interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.3.2 User callback interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.4 Low layer interface (hardware abstraction layer HAL) . . . . . . . . . . . . . . . 24
3 CPAL functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.1.1 CPAL_I2C_Init() functional description . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.1.2 CPAL_I2C_DeInit() functional description . . . . . . . . . . . . . . . . . . . . . . . 29
3.1.3 CPAL_I2C_StructInit() functional description . . . . . . . . . . . . . . . . . . . . . 31
3.2 Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.2.1 CPAL_I2C_Read() functional description . . . . . . . . . . . . . . . . . . . . . . . 32
3.2.2 CPAL_I2C_Write() functional description . . . . . . . . . . . . . . . . . . . . . . . . 34
3.2.3 CPAL_I2C_Listen () functional description: . . . . . . . . . . . . . . . . . . . . . . 35
3.2.4 CPAL_I2C_IsDeviceReady() functional description . . . . . . . . . . . . . . . . 35
3.2.5 CPAL interrupts and DMA management . . . . . . . . . . . . . . . . . . . . . . . . 36
3.3 Event and error management (user callbacks) . . . . . . . . . . . . . . . . . . . . 38
3.3.1 Timeout management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
4 How to use and customize the CPAL library (step by step) . . . . . . . . 42
4.1 Basic configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.1.1 Select peripherals to be used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.1.2 Configure transfer options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
4.1.3 Select and configure user and error callbacks . . . . . . . . . . . . . . . . . . . . 43
4.1.4 Configure timeout management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
4.1.5 Set Events, Errors and DMA interrupt priorities . . . . . . . . . . . . . . . . . . . 44
4.1.6 Configure the Log Macro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件