資源簡介
進行PIC24系列單片機開發不可多得的好資料!

代碼片段和文件信息
/*****************************************************************************
?*??ADC
?*??Modified?for?PIC24FJ64GA004?family?with?PPS.
?*****************************************************************************
?*?FileName:????????adc.c
?*?Dependencies:????system.h?spimpol.c?eeprom.c
?*?Processor:???????PIC24
?*?Compiler:??????? MPLAB?C30
?*?linker:??????????MPLAB?link30
?*?Company:?????????Microchip?Technology?Incorporated
?*
?*?Software?License?Agreement
?*
?*?The?software?supplied?herewith?by?Microchip?Technology?Incorporated
?*?(the?“Company“)?is?intended?and?supplied?to?you?the?Company‘s
?*?customer?for?use?solely?and?exclusively?with?products?manufactured
?*?by?the?Company.?
?*
?*?The?software?is?owned?by?the?Company?and/or?its?supplier?and?is?
?*?protected?under?applicable?copyright?laws.?All?rights?are?reserved.?
?*?Any?use?in?violation?of?the?foregoing?restrictions?may?subject?the?
?*?user?to?criminal?sanctions?under?applicable?laws?as?well?as?to?
?*?civil?liability?for?the?breach?of?the?terms?and?conditions?of?this?
?*?license.
?*
?*?THIS?SOFTWARE?IS?PROVIDED?IN?AN?“AS?IS“?CONDITION.?NO?WARRANTIES?
?*?WHETHER?EXPRESS?IMPLIED?OR?STATUTORY?INCLUDING?BUT?NOT?LIMITED?
?*?TO?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR?A?
?*?PARTICULAR?PURPOSE?APPLY?TO?THIS?SOFTWARE.?THE?COMPANY?SHALL?NOT?
?*?IN?ANY?CIRCUMSTANCES?BE?LIABLE?FOR?SPECIAL?INCIDENTAL?OR?
?*?CONSEQUENTIAL?DAMAGES?FOR?ANY?REASON?WHATSOEVER.
?*
?*
?*??State?machine?to?sample?analog?inputs?for?temperature?sensor?and?potentiometer.
?*
?*?Author???????????????Date????????Comment
?*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
?*?Anton?Alkhimenok 10/18/05 ...
?*?Brant?Ivey ?3/14/06 Modified?for?PIC24FJ64GA004?family?with?PPS.
?*?Kevin?Hengehold???????9/8/10???Modified?for?PIC24F32KA304?family
?*****************************************************************************/
#include?“system.h“
/*****************************************************************************
?*?Module?Constants?Definitions?
?*****************************************************************************/
//ADC?channels?numbers
#define?ADC_TEMPERATURE??ADC_TEMP_CHAN
#define?ADC_VOLTAGE??????ADC_VOLT_CHAN
//?Delay?after?input?switching
#define?ADC_SWITCH_DELAY????600
//?Temperature?scale?switching?period
#define?ADC_CELSIUS_DELAY???100
//?Number?position
#define?ADC_POS_NUMBER??????6
//?Temperature?scale?sign?position
#define?ADC_POS_SCALE???????11
//?Memory?sign?position
#define?ADC_POS_MEM?????????13
//?Reference?voltage?mV
#define?AVCC????????????????3300
/*****************************************************************************
?*?Arrays:?_voltage_str?and?_temperature_str
?*
?*?Overview:?These?arrays?contains?voltage?and?temperature?strings.
?*
?*****************************************************************************/
char?_voltage_str[16]?=?????“Vol?=?????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????11641??2011-11-23?11:10??Tutorial\adc.c
?????文件???????5800??2011-11-23?11:10??Tutorial\adc.h
?????文件??????20225??2011-11-23?11:10??Tutorial\banner.c
?????文件???????1845??2011-11-23?11:10??Tutorial\banner.h
?????文件???????5280??2011-11-23?11:10??Tutorial\buttons.c
?????文件???????5224??2011-11-23?11:10??Tutorial\buttons.h
?????文件???????8835??2011-11-23?11:10??Tutorial\eeprom.c
?????文件??????14093??2011-11-23?11:10??Tutorial\eeprom.h
?????文件???????5427??2011-11-23?11:10??Tutorial\iomapping.c
?????文件??????15325??2011-11-23?11:10??Tutorial\iomapping.h
?????文件??????10458??2011-11-23?11:10??Tutorial\lcd.c
?????文件???????8543??2011-11-23?11:10??Tutorial\lcd.h
?????文件???????3799??2011-11-23?11:10??Tutorial\LEDstart.c
?????文件???????4000??2011-11-23?11:10??Tutorial\LEDstart.h
?????文件???????2855??2011-11-23?16:39??Tutorial\MyProject.mcp
????I.A....????????75??2011-11-23?16:43??Tutorial\MyProject.mcs
?????文件??????24576??2011-11-23?16:43??Tutorial\MyProject.mcw
?????文件??????10109??2011-11-23?11:10??Tutorial\PIC24ExplDemo.c
?????文件???????2561??2011-11-23?11:10??Tutorial\PIC24ExplDemo.mcp
?????文件??????18408??2011-11-23?11:10??Tutorial\rtcc.c
?????文件???????5572??2011-11-23?11:10??Tutorial\rtcc.h
?????文件???????6683??2011-11-23?11:10??Tutorial\spimpol.c
?????文件???????9692??2011-11-23?11:10??Tutorial\spimpol.h
?????文件???????3206??2011-11-23?11:10??Tutorial\system.h
?????文件???????9286??2011-11-23?11:10??Tutorial\tbanner.c
?????文件???????1940??2011-11-23?11:10??Tutorial\tbanner.h
?????文件???????2991??2011-11-23?11:10??Tutorial\timer.c
?????文件???????2817??2011-11-23?11:10??Tutorial\timer.h
?????文件???????5317??2011-11-23?11:10??Tutorial\uart2.c
?????文件???????4509??2011-11-23?11:10??Tutorial\uart2.h
............此處省略6個文件信息
- 上一篇:hosts
- 下一篇:TComm_demo.zip
評論
共有 條評論