
【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) {... |
【程序】STM32定時器1的輸出比較模式(Output compare mode)#include <stm32f10x.h>
#define _BV(n) (1 << (n)) uint8_t cnt = 0; // 匹配計數 uint8... |
【程序】STM32 CRC32校驗值計算模塊的使用#include <stm32f10x.h>
#define _BV(n) (1 << (n)) uint32_t data; uint8_t seg8[]... |
【程序】STM32定時器1輸入捕獲#include <stm32f10x.h>
#define _BV(n) (1 << (n)) uint8_t seg8[] = {0xc0, 0xf9, 0xa... |
【程序】STM32定時器1對外部輸入信號(PA9下降沿)進行計數,帶消抖#include <stm32f10x.h>
#define _BV(n) (1 << (n)) uint8_t seg8[] = {0xc0, 0xf9, 0xa... |
【程序】STM32外部中斷的使用(以PB4為例)#include <stm32f10x.h>
#define _BV(n) (1 << (n)) uint8_t num = 0; uint8_t s... |
【程序】STM32F103C8T6最小系統板連接8位74HC595驅動的數碼管模塊並顯示數字 [圖片]![]() |
本吧共有主題數110個,帖子數474篇,蝶粉數1位。 |
內容轉換: |