資源簡介
利用PT100或PT1000進行溫度探測,使用MAX31865作為處理模塊,代碼基于STM32的HAL庫,利用串口顯示溫度數據,代碼經個人檢測有效。

代碼片段和文件信息
/**
??******************************************************************************
??*?@file????system_stm32f3xx.c
??*?@author??MCD?Application?Team
??*?@version?V2.3.0
??*?@date????29-April-2015
??*?@brief???CMSIS?Cortex-M4?Device?Peripheral?Access?layer?System?Source?File.
??*
??*?1.?This?file?provides?two?functions?and?one?global?variable?to?be?called?from
??*????user?application:
??*??????-?SystemInit():?This?function?is?called?at?startup?just?after?reset?and?
??*??????????????????????before?branch?to?main?program.?This?call?is?made?inside
??*??????????????????????the?“startup_stm32f3xx.s“?file.
??*
??*??????-?SystemCoreClock?variable:?Contains?the?core?clock?(HCLK)?it?can?be?used
??*??????????????????????????????????by?the?user?application?to?setup?the?SysTick
??*??????????????????????????????????timer?or?configure?other?parameters.
??*
??*??????-?SystemCoreClockUpdate():?Updates?the?variable?SystemCoreClock?and?must
??*?????????????????????????????????be?called?whenever?the?core?clock?is?changed
??*?????????????????????????????????during?program?execution.
??*
??*?2.?After?each?device?reset?the?HSI?(8?MHz)?is?used?as?system?clock?source.
??*????Then?SystemInit()?function?is?called?in?“startup_stm32f3xx.s“?file?to
??*????configure?the?system?clock?before?to?branch?to?main?program.
??*
??*?3.?This?file?configures?the?system?clock?as?follows:
??*=============================================================================
??*?????????????????????????Supported?STM32F3xx?device
??*-----------------------------------------------------------------------------
??*????????System?Clock?source????????????????????|?HSI
??*-----------------------------------------------------------------------------
??*????????SYSCLK(Hz)?????????????????????????????|?8000000
??*-----------------------------------------------------------------------------
??*????????HCLK(Hz)???????????????????????????????|?8000000
??*-----------------------------------------------------------------------------
??*????????AHB?Prescaler??????????????????????????|?1
??*-----------------------------------------------------------------------------
??*????????APB2?Prescaler?????????????????????????|?1
??*-----------------------------------------------------------------------------
??*????????APB1?Prescaler?????????????????????????|?1
??*-----------------------------------------------------------------------------
??*????????USB?Clock??????????????????????????????|?DISABLE
??*-----------------------------------------------------------------------------
??*=============================================================================
??******************************************************************************
??*?@attention
??*
??*?©?COPYRIGHT(c)?2016?STMicroelectronics
??*
??*?Redistribution?and?use?in?source?and?binary?forms?with?or?without?modification
??*?are?permitted?provided?that?the?following?conditions?are?met:
??*???1.?Redistributions?of?source?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????.......??????5494??2016-12-29?22:53??MAX31865-master\.mxproject
????.......????704815??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f301x8.h
????.......???1044166??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f302x8.h
????.......???1068464??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f302xc.h
????.......???1220570??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f302xe.h
????.......???1026512??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f303x8.h
????.......???1130190??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f303xc.h
????.......???1291419??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f303xe.h
????.......????701944??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f318xx.h
????.......???1024520??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f328xx.h
????.......???1297990??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f334x8.h
????.......???1112309??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f358xx.h
????.......????996683??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f373xc.h
????.......????979269??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f378xx.h
????.......???1272206??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f398xx.h
????.......??????8995??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\stm32f3xx.h
????.......??????3671??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Include\system_stm32f3xx.h
????.......?????16643??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f301x8.s
????.......?????17458??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f302x8.s
????.......?????18185??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f302xc.s
????.......?????19095??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f302xe.s
????.......?????16820??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f303x8.s
????.......?????18892??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f303xc.s
????.......?????19802??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f303xe.s
????.......?????16543??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f318xx.s
????.......?????16714??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f328xx.s
????.......?????17485??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f334x8.s
????.......?????18365??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f358xx.s
????.......?????18421??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f373xc.s
????.......?????18044??2016-12-29?22:53??MAX31865-master\Drivers\CMSIS\Device\ST\STM32F3xx\Source\Templates\arm\startup_stm32f378xx.s
............此處省略616個文件信息
- 上一篇:《Programming in Lua》中文版
- 下一篇:ESP8266連接云平臺
評論
共有 條評論