资源简介
各种基于PIC18系列单片机的例程包含AD,PWM,LCD驱动等各种例程,初学者以及开发者都有大用处。绝不骗分,货真价实。
代码片段和文件信息
/**********************************************************************
* 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个文件信息
- 上一篇:LY-51S单片机开发板原理图
- 下一篇:TL494 boost电源PCB原理图设计
相关资源
- LY-51S单片机开发板原理图
- 51单片机驱动74hc595去控制8位数码管
- 嵌入式/单片机开发程序
- 单片机开发0004、Integrate就医服务平台
- 基于AT89C51单片机的温度自动监控系统
- lab8000单片机仿真实验 汇编语言程序
- 单片机通过串口转蓝牙模块传输温度
- 用单片机读取4*4矩阵键盘并在lcd中显
- STC12单片机运用LTC1865AD转换 含12864液晶
- 基于51单片机计算器课程设计
- avr mega16单片机驱动 tsl2561光传感器
- C51单片机T9输入法
- 51单片机外部中断流水灯汇编语言
- 原创最全51单片机函数库 IO DAC Timer
- 基于单片机的LED点阵显示系统设计
- 单片机485总线通信3从机、1主机
- 单片机模拟器Virtual51
- 基于proteus仿真单片机贪吃蛇程序在
- 51单片机lcd多级菜单
- 基于51单片机的GSM短信收发系统设计
- 基于51单片机的MPU6050程序
- 51单片机程序设计编程思路
- 步进电机的测速与闭环调速
- 经典的DSP的C程序和汇编程序库常用例
- 基于单片机倒车雷达
- 单片机电子琴 附有流程图
- 于AT89C52单片机简易函数信号发生器设
- 博世BMA456 传感器API 官方例程.zip
- 51与adc0832 信号发生器 可产生正弦波
- PIC单片机SPI主从通迅
评论
共有 条评论