資源簡介
當(dāng)使用電池直接供電 或 外部供電低于LDO的輸入電壓時(shí),會(huì)造成STM32 VDD電壓不穩(wěn)定,忽高忽低。
此時(shí)通過使用STM32的內(nèi)部參考電壓功能(Embedded internal reference voltage),可以準(zhǔn)確的測量ADC管腳對(duì)應(yīng)的電壓值,精度 0.01v左右,可以滿足大部分應(yīng)用場景。
詳情參考Blog: https://blog.csdn.net/ioterr/article/details/109170847
代碼片段和文件信息
/**
??******************************************************************************
??*?@file????system_stm32l1xx.c
??*?@author??MCD?Application?Team
??*?@brief???CMSIS?Cortex-M3?Device?Peripheral?Access?layer?System?Source?File.
??*?????????????
??*???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_stm32l1xx.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.???
??*??????
??******************************************************************************
??*?@attention
??*
??*?©?COPYRIGHT(c)?2017?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
??*??????and/or?other?materials?provided?with?the?distribution.
??*???3.?Neither?the?name?of?STMicroelectronics?nor?the?names?of?its?contributors
??*??????may?be?used?to?endorse?or?promote?products?derived?from?this?software
??*??????without?specific?prior?written?permission.
??*
??*?THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS?“AS?IS“
??*?AND?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT?LIMITED?TO?THE
??*?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE?ARE
??*?DISCLAIMED.?IN?NO?EVENT?SHALL?THE?COPYRIGHT?HOLDER?OR?CONTRIBUTORS?BE?LIABLE
??*?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL?SPECIAL?EXEMPLARY?OR?CONSEQUENTIAL
??*?DAMAGES?(INCLUDING?BUT?NOT?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE?GOODS?OR
??*?SERVICES;?LOSS?OF?USE?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)?HOWEVER
??*?CAUSED?AND?ON?ANY?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT?STRICT?LIABILITY
??*?OR?TORT?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)?ARISING?IN?ANY?WAY?OUT?OF?THE?USE
??*?OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
??*
??******************************************************************************
??*/
/**?@addtogroup?CMSIS
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-10-18?17:56??ADC_TEST_STM32L151CBT6A201018\
?????目錄???????????0??2020-10-18?17:54??ADC_TEST_STM32L151CBT6A201018\Drivers\
?????目錄???????????0??2020-10-18?17:54??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\
?????目錄???????????0??2020-10-18?17:54??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\
?????目錄???????????0??2020-10-18?17:54??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\
?????目錄???????????0??2020-10-18?17:54??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\
?????文件????????5114??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_f32.c
?????文件????????5458??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q15.c
?????文件????????4431??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q31.c
?????文件????????5090??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_abs_q7.c
?????文件????????4891??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_f32.c
?????文件????????4423??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q15.c
?????文件????????4553??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q31.c
?????文件????????4226??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_add_q7.c
?????文件????????4613??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_f32.c
?????文件????????4912??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q15.c
?????文件????????5000??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q31.c
?????文件????????5408??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_dot_prod_q7.c
?????文件????????5582??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_f32.c
?????文件????????5306??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q15.c
?????文件????????5201??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q31.c
?????文件????????4530??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_mult_q7.c
?????文件????????4574??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_f32.c
?????文件????????4621??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q15.c
?????文件????????4178??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q31.c
?????文件????????4104??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_negate_q7.c
?????文件????????5095??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_f32.c
?????文件????????4534??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q15.c
?????文件????????4425??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q31.c
?????文件????????4462??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_offset_q7.c
?????文件????????5648??2018-02-12?19:24??ADC_TEST_STM32L151CBT6A201018\Drivers\CMSIS\DSP_Lib\Source\BasicMathFunctions\arm_scale_f32.c
............此處省略654個(gè)文件信息
- 上一篇:Serv-U_64_jb51.rar
- 下一篇:隨機(jī)過程劉次華第五版
評(píng)論
共有 條評(píng)論