STM32F10x讀取DS1302的時間,通過USART顯示在串口調試助手上

STM32的開發板上有個DS1302芯片,STM32從DS1302上讀取時間,並通過串口通訊顯示在PC的串口調試助手上。 STM32和DS1302的接線如下: 代碼如下: #include "stm32f10x.h" #include <stdio.h> #include <string.h> #define AHB_INPUT 72 #define DS1302_PORT
相關文章
相關標籤/搜索