资源简介
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 =
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-11-19 09:20 PicTutorial\
文件 14021 2012-10-15 10:02 PicTutorial\Flash.c
文件 3799 2011-11-23 11:10 PicTutorial\LEDstart.c
文件 4000 2011-11-23 11:10 PicTutorial\LEDstart.h
文件 102902 2012-08-09 11:19 PicTutorial\LEDstart.o
文件 10109 2011-11-23 11:10 PicTutorial\PIC24ExplDemo.c
文件 1501300 2012-08-09 11:19 PicTutorial\PIC24ExplDemo.cof
文件 42803 2012-08-09 11:19 PicTutorial\PIC24ExplDemo.hex
文件 115321 2012-08-09 11:19 PicTutorial\PIC24ExplDemo.map
文件 2602 2012-08-09 11:19 PicTutorial\PIC24ExplDemo.mcp
文件 10403 2012-08-13 17:11 PicTutorial\PIC24ExplDemo.mcs
文件 31232 2012-08-13 17:11 PicTutorial\PIC24ExplDemo.mcw
文件 107111 2012-08-09 11:19 PicTutorial\PIC24ExplDemo.o
文件 53248 2012-08-09 11:06 PicTutorial\PicTutorial.IAB
文件 848 2012-08-09 11:06 PicTutorial\PicTutorial.IAD
文件 20480 2012-08-09 11:06 PicTutorial\PicTutorial.IMB
文件 528 2012-08-09 11:06 PicTutorial\PicTutorial.IMD
文件 116 2012-10-15 10:02 PicTutorial\PicTutorial.PFI
文件 776 2012-10-15 10:02 PicTutorial\PicTutorial.PO
文件 9560 2012-10-15 10:02 PicTutorial\PicTutorial.PR
文件 59208 2012-10-15 10:02 PicTutorial\PicTutorial.PRI
文件 152904 2012-11-19 09:26 PicTutorial\PicTutorial.PS
文件 478 2012-10-16 10:57 PicTutorial\PicTutorial.SearchResults
文件 41966 2012-11-19 09:26 PicTutorial\PicTutorial.WK3
文件 0 2012-08-15 18:02 PicTutorial\TFX200.tmp
文件 11641 2011-11-23 11:10 PicTutorial\adc.c
文件 5800 2011-11-23 11:10 PicTutorial\adc.h
文件 109698 2012-08-09 11:19 PicTutorial\adc.o
文件 20225 2011-11-23 11:10 PicTutorial\banner.c
文件 1845 2011-11-23 11:10 PicTutorial\banner.h
文件 110029 2012-08-09 11:19 PicTutorial\banner.o
............此处省略31个文件信息
- 上一篇:雷达杂波的仿真,weibull分布的雷达杂波
- 下一篇:基于dspmp3解码
相关资源
- 条码字体barcode128
- STM32蓝牙和串口程序
- UNICODE GBK双向码表二进制文件
- 常用编码(UnicodeUTF-8GBK)转换工具
- vc URL编解码类
- 中文转化unicoder码的方法
- codesys编程手册中文版
- XSS Encode
- LHC生命周期前沿的非弹性暗物质:A
- arm cortex m0 rtl code
- Xcode 12.3(16F156)安装包.zip
- windows 64位系统下安装Code Warrior6.3方法
- Zxing-Code_128一维码
- CODE128A 字体
- Code 128 字体
- INBarcodeOCR条码识别组件,识别率及速
- code39条形码字体
- 飞思卡尔68HC08Metrowerks_CodeWarrior开发软
- codewarrior使用指南中文版
- Code Warrior License 破解,各个版本可用
- Codewarrior HCS12 V5.1 license
- codewarrior6.3 win10环境可以安装的破解
- Codesys变成入门手册
- patchedcode.bin
- 奥科网关M1000B配置手册.docx
- icm20948_Sensor_Code.zip
- OzCode3.X Patch 注册机
- Qt实现Code39条形码
- shellcoder编程揭秘
- 黄金矿工源码
评论
共有 条评论