資源簡介
溫度控制系統,溫度采集是DS18B20,MCU是ST公司的STM32F103,具備COM口的RS232通信功能,支持鍵盤和LCD界面操作!
代碼片段和文件信息
/********************?(C)?COPYRIGHT?2007?STMicroelectronics?********************
*?File?Name??????????:?stm32f10x_adc.c
*?Author?????????????:?MCD?Application?Team
*?Date?First?Issued??:?09/29/2006
*?Description????????:?This?file?provides?all?the?ADC?firmware?functions.
********************************************************************************
*?History:
*?05/21/2007:?V0.3
*?04/02/2007:?V0.2
*?02/05/2007:?V0.1
*?09/29/2006:?V0.01
********************************************************************************
*?THE?PRESENT?SOFTWARE?WHICH?IS?FOR?GUIDANCE?ONLY?AIMS?AT?PROVIDING?CUSTOMERS
*?WITH?CODING?INFORMATION?REGARDING?THEIR?PRODUCTS?IN?ORDER?FOR?THEM?TO?SAVE?TIME.
*?AS?A?RESULT?STMICROELECTRONICS?SHALL?NOT?BE?HELD?LIABLE?FOR?ANY?DIRECT
*?INDIRECT?OR?CONSEQUENTIAL?DAMAGES?WITH?RESPECT?TO?ANY?CLAIMS?ARISING?FROM?THE
*?CONTENT?OF?SUCH?SOFTWARE?AND/OR?THE?USE?MADE?BY?CUSTOMERS?OF?THE?CODING
*?INFORMATION?CONTAINED?HEREIN?IN?CONNECTION?WITH?THEIR?PRODUCTS.
*******************************************************************************/
/*?Includes?------------------------------------------------------------------*/
#include?“stm32f10x_adc.h“
#include?“stm32f10x_rcc.h“
/*?Private?typedef?-----------------------------------------------------------*/
/*?Private?define?------------------------------------------------------------*/
/*?ADC?ADON?mask?*/
#define?CR2_ADON_Set???????????????((u32)0x00000001)
#define?CR2_ADON_Reset?????????????((u32)0xFFFFFFFE)
/*?ADC?DMA?mask?*/
#define?CR2_DMA_Set????????????????((u16)0x0100)
#define?CR2_DMA_Reset??????????????((u16)0xFEFF)
/*?ADC?RSTCAL?mask?*/
#define?CR2_RSTCAL_Set?????????????((u16)0x0008)
/*?ADC?CAL?mask?*/
#define?CR2_CAL_Set????????????????((u16)0x0004)
/*?ADC?SWSTRT?mask?*/
#define?CR2_SWSTRT_Set?????????????((u32)0x00400000)
/*?ADC?DISCNUM?mask?*/
#define?CR1_DISCNUM_Reset??????????((u32)0xFFFF1FFF)
/*?ADC?DISCEN?mask?*/
#define?CR1_DISCEN_Set?????????????((u32)0x00000800)
#define?CR1_DISCEN_Reset???????????((u32)0xFFFFF7FF)
/*?ADC?EXTTRIG?mask?*/
#define?CR2_EXTTRIG_Set????????????((u32)0x00100000)
#define?CR2_EXTTRIG_Reset??????????((u32)0xFFEFFFFF)
/*?ADC?Software?start?mask?*/
#define?CR2_EXTTRIG_SWSTRT_Set?????((u32)0x00500000)
#define?CR2_EXTTRIG_SWSTRT_Reset???((u32)0xFFAFFFFF)
/*?ADC?JAUTO?mask?*/
#define?CR1_JAUTO_Set??????????????((u32)0x00000400)
#define?CR1_JAUTO_Reset????????????((u32)0xFFFFFBFF)
/*?ADC?JDISCEN?mask?*/
#define?CR1_JDISCEN_Set????????????((u32)0x00001000)
#define?CR1_JDISCEN_Reset??????????((u32)0xFFFFEFFF)
/*?ADC?JEXTSEL?mask?*/
#define?CR2_JEXTSEL_Reset??????????((u32)0xFFFF8FFF)
/*?ADC?JEXTTRIG?mask?*/
#define?CR2_JEXTTRIG_Set???????????((u32)0x00008000)
#define?CR2_JEXTTRIG_Reset?????????((u32)0xFFFF7FFF)
/*?ADC?JSWSTRT?mask?*/
#define?CR2_JSWSTRT_Set????????????((u32)0x00200000)
/*?ADC?injected?software?start?mask?*/
#define?CR2_JEXTTRIG_JSWSTRT_Set???((u32)0x00208
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????6036735??2010-06-03?16:15??小梅畢業設計\EK-STM32F_RevEManual.pdf
?????文件???????2313??2007-05-17?18:46??小梅畢業設計\LCDDemo\library\inc\cortexm3_macro.h
?????文件??????16421??2007-05-16?11:13??小梅畢業設計\LCDDemo\library\inc\stm32f10x_adc.h
?????文件???????3526??2007-05-16?11:13??小梅畢業設計\LCDDemo\library\inc\stm32f10x_bkp.h
?????文件??????12319??2007-05-16?11:13??小梅畢業設計\LCDDemo\library\inc\stm32f10x_can.h
?????文件??????12551??2007-05-16?11:13??小梅畢業設計\LCDDemo\library\inc\stm32f10x_dma.h
?????文件???????5868??2007-05-16?11:13??小梅畢業設計\LCDDemo\library\inc\stm32f10x_exti.h
?????文件??????10421??2007-05-24?16:52??小梅畢業設計\LCDDemo\library\inc\stm32f10x_flash.h
?????文件??????12745??2010-04-15?15:48??小梅畢業設計\LCDDemo\library\inc\stm32f10x_gpio.h
?????文件??????15681??2007-05-16?11:04??小梅畢業設計\LCDDemo\library\inc\stm32f10x_i2c.h
?????文件???????3534??2007-05-16?11:04??小梅畢業設計\LCDDemo\library\inc\stm32f10x_iwdg.h
?????文件???????3080??2007-05-16?11:04??小梅畢業設計\LCDDemo\library\inc\stm32f10x_lib.h
?????文件??????20402??2007-05-16?11:04??小梅畢業設計\LCDDemo\library\inc\stm32f10x_map.h
?????文件??????16398??2007-05-23?10:52??小梅畢業設計\LCDDemo\library\inc\stm32f10x_nvic.h
?????文件???????3975??2007-05-16?11:03??小梅畢業設計\LCDDemo\library\inc\stm32f10x_pwr.h
?????文件??????13856??2007-05-16?14:49??小梅畢業設計\LCDDemo\library\inc\stm32f10x_rcc.h
?????文件???????3767??2007-05-16?11:03??小梅畢業設計\LCDDemo\library\inc\stm32f10x_rtc.h
?????文件???????9436??2007-05-16?11:03??小梅畢業設計\LCDDemo\library\inc\stm32f10x_spi.h
?????文件???????3315??2007-05-16?11:03??小梅畢業設計\LCDDemo\library\inc\stm32f10x_systick.h
?????文件??????29150??2007-05-16?11:03??小梅畢業設計\LCDDemo\library\inc\stm32f10x_tim.h
?????文件??????34803??2007-05-16?11:03??小梅畢業設計\LCDDemo\library\inc\stm32f10x_tim1.h
?????文件???????3189??2007-05-16?11:02??小梅畢業設計\LCDDemo\library\inc\stm32f10x_type.h
?????文件??????11846??2007-05-16?10:54??小梅畢業設計\LCDDemo\library\inc\stm32f10x_usart.h
?????文件???????2750??2007-05-16?11:13??小梅畢業設計\LCDDemo\library\inc\stm32f10x_wwdg.h
?????文件??????55005??2007-05-16?11:17??小梅畢業設計\LCDDemo\library\src\stm32f10x_adc.c
?????文件??????10714??2007-05-16?11:17??小梅畢業設計\LCDDemo\library\src\stm32f10x_bkp.c
?????文件??????31626??2007-05-16?11:17??小梅畢業設計\LCDDemo\library\src\stm32f10x_can.c
?????文件??????23394??2007-05-16?11:17??小梅畢業設計\LCDDemo\library\src\stm32f10x_dma.c
?????文件???????8686??2007-05-16?11:17??小梅畢業設計\LCDDemo\library\src\stm32f10x_exti.c
?????文件??????32144??2007-05-24?16:51??小梅畢業設計\LCDDemo\library\src\stm32f10x_flash.c
............此處省略377個文件信息
評論
共有 條評論