极品馒头泬19p,国产精品亚洲一区二区三区,狠狠色噜噜狠狠狠7777奇米,国产精品视频一区二区三区无码,国产欧美日韩久久久久

【E538】基于STM32多功能(自動(dòng)校時(shí),天氣,溫度,農(nóng)歷,節(jié)氣)的萬年歷時(shí)鐘

2021-08-24 00:33:56      索煒達(dá)電子      1228     

項(xiàng)目編號(hào):E538

文件大?。?.54M

源碼說明:帶中文注釋

開發(fā)環(huán)境:C編譯器

簡(jiǎn)要概述

一種基于STM32多功能(自動(dòng)校時(shí),天氣,溫度,農(nóng)歷,節(jié)氣)的萬年歷時(shí)鐘。

main.c : Charactor Encoding :System

boot0 boot1 x 0 Normal 0 1 ISP 1 1 SRAM

編譯器: iar730

調(diào)整時(shí)間的方法: 

1.燒錄的時(shí)候自動(dòng)同步PC端時(shí)間; 

2.串口協(xié)議更新時(shí)間 打開串口調(diào)試助手,buad =115200,16進(jìn)制發(fā)送 例如調(diào)整時(shí)間為 2015.08.08 20:18:09 發(fā)送數(shù)據(jù)如下: 【AA BB 20 15 08 08 20 18 09 FF 】

 3.GPS模塊授時(shí)功能

  1. 登錄網(wǎng)站:http://tool.chinaz.com/Tools/unixtime.aspx# 查詢得到Unix時(shí)間戳,復(fù)制 下來,再調(diào)整8個(gè)時(shí)區(qū)(28800S)(格林威治時(shí)間,北京時(shí)間需要+8小時(shí)), 然后串口發(fā)送給時(shí)鐘即可完成校時(shí)。

程序后續(xù)需要進(jìn)行優(yōu)化和改進(jìn)的工作如下:

 1.加入遙控調(diào)整時(shí)間功能;

 2.加入U(xiǎn)ART IAP 功能;

 3.加入鬧鐘1~3組的功能;

注意: 1.在使用帶jtag接口的I/O時(shí)要特別注意 PA13:SWDIO/JTAG_TMS PA14:SWCLK/JTAG_TCK PA15:JTAG_TDI PB3:JTAG_TDO PB4:JTAG_RST

LCD12864實(shí)際連線:

  1. RS

  2. R/W

  3. E 4.VCC 5.GND 6.BLKA 7.BLKN

其他均可以不連接(VO,RST.……)

部分硬件結(jié)構(gòu)說明:

  1. 按鍵按下,(上連接VCC)連接電阻下拉到地,檢測(cè)IO連接上端,檢測(cè)到高電平。

