#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位。 |
内容转换: |