/* LCD1602引脚2(VDD)必须接5V电压, 不可以接3.3V电压。其他引脚(包括引脚15-背光电源正)都可以接3.3V电压 */
/* 必须把J-Link设为不供电(更改内部跳线),...
【程序】STM32单片机通过DAC向1602液晶提供对比度电压,不使用外部电位器/* LCD1602引脚2(VDD)必须接5V电压, 不可以接3.3V电压。其他引脚(包括引脚15-背光电源正)都可以接3.3V电压 */
/* 必须把J-Link设为不供电(更改内部跳线),... |
【程序】STM32使用DAC控制电压表指针位置的程序#include <stm32f10x.h>
void delay(void) { uint32_t i;... |
【程序】STM32单片机操作ST93C46存储器的程序(3.2V电压)#include <stm32f10x.h>
#define _BV(n) (1 << (n)) #define CS_0 (GPIOA->BRR = GPI... |
【程序】STM32程序中使用printf和scanf函数读写串口 [圖片]![]() |
【程序】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... |
本吧共有主題數105個,帖子數450篇,蝶粉數1位。 |
內容轉換: |