资源简介
本文件含有两个程序,采用硬件IIC,一个是IIC主机发送程序,一个是IIC从机接收发送程序,实验现象是,在两块开发板上,连接上IIC线序(不用交叉),主机发送三个字节数据,从机接收到三个字节数据后,将数据发送回主机,完成主从机的通信,在IIC初试化中可以看到主机的地址设为了0x0A(主机地址没有用到,只是为了和从机进行区分),从机的地址设为了0x0B
代码片段和文件信息
/**
******************************************************************************
* @file system_stm32f4xx.c
* @author MCD Application Team
* @brief CMSIS Cortex-M4 Device Peripheral Access layer System Source File.
*
* This file provides two functions and one global variable to be called from
* user application:
* - SystemInit(): This function is called at startup just after reset and
* before branch to main program. This call is made inside
* the “startup_stm32f4xx.s“ file.
*
* - SystemCoreClock variable: Contains the core clock (HCLK) it can be used
* by the user application to setup the SysTick
* timer or configure other parameters.
*
* - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
* be called whenever the core clock is changed
* during program execution.
*
*
******************************************************************************
* @attention
*
* © COPYRIGHT 2017 STMicroelectronics
*
* Redistribution and use in source and binary forms with or without modification
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
* DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
*/
/** @addtogroup CMSIS
* @{
*/
/** @addtogroup stm32f4xx_s
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-25 16:16 IIC - 主\
文件 4373 2018-09-25 16:16 IIC - 主\.mxproject
目录 0 2018-09-25 16:16 IIC - 主\Drivers\
目录 0 2018-09-25 16:16 IIC - 主\Drivers\CMSIS\
目录 0 2018-09-25 16:16 IIC - 主\Drivers\CMSIS\DSP_Lib\
目录 0 2018-09-25 16:16 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\
目录 0 2018-09-25 16:16 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\
文件 5114 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_f32.c
文件 5458 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q15.c
文件 4431 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q31.c
文件 5090 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q7.c
文件 4891 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_f32.c
文件 4423 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q15.c
文件 4553 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q31.c
文件 4226 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q7.c
文件 4613 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_f32.c
文件 4912 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q15.c
文件 5000 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q31.c
文件 5408 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q7.c
文件 5582 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_f32.c
文件 5306 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q15.c
文件 5201 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q31.c
文件 4530 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q7.c
文件 4574 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_f32.c
文件 4621 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q15.c
文件 4178 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q31.c
文件 4104 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q7.c
文件 5095 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_f32.c
文件 4534 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q15.c
文件 4425 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q31.c
文件 4462 2018-08-20 21:45 IIC - 主\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q7.c
............此处省略1493个文件信息
- 上一篇:软件需求中文第3版 完整 带书签
- 下一篇:Django博客项目
相关资源
- STM32F407实现鸣志步进电机S型加速实现
- STM32F407 SD卡模拟U盘,fatfs文件系统,
- STM32F407ZGT6最小系统板
- STM32F407按键和LCD多级菜单显示.zip
- STM32F407 US100 USART串口超声波
- STM32F407单通道ADC例程
- STM32F407驱动LCD12864代码 LCD12864带中文
- 四线两相步进电机控制 Stm32F407 定时
- 基于STM32F407的 DMA + DAC 定时器触发实现
- ADS1256 包含.c.h文件 stm32f407 SPI
- stm32 f407 各个模块引脚整理
- STM32F407系列ZG/VG/IG原理图封装全
- STM32F407 标准库 实现6路串口配置,D
- STM32F407 ADC1双通道采样,DMA传输程序库
- STM32F407最小系统板(SWD口)
- STM32F407 485 MODBUS
- stm32F407光电编码器代码
- STM32F407W5500
- 基于STM32F407的OTM8009液晶显示驱动
- STM32F407驱动AD7606的8路16位AD同步采样含
- stm32f407+FFT浮点运算例程
- 正点原子STM32F407 AD封装库
- STM32F407 串口通讯
- STM32F407串口IAP
- stm32f4温度补偿超声波测距
- STM32f407ZGT6
- STM32F4076路串口DMA发送&接收实验
- STM32f407 SDcard
- STM32F407 步进电机含角度输出Keil代码
- STM32F407 FSMC控制AD7606、SRAM、NOR FLASH
评论
共有 条评论