2022-01-01 16:05:58 索煒達(dá)電子 1762
項(xiàng)目編號:E2506
文件大?。?91K
源碼說明:帶中文注釋
開發(fā)環(huán)境:C編譯器
簡要概述
使用STM32F103最小系統(tǒng)、LCD屏幕及矩陣鍵盤實(shí)現(xiàn)基礎(chǔ)的計(jì)算器功能,即"+", "-", "*", "/"以及括號運(yùn)算。
引腳分配
鍵盤分布
功能
-使用棧實(shí)現(xiàn)括號的匹配
-使用中斷系統(tǒng)實(shí)現(xiàn)按鍵的檢測及防抖
-使用LCD進(jìn)行公式的顯示,可通過屏幕下方的滑動(dòng)變阻器調(diào)節(jié)屏幕亮度
-能夠保存上一次計(jì)算的結(jié)果,通過ANS鍵進(jìn)行調(diào)用
目錄│文件列表:
└ Calculator
│ keilkilll.bat
├ CORE
│ │ core_cm3.c
│ │ core_cm3.h
│ └ startup_stm32f10x_hd.s
├ HARDWARE
│ ├ key
│ │ │ key.c
│ │ └ key.h
│ ├ lcd
│ │ │ lcd.c
│ │ └ lcd.h
│ └ Stack
│ │ calculator.c
│ └ calculator.h
├ OBJ
│ └ Template.hex
├ STM32F10x_FWLib
│ ├ inc
│ │ │ misc.h
│ │ │ stm32f10x_adc.h
│ │ │ stm32f10x_bkp.h
│ │ │ stm32f10x_can.h
│ │ │ stm32f10x_cec.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
├ SYSTEM
│ ├ delay
│ │ │ delay.c
│ │ └ delay.h
│ ├ sys
│ │ │ sys.c
│ │ └ sys.h
│ └ usart
│ │ usart.c
│ └ usart.h
└ USER
│ JLinkSettings.ini
│ main.c
│ stm32f10x.h
│ stm32f10x_conf.h
│ stm32f10x_it.c
│ stm32f10x_it.h
│ system_stm32f10x.c
│ system_stm32f10x.h
│ Template.uvguix.Administrator
│ Template.uvguix.Tang KeXin
│ Template.uvoptx
└ Template.uvprojx