資源簡介
各種基于PIC18系列單片機的例程包含AD,PWM,LCD驅(qū)動等各種例程,初學(xué)者以及開發(fā)者都有大用處。絕不騙分,貨真價實。

代碼片段和文件信息
/**********************************************************************
*?2009?Microchip?Technology?Inc.
*
*?FileName:???????? adc.c
*?Dependencies:????Header?(.h)?files?if?applicable?see?below
*?Processor:??????? PIC18F
*?Compiler:???????? MCC18?v3.30?or?higher
*
*?SOFTWARE?LICENSE?AGREEMENT:
*?Microchip?Technology?Incorporated?(“Microchip“)?retains?all?
*?ownership?and?intellectual?property?rights?in?the?code?accompanying
*?this?message?and?in?all?derivatives?hereto.??You?may?use?this?code
*?and?any?derivatives?created?by?any?person?or?entity?by?or?on?your?
*?behalf?exclusively?with?Microchip‘s?proprietary?products.??Your?
*?acceptance?and/or?use?of?this?code?constitutes?agreement?to?the?
*?terms?and?conditions?of?this?notice.
*
*?CODE?ACCOMPANYING?THIS?MESSAGE?IS?SUPPLIED?BY?MICROCHIP?“AS?IS“.?NO?
*?WARRANTIES?WHETHER?EXPRESS?IMPLIED?OR?STATUTORY?INCLUDING?BUT?
*?NOT?LIMITED?TO?IMPLIED?WARRANTIES?OF?NON-INFRINGEMENT?
*?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE?APPLY?TO?THIS?
*?CODE?ITS?INTERACTION?WITH?MICROCHIP‘S?PRODUCTS?COMBINATION?WITH?
*?ANY?OTHER?PRODUCTS?OR?USE?IN?ANY?APPLICATION.?
*
*?YOU?ACKNOWLEDGE?AND?AGREE?THAT?IN?NO?EVENT?SHALL?MICROCHIP?BE?
*?LIABLE?WHETHER?IN?CONTRACT?WARRANTY?TORT?(INCLUDING?NEGLIGENCE?OR
*?BREACH?OF?STATUTORY?DUTY)?STRICT?LIABILITY?INDEMNITY?
*?CONTRIBUTION?OR?OTHERWISE?FOR?ANY?INDIRECT?SPECIAL?PUNITIVE?
*?EXEMPLARY?INCIDENTAL?OR?CONSEQUENTIAL?LOSS?DAMAGE?FOR?COST?OR?
*?EXPENSE?OF?ANY?KIND?WHATSOEVER?RELATED?TO?THE?CODE?HOWSOEVER?
*?CAUSED?EVEN?IF?MICROCHIP?HAS?BEEN?ADVISED?OF?THE?POSSIBILITY?OR?THE
*?DAMAGES?ARE?FORESEEABLE.??TO?THE?FULLEST?EXTENT?ALLOWABLE?BY?LAW?
*?MICROCHIP‘S?TOTAL?LIABILITY?ON?ALL?CLAIMS?IN?ANY?WAY?RELATED?TO?THIS
*?CODE?SHALL?NOT?EXCEED?THE?PRICE?YOU?PAID?DIRECTLY?TO?MICROCHIP?
*?SPECIFICALLY?TO?HAVE?THIS?CODE?DEVELOPED.
*
*?You?agree?that?you?are?solely?responsible?for?testing?the?code?and?
*?determining?its?suitability.??Microchip?has?no?obligation?to?modify
*?test?certify?or?support?the?code.
*
*?REVISION?HISTORY:
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*?Author???????? Date?????? Comments?on?this?revision
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*?Harsha.J.M 04/04/09 First?release?of?source?file
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
*?ADDITIONAL?NOTES:
*?Code?uses?the?Peripheral?library?support?available?with?MCC18?Compiler
*?Code?Tested?on:
*?PicDem2+?demo?board?with?PIC18F4685?controller
*?The?Processor?starts?with?the?External?Crystal?(8?Mhz).
*
*?signal?to?be?converted?is?fed?to?AN0?channel.
**********************************************************************/
#define?USE_OR_MASKS
#include?
#include?“adc.h“
//-------------------------------Configuration?setting?----------------------------------------------
/**
*?Oscillator?is?configured?as?HS
*?Fail?safe?monito
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4171??2000-06-19?12:04??pic18\a2d\a2d.asm
?????文件???????1030??2009-09-15?16:47??pic18\ADCDuringSleep\ADCDuringSleep\ADCDuringSleep.mcp
?????文件??????25088??2009-09-15?16:47??pic18\ADCDuringSleep\ADCDuringSleep\ADCDuringSleep.mcw
?????文件???????4280??2009-09-18?16:49??pic18\ADCDuringSleep\ADCDuringSleep\main.c
?????文件???????2667??2000-06-19?12:04??pic18\bttn\bttn.asm
?????文件??????26624??2009-07-02?05:15??pic18\CCP_Input_Capture\PIC18_INCAP.mcw
?????文件???????3166??2009-07-02?05:15??pic18\CCP_Input_Capture\Readme.TXT
?????文件???????4637??2009-07-02?05:15??pic18\CCP_Input_Capture\incap.c
?????文件???????1139??2009-07-02?05:15??pic18\CCP_Input_Capture\PIC18_INCAP.mcp
?????文件???????3152??2009-07-02?05:15??pic18\CCP_Output_Compare\Readme.TXT
?????文件???????4115??2009-07-02?05:15??pic18\CCP_Output_Compare\ocmp.c
?????文件???????1138??2009-07-02?05:15??pic18\CCP_Output_Compare\PIC18_OCMP.mcp
?????文件??????26624??2009-07-02?05:15??pic18\CCP_Output_Compare\PIC18_OCMP.mcw
?????文件???????3388??2009-07-02?05:15??pic18\CCP_PWM\Readme.TXT
?????文件???????4416??2009-07-02?05:15??pic18\CCP_PWM\pwm.c
?????文件???????1127??2009-07-02?05:15??pic18\CCP_PWM\PIC18_PWM.mcp
?????文件??????30208??2009-07-02?05:15??pic18\CCP_PWM\PIC18_PWM.mcw
?????文件???????1135??2009-07-02?05:15??pic18\Deep_Sleep\PIC18_DEEP_SLEEP.mcp
?????文件??????26112??2009-07-02?05:15??pic18\Deep_Sleep\PIC18_DEEP_SLEEP.mcw
?????文件???????4003??2009-07-02?05:15??pic18\Deep_Sleep\Readme.TXT
?????文件??????11642??2009-07-02?05:15??pic18\Deep_Sleep\deep_sleep.c
?????文件???????4199??2009-09-17?11:21??pic18\EUSART2-PPS\EUSART2-PPS\eusart2_pps.c
?????文件???????1037??2009-09-16?18:39??pic18\EUSART2-PPS\EUSART2-PPS\eusart2_pps.mcp
?????文件??????24064??2009-09-18?16:24??pic18\EUSART2-PPS\EUSART2-PPS\eusart2_pps.mcw
?????文件???????4532??2009-07-02?05:15??pic18\External_LCD\xlcd.c
?????文件???????4146??2009-07-02?05:15??pic18\External_LCD\xlcd.h
?????文件???????1834??2009-07-02?05:15??pic18\External_LCD\PIC18_XLCD.mcp
?????文件?????939008??2009-07-02?05:15??pic18\External_LCD\PIC18_XLCD.mcw
?????文件???????3717??2009-07-02?05:15??pic18\External_LCD\Readme.TXT
?????文件???????2481??2009-07-02?05:15??pic18\External_LCD\busyxlcd.c
............此處省略216個文件信息
評論
共有 條評論