資源簡介
基于STM8L紅外解碼按鍵掃描C程序,適用剛上手STM8L的開發人員,可參考系統時鐘、看門狗、定時中斷、IO口等的初始化。適用單片機入門開發人員,參考企業級C程序編寫架構,紅外解碼、按鍵掃描等的基本應用。

代碼片段和文件信息
/**
??******************************************************************************
??*?@file????stm8l15x_adc.c
??*?@author??MCD?Application?Team
??*?@version?V1.6.0
??*?@date????28-June-2013
??*?@brief???This?file?provides?firmware?functions?to?manage?the?following?
??*??????????functionalities?of?the?Analog?to?Digital?Convertor?(ADC)?peripheral:???????????
??*???????????-?Initialization?and?Configuration
??*???????????-?Power?saving
??*???????????-?Analog?Watchdog?configuration??????????????
??*???????????-?Temperature?Sensor?&?Vrefint?(Voltage?Reference?internal)?management?
??*???????????-?Regular?Channels?Configuration
??*???????????-?Regular?Channels?DMA?Configuration
??*???????????-?Injected?channels?Configuration??????
??*???????????-?Interrupts?and?flags?management???????
??*?????????
??*??@verbatim
??*???????????????????????????????
??*??????????===================================================================??????
??*???????????????????????????????????How?to?use?this?driver
??*??????????===================================================================??????
??*??????????1.?Enable?The?ADC?controller?clock?using?CLK_PeripheralClockConfig()?
??*????????????function?:?CLK_PeripheralClockConfig(CLK_Peripheral_ADC1?ENABLE).
??*
??*????????????2.?Configure?the?ADC?Prescaler?conversion?resolution?and?data?
??*??????????????alignment?using?the?ADC_Init()?function.
??*?
??*????????????3.?Activate?the?ADC?peripheral?using?ADC_Cmd()?function.??
??*
??*??????????Regular?channels?group?configuration
??*??????????====================================????
??*????????????-?To?configure?the?ADC?regular?channels?group?features?use?
??*??????????????ADC_Init()?and?ADC_RegularChannelConfig()?functions.
??*????????????-?To?activate?the?continuous?mode?use?the?ADC_continuousModeCmd()
??*??????????????function.
??*????????????-?To?configure?and?activate?the?Discontinuous?mode?use?the?
??*??????????????ADC_DiscModeChannelCountConfig()?and?ADC_DiscModeCmd()?functions.????????
??*????????????-?To?read?the?ADC?converted?values?use?the?ADC_GetConversionValue()
??*??????????????function.
??*
??*??????????DMA?for?Regular?channels?group?features?configuration
??*??????????======================================================?
??*???????????-?To?enable?the?DMA?mode?for?regular?channels?group?use?the?
??*?????????????ADC_DMACmd()?function.
??*???????????-?To?enable?the?generation?of?DMA?requests?continuously?at?the?end
??*?????????????of?the?last?DMA?transfer?use?the?ADC_DMARequestAfterLastTransferCmd()?
??*?????????????function.????
?????????????
??*??????????Injected?channels?group?configuration
??*??????????=====================================????
??*????????????-?To?configure?the?ADC?Injected?channels?group?features?use?
??*??????????????ADC_InjectedChannelConfig()?and??ADC_InjectedSequencerLengthConfig()
??*??????????????functions.
??*????????????-?To?activate?the?continuous?mode?use?the?ADC_co
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4208??2015-12-29?15:29??STM8L-CODE\.cproject
?????文件????????796??2015-12-29?15:29??STM8L-CODE\.project
?????文件???????1089??2015-12-29?15:32??STM8L-CODE\.settings\language.settings.xm
?????文件??????12210??2015-05-16?11:37??STM8L-CODE\EWSTM8\Backup?of?CAR-EPS-STM8L.ewd
?????文件??????44784??2015-05-16?11:37??STM8L-CODE\EWSTM8\Backup?of?CAR-EPS-STM8L.ewp
?????文件?????????70??2015-05-16?11:37??STM8L-CODE\EWSTM8\CAR-EPS-STM8L.custom_argvars
?????文件??????48310??2016-05-26?10:26??STM8L-CODE\EWSTM8\CAR-EPS-STM8L.dep
?????文件??????12636??2015-05-16?11:37??STM8L-CODE\EWSTM8\CAR-EPS-STM8L.ewd
?????文件??????45202??2016-05-25?15:51??STM8L-CODE\EWSTM8\CAR-EPS-STM8L.ewp
?????文件???????1470??2016-05-25?15:51??STM8L-CODE\EWSTM8\CAR-EPS-STM8L.ewt
?????文件????????167??2015-05-16?11:37??STM8L-CODE\EWSTM8\CAR-EPS-STM8L.eww
?????文件???????4793??2015-05-16?11:37??STM8L-CODE\EWSTM8\Debug\Exe\CAR-EPS-STM8L.bin
?????文件???????5604??2016-05-26?10:00??STM8L-CODE\EWSTM8\Debug\Exe\CAR-EPS-STM8L.hex
?????文件??????98284??2016-05-26?10:00??STM8L-CODE\EWSTM8\Debug\Exe\templproj.out
?????文件???????8432??2016-05-25?10:52??STM8L-CODE\EWSTM8\Debug\List\ADC.lst
?????文件???????2689??2016-05-24?20:47??STM8L-CODE\EWSTM8\Debug\List\FlashLight.lst
?????文件???????6763??2016-05-26?10:00??STM8L-CODE\EWSTM8\Debug\List\IR.lst
?????文件???????3830??2016-05-25?20:30??STM8L-CODE\EWSTM8\Debug\List\KEY.lst
?????文件???????9390??2016-05-26?09:46??STM8L-CODE\EWSTM8\Debug\List\main.lst
?????文件??????20982??2016-05-24?20:42??STM8L-CODE\EWSTM8\Debug\List\PowerManagement.lst
?????文件??????59665??2016-05-25?20:30??STM8L-CODE\EWSTM8\Debug\List\stm8l15x_adc.lst
?????文件??????62159??2016-05-25?20:30??STM8L-CODE\EWSTM8\Debug\List\stm8l15x_clk.lst
?????文件??????23512??2016-05-25?20:30??STM8L-CODE\EWSTM8\Debug\List\stm8l15x_gpio.lst
?????文件??????23069??2016-05-25?20:30??STM8L-CODE\EWSTM8\Debug\List\stm8l15x_it.lst
?????文件??????13950??2016-05-25?20:30??STM8L-CODE\EWSTM8\Debug\List\stm8l15x_iwdg.lst
?????文件??????10311??2016-05-25?20:30??STM8L-CODE\EWSTM8\Debug\List\stm8l15x_rst.lst
?????文件?????117966??2016-05-25?20:30??STM8L-CODE\EWSTM8\Debug\List\stm8l15x_tim2.lst
?????文件??????23016??2016-05-26?10:00??STM8L-CODE\EWSTM8\Debug\List\templproj.map
?????文件??????14297??2016-05-25?10:52??STM8L-CODE\EWSTM8\Debug\Obj\ADC.o
?????文件??????10420??2016-05-25?10:52??STM8L-CODE\EWSTM8\Debug\Obj\ADC.pbi.cout
............此處省略182個文件信息
評論
共有 條評論