10 2021 档案
摘要:本章教程通过串口调试助手打印显示程序运行状态,具体现象如下: 若计数器值在上窗口值和下窗口值0X40之间的时候,进行喂狗操作,计数器重新计数,程序正常运行,串口打印显示:The program runs normally; 若程序在快要减到0X3F时候通过中断函数进行喂狗操作,则串口打印显示:Exe
阅读全文
摘要:代码功能:每隔1毫秒进入一次定时器中断。 每隔1秒串口打印一次数据。 time.c #include "time.h" #include "ch32v10x.h" #include <stdio.h> int w = 0; void TIM3_IRQHandler(void) __attribute
阅读全文
摘要:摘要:1. sscanf函数 sscanf是C标准库函数,用于从字符串中读取格式化输入。 头文件: #include <stdio.h>函数原型如下: int sscanf(const char *s, const char *format, ...);函数
阅读全文

浙公网安备 33010602011771号