資源簡介
此例程基于stm32對于16位的ads1118做信息采集,測試成功,所采ad具有較高的精度

代碼片段和文件信息
/**
??******************************************************************************
??*?@file????system_stm32f0xx.c
??*?@author??MCD?Application?Team
??*?@brief???CMSIS?Cortex-M0?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_stm32f0xx.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_stm32f0xx.s“?file?to
??*????configure?the?system?clock?before?to?branch?to?main?program.
??*
??*?3.?This?file?configures?the?system?clock?as?follows:
??*=============================================================================
??*?????????????????????????Supported?STM32F0xx?device
??*-----------------------------------------------------------------------------
??*????????System?Clock?source????????????????????|?HSI
??*-----------------------------------------------------------------------------
??*????????SYSCLK(Hz)?????????????????????????????|?8000000
??*-----------------------------------------------------------------------------
??*????????HCLK(Hz)???????????????????????????????|?8000000
??*-----------------------------------------------------------------------------
??*????????AHB?Prescaler??????????????????????????|?1
??*-----------------------------------------------------------------------------
??*????????APB1?Prescaler?????????????????????????|?1
??*-----------------------------------------------------------------------------
??*=============================================================================
??******************************************************************************
??*?@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?code?must?retain?the?above?copyright?notice
??*??????this?list?of?conditions?and?the?following?disclaimer.
??*???2.?Redistributions?in?binary?form?must?reproduce?the?above?copyright?notice
??*??????this?list?of?conditions?and?the?following?disclaimer?in?the?documentation
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4474??2018-02-28?15:11??ADS1118\.mxproject
?????文件???????3792??2018-02-28?15:11??ADS1118\ADS1118.ioc
?????文件?????433390??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f030x6.h
?????文件?????438048??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f030x8.h
?????文件?????472809??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f030xc.h
?????文件?????458902??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f031x6.h
?????文件?????455784??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f038xx.h
?????文件?????914682??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f042x6.h
?????文件?????911272??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f048xx.h
?????文件?????554599??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f051x8.h
?????文件?????551483??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f058xx.h
?????文件?????453574??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f070x6.h
?????文件?????469347??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f070xb.h
?????文件?????606822??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f071xb.h
?????文件?????966699??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f072xb.h
?????文件?????963882??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f078xx.h
?????文件????1022710??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f091xc.h
?????文件????1019574??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f098xx.h
?????文件???????9917??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\stm32f0xx.h
?????文件???????3743??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Include\system_stm32f0xx.h
?????文件??????10425??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f030x6.s
?????文件??????10863??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f030x8.s
?????文件??????11140??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f030xc.s
?????文件??????10598??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f031x6.s
?????文件??????10487??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f038xx.s
?????文件??????11866??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f042x6.s
?????文件??????11254??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f048xx.s
?????文件??????11376??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f051x8.s
?????文件??????11253??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f058xx.s
?????文件??????11437??2017-08-21?08:06??ADS1118\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f070x6.s
............此處省略535個文件信息
評論
共有 條評論