STM32F10x读取DS1302的时间,通过USART显示在串口调试助手上
STM32的开发板上有个DS1302芯片,STM32从DS1302上读取时间,并通过串口通讯显示在PC的串口调试助手上。
STM32和DS1302的接线如下:
代码如下:
#include "stm32f10x.h"
#include <stdio.h>
#include <string.h>
#define AHB_INPUT 72
#define DS1...
原创
2019-05-02 18:01:16 ·
2788 阅读 ·
3 评论