【实验时用到的程序】
#include <stm32f10x.h>
const uint8_t seg8[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99,...
【实验】使用定时器的外部时钟模式对多谐振荡器的性能进行评估【实验时用到的程序】
#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... |
【程序】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函数读写串口 [圖片]![]() |
本吧共有主題數101個,帖子數445篇,蝶粉數1位。 |
內容轉換: |