#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移植 [圖片]![]() |
在移植uCOS-II时,必须修改启动文件里面的SysTick_Handler和PendSV_Handler不能单独定义这两个函数的跳转,如
void SysTick_Handler(void) { OS_CPU_SysTickHandler();... |
【应用】使用STM32定时器的Encoder模式驱动数字旋转编码开关/* 本程序使用的是锐志电子六合一扩展板上的数字旋转编码开关 */
/* 注意:一定要把板子下面的JPBMA和JPBMB跳线插上 */ #include <stm32f10x.h... |
【程序】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... |
本吧共有主題數105個,帖子數450篇,蝶粉數1位。 |
內容轉換: |