#include <stdio.h>
#include <stm32f10x.h>
#define RS_0 (GPIOA->BRR = GPIO_BRR_B...
【程序】1602液晶使用FIFO缓冲区方式显示串口接收到的数据,同时6位数码管显示串口数据的累加和#include <stdio.h>
#include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_BRR_B... |
【程序】STM32通过AD转换读取PA6端口上输入的模拟量并在1602液晶上显示转换结果#include <stdio.h>
#include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_BRR_B... |
【程序】STM32读取DHT11温湿度传感器的数据并在1602液晶上显示#include <stdio.h>
#include <stm32f10x.h> #define RS_0 (GPIOA->BRR = GPIO_BRR_B... |
【程序】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... |
本吧共有主題數108個,帖子數468篇,蝶粉數1位。 |
內容轉換: |