/* 單片機: STM32F107VCT6
** 系統時鐘: 72MHz
** 外部晶振: 25MHz
**/
#include <stm32f10x.h>...
【程序】STM32F107通過外部中斷來響應按鍵/* 單片機: STM32F107VCT6
** 系統時鐘: 72MHz ** 外部晶振: 25MHz **/ #include <stm32f10x.h>... |
【實測數據】STM32F107VCT6接了25MHz外部晶振後,開機時的時鐘情況volatile uint32_t num;
num = RCC->CFGR; // 0x001D040A // MCO=0: Microcontroller clock outpu... |
【程序】STM32L476RG通過寄存器操作GPIO口點亮LED燈#include <stm32l476xx.h>
void delay(void) { uint32_t i;... |
一些STM32晶片的發佈時間(以手冊文檔的發佈時間為準)STM32F103C8、STM32F103CB 2007.6.1
STM32F103RC、STM32F103RE、STM43F103VE... |
【程序】在睡眠模式下通過定時器中斷餵狗#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x... |
【程序】窗口看門狗WWDG的使用#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x... |
【方法】系統時鐘從PLL切換到HSI(以及切換回來)【PLL到HSI】
// 假設HSI已經打開 RCC->CFGR &= ~RCC_CFGR_SW; // 系統時鐘切換到HSI RCC->CR &= ~(... |
【程序】STM32F103中的RTC時鐘精確到毫秒顯示時間#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x... |
【實驗】用電容器延緩I/O口的電平變化速度將一個電阻和一個電容串聯起來接地。最左邊為電阻,電阻的最左端接單片機的PC1口,並設為輸出。電阻和電容中間引出一根線,接到PC0口,設為輸入。
最初PC1輸出低電平,電容上沒有電荷,PC0為低電... |
【實驗】使用定時器的外部時鐘模式對多諧振盪器的性能進行評估【實驗時用到的程序】
#include <stm32f10x.h> const uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99,... |
【程序】獨立看門狗IWDG的使用#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x... |
【程序】使用外部32.768kHz晶振作為RTC的時鐘源(庫函數版)#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x... |
【程序】使用內部低速晶振作為RTC的時鐘源(庫函數版)#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x... |
今天晚上寫的串口控制的RTC時鐘程序#include <stdio.h>
#include <string.h> #include <stm32f10x.h> #define BIT... |
【截圖】成功的uCOS-II移植 [圖片]![]() |
本吧共有主題數110個,帖子數474篇,蝶粉數1位。 |
內容轉換: |