目錄│文件列表:

 └ Calendar_LCD12864

    │ keilkilll.bat

    │ LCD12864_calendar.siproj

    │ LCD12864_calendar.sip_sym

    │ LCD12864_calendar.sip_xab

    │ LCD12864_calendar.sip_xad

    │ LCD12864_calendar.sip_xc

    │ LCD12864_calendar.sip_xf

    │ LCD12864_calendar.sip_xm

    │ LCD12864_calendar.sip_xr

    │ LCD12864_calendar.sip_xsb

    │ LCD12864_calendar.sip_xsd

    │ LCD12864_calendar.siwork

    │ readme.txt

    ├ application

    │  ├ APP

    │  │  │ calendar.c

    │  │  └ calendar.h

    │  ├ BSP

    │  │  │ bsp_coerboard_led.c

    │  │  │ bsp_coreboard_led.h

    │  │  │ bsp_ds18b20.c

    │  │  │ bsp_ds18b20.h

    │  │  │ bsp_shenzhou1_key.c

    │  │  │ bsp_shenzhou1_key.h

    │  │  └ ST7920_LCD

    │  │     │ draw.c

    │  │     │ draw.h

    │  │     │ LCD12864.c

    │  │     └ LCD12864.h

    │  ├ Driver

    │  │  │ chipid.c

    │  │  │ chipid.h

    │  │  │ rtc.c

    │  │  │ rtc.h

    │  │  │ SysTick.c

    │  │  │ SysTick.h

    │  │  │ timer.c

    │  │  │ timer.h

    │  │  │ uart.c

    │  │  └ uart.h

    │  ├ Project

    │  │  │ UART1T4.dep

    │  │  │ UART1T4.ewd

    │  │  │ UART1T4.ewp

    │  │  │ UART1T4.ewt

    │  │  └ UART1T4.eww

    │  └ User

    │     │ delay.c

    │     │ delay.h

    │     │ main.c

    │     │ system_stm32f10x.c

    │     └ system_stm32f10x.h

    ├ doc

    │  └ QQ截圖20151031132337.jpg

    ├ STM32f10x_Libraries

    │  ├ CMSIS

    │  │  └ CM3

    │  │     ├ CoreSupport

    │  │     │  │ core_cm3.c

    │  │     │  │ core_cm3.h

    │  │     │  │ core_cmFunc.h

    │  │     │  └ core_cmInstr.h

    │  │     └ DeviceSupport

    │  │        └ ST

    │  │           └ STM32F10x

    │  │              │ stm32f10x.h

    │  │              └ startup

    │  │                 ├ arm

    │  │                 │  │ startup_stm32f10x_cl.s

    │  │                 │  │ startup_stm32f10x_hd.s

    │  │                 │  │ startup_stm32f10x_hd_vl.s

    │  │                 │  │ startup_stm32f10x_ld.s

    │  │                 │  │ startup_stm32f10x_ld_vl.s

    │  │                 │  │ startup_stm32f10x_md.s

    │  │                 │  │ startup_stm32f10x_md_vl.s

    │  │                 │  └ startup_stm32f10x_xl.s

    │  │                 ├ gcc_ride7

    │  │                 │  │ startup_stm32f10x_cl.s

    │  │                 │  │ startup_stm32f10x_hd.s

    │  │                 │  │ startup_stm32f10x_hd_vl.s

    │  │                 │  │ startup_stm32f10x_ld.s

    │  │                 │  │ startup_stm32f10x_ld_vl.s

    │  │                 │  │ startup_stm32f10x_md.s

    │  │                 │  │ startup_stm32f10x_md_vl.s

    │  │                 │  └ startup_stm32f10x_xl.s

    │  │                 └ iar

    │  │                    │ startup_stm32f10x_cl.s

    │  │                    │ startup_stm32f10x_hd.s

    │  │                    │ startup_stm32f10x_hd_vl.s

    │  │                    │ startup_stm32f10x_ld.s

    │  │                    │ startup_stm32f10x_ld_vl.s

    │  │                    │ startup_stm32f10x_md.s

    │  │                    │ startup_stm32f10x_md_vl.s

    │  │                    └ startup_stm32f10x_xl.s

    │  └ STM32F10x_StdPeriph_Driver

    │     ├ inc

    │     │  │ misc.h

    │     │  │ stm32f10x_adc.h

    │     │  │ stm32f10x_bkp.h

    │     │  │ stm32f10x_can.h

    │     │  │ stm32f10x_cec.h

    │     │  │ stm32f10x_conf.h

    │     │  │ stm32f10x_crc.h

    │     │  │ stm32f10x_dac.h

    │     │  │ stm32f10x_dbgmcu.h

    │     │  │ stm32f10x_dma.h

    │     │  │ stm32f10x_exti.h

    │     │  │ stm32f10x_flash.h

    │     │  │ stm32f10x_fsmc.h

    │     │  │ stm32f10x_gpio.h

    │     │  │ stm32f10x_i2c.h

    │     │  │ stm32f10x_iwdg.h

    │     │  │ stm32f10x_pwr.h

    │     │  │ stm32f10x_rcc.h

    │     │  │ stm32f10x_rtc.h

    │     │  │ stm32f10x_sdio.h

    │     │  │ stm32f10x_spi.h

    │     │  │ stm32f10x_tim.h

    │     │  │ stm32f10x_usart.h

    │     │  └ stm32f10x_wwdg.h

    │     └ src

    │        │ misc.c

    │        │ stm32f10x_adc.c

    │        │ stm32f10x_bkp.c

    │        │ stm32f10x_can.c

    │        │ stm32f10x_cec.c

    │        │ stm32f10x_crc.c

    │        │ stm32f10x_dac.c

    │        │ stm32f10x_dbgmcu.c

    │        │ stm32f10x_dma.c

    │        │ stm32f10x_exti.c

    │        │ stm32f10x_flash.c

    │        │ stm32f10x_fsmc.c

    │        │ stm32f10x_gpio.c

    │        │ stm32f10x_i2c.c

    │        │ stm32f10x_iwdg.c

    │        │ stm32f10x_pwr.c

    │        │ stm32f10x_rcc.c

    │        │ stm32f10x_rtc.c

    │        │ stm32f10x_sdio.c

    │        │ stm32f10x_spi.c

    │        │ stm32f10x_tim.c

    │        │ stm32f10x_usart.c

    │        └ stm32f10x_wwdg.c

    └ tools

       └ mcuisp.exe

TAG萬年歷時(shí)鐘
  • 8 次
  • 1 分