Settings | Sign in | Sign up

【程序】STM32L476RG实现在STOP2模式下使用LPTIM,5秒钟从STOP2唤醒

#include <stdio.h>
#include <stm32l476xx.h>
// 供printf使用, 项目属性中勾选Use MicroLIB后有效...
巨大八爪鱼 6/19 巨大八爪鱼 (Clicks/Replies: 1,343/1)

【程序】STM32F107通过外部中断来响应按键

/* 单片机: STM32F107VCT6
** 系统时钟: 72MHz
** 外部晶振: 25MHz
**/
#include <stm32f10x.h>...
巨大八爪鱼 6/8 巨大八爪鱼 (Clicks/Replies: 1,260/1)

【实测数据】STM32F107VCT6接了25MHz外部晶振后,开机时的时钟情况

volatile uint32_t num;
num = RCC->CFGR; // 0x001D040A
// MCO=0: Microcontroller clock outpu...
巨大八爪鱼 6/8 巨大八爪鱼 (Clicks/Replies: 1,077/1)

【程序】STM32L476RG通过寄存器操作GPIO口点亮LED灯

#include <stm32l476xx.h>
void delay(void)
{
    uint32_t i;...
巨大八爪鱼 5/23 巨大八爪鱼 (Clicks/Replies: 1,110/1)

一些STM32芯片的发布时间(以手册文档的发布时间为准)

STM32F103C8、STM32F103CB    2007.6.1
STM32F103RC、STM32F103RE、STM43F103VE...
巨大八爪鱼 5/15 巨大八爪鱼 (Clicks/Replies: 925/0)

【程序】在睡眠模式下通过定时器中断喂狗

#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x...
巨大八爪鱼 4/13 巨大八爪鱼 (Clicks/Replies: 1,138/2)

【程序】窗口看门狗WWDG的使用

#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x...
巨大八爪鱼 4/12 巨大八爪鱼 (Clicks/Replies: 1,067/4)

【方法】系统时钟从PLL切换到HSI(以及切换回来)

【PLL到HSI】
// 假设HSI已经打开
RCC->CFGR &= ~RCC_CFGR_SW; // 系统时钟切换到HSI
RCC->CR &= ~(...
巨大八爪鱼 4/7 巨大八爪鱼 (Clicks/Replies: 869/0)

【程序】STM32F103中的RTC时钟精确到毫秒显示时间

#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x...
巨大八爪鱼 4/4 巨大八爪鱼 (Clicks/Replies: 911/0)

【实验】用电容器延缓I/O口的电平变化速度

将一个电阻和一个电容串联起来接地。最左边为电阻,电阻的最左端接单片机的PC1口,并设为输出。电阻和电容中间引出一根线,接到PC0口,设为输入。
最初PC1输出低电平,电容上没有电荷,PC0为低电...
巨大八爪鱼 4/4 巨大八爪鱼 (Clicks/Replies: 966/2)

【实验】使用定时器的外部时钟模式对多谐振荡器的性能进行评估

【实验时用到的程序】
#include <stm32f10x.h>
const uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99,...
巨大八爪鱼 4/2 巨大八爪鱼 (Clicks/Replies: 1,587/18)

【程序】独立看门狗IWDG的使用

#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x...
巨大八爪鱼 3/24 巨大八爪鱼 (Clicks/Replies: 1,106/3)

【程序】使用外部32.768kHz晶振作为RTC的时钟源(库函数版)

#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x...
巨大八爪鱼 3/24 巨大八爪鱼 (Clicks/Replies: 1,019/5)

【程序】使用内部低速晶振作为RTC的时钟源(库函数版)

#include <stm32f10x.h>
uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x...
巨大八爪鱼 3/24 巨大八爪鱼 (Clicks/Replies: 1,007/1)

今天晚上写的串口控制的RTC时钟程序

#include <stdio.h>
#include <string.h>
#include <stm32f10x.h>
#define BIT...
巨大八爪鱼 3/22 巨大八爪鱼 (Clicks/Replies: 999/0)
There are 111 topics, 479 posts and 1 蝶粉(s) in this bar.

Content converter:

Create a post
Title:
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.