91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 14.52MB
    文件類型: .7z
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-06-13
  • 語言: 其他
  • 標(biāo)簽: STM8L庫??

資源簡介

ST官網(wǎng)上的STM8L MCU 標(biāo)準(zhǔn)庫 .方便大家下載,也方便自己.STM8L15x-16x-05x-AL31-L_StdPeriph_Lib

資源截圖

代碼片段和文件信息

/**
??******************************************************************************
??*?@file????stm8l15x_adc.c
??*?@author??MCD?Application?Team
??*?@version?V1.6.1
??*?@date????30-September-2014
??*?@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?A

評論

共有 條評論

相關(guān)資源