/* 93C46选默认的16位模式 */
#include <stm32f10x.h>
#define _BV(n) (1 << (n))
#define C...
【程序】STM32使用SPI接口操作93C46存储器/* 93C46选默认的16位模式 */
#include <stm32f10x.h> #define _BV(n) (1 << (n)) #define C... |
【程序】STM32使用SPI接口(8位模式)读取93C46存储器上的数据/* 93C46选默认的16位模式,但SPI总线上每次发送/接收8位数据 */
#include <stm32f10x.h> #define _BV(n) (1 <... |
【程序示例】使用位带操作法操作GPIOC的I/O口#include <stm32f10x.h>
void delay(void) { uint32_t i;... |
【程序】STM32通过DMA自动向串口发送指定长度的数据#include <stm32f10x.h>
#include <string.h> #define _BV(n) (1 << (n)) uint... |
【程序】STM32通过DMA自动接收串口数据到数组中#include <stm32f10x.h>
#define _BV(n) (1 << (n)) uint8_t num[2] = {0, 0}; // 数码管两侧... |
OV2640摄像头的DCMI驱动dcmi_ov2640.h/.c位于STM32F4的固件库里面所在的文件夹是STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Project/STM32F4xx_StdPeriph_Examples/DCMI/DCMI_CameraExamp...
|
【C++程序】用C++编写STM32F103串口通讯程序 [圖片]【程序运行效果】
![]() |
【示例程序】NVIC中断优先级的配置【示例1:高优先级中断屏蔽并清除低优先级中断】
#include <stm32f10x.h> #define _BV(n) (1 << (n)) uint16... |
GPIO_CRH/CRL配置方法每1位16进制数表示一个I/O端口。
1为10MHz推挽输出(推挽输出适合直接驱动)(复用为9) 2为2MHz推挽输出(复用为a) 3为50MHz推挽输出(复用为b) 5为10... |
【程序】STM32定时器1的使用#include <stm32f10x.h>
#define _BV(n) (1 << (n)) uint8_t seg8[] = {0xc0, 0xf9, 0xa... |
【程序】STM32软件模拟I2C协议读写24C04存储器#include <stm32f10x.h>
#define _BV(n) (1 << (n)) #define SCL_1 GPIOB->BSRR = _B... |
【程序】STM32单脉冲模式的使用#include <stm32f10x.h>
#define _BV(n) (1 << (n)) uint8_t n = 0; uint8_t seg8[]... |
【方法】硬件触发定时器TIM1的COM事件的方法#include <stm32f10x.h>
#define _BV(n) (1 << (n)) uint8_t n = 0; uint8_t seg8[]... |
【验证性实验】TIM1定时器死区时间(dead-time)的加入及检测【程序】
#include <stm32f10x.h> #define _BV(n) (1 << (n)) uint8_t i = 0; uint8_t... |
【程序】STM32定时器1的强置输出模式(Forced output mode)#include <stm32f10x.h>
#define _BV(n) (1 << (n)) void delay(void) {... |
本吧共有主題數101個,帖子數445篇,蝶粉數1位。 |
內容轉換: |