资源简介
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解码
相关资源
- xvid mpeg4 codec 编码解码器 v1.1.3 Final 汉
- MUSIC阵列算法
- Unity4.3Sourcecode
- 条码源代码(Code 39Code93)
- MSBCODE9.OCX
- TurboCodeDemo.rar
- HDB3解码Verilog程序源码,hdb3_decode.v
- MusicEncode.rar
- Code Warrior V5.1 License 破解,亲测可用,
- 邓俊辉算法训练营 第二期 代码
- codesys库函数说明
- IntelliJ IDEA 代码编辑区迷你缩放图插件
- BEncode Editor迅雷种子修改器,解决违规
- TCP/IP网络编程(随书代码)
- unicode与gbk双向转换编码表
- 32位汇编中定义Unicode字符串、使用S
- JPEG图像压缩编码及解码源代码可定图
- zw_92578197fountaincode.zip
- 大文件UrlDecode工具
- Mac上使用pcsc访问智能卡的xcode工程
- STBC_MIMO_code
- 扫描二维码llqrcode.zip
- xcode 工具开发的iphone 计算器
- QR码国际标准
- 算法刷题LeetCode中文版
- DS18B20 资料原理图+test code
- SkinHu(支持Unicode)+SkinH(支持多字节
- 完整的华为sourceInsight 宏定义
- Intel 5300网卡驱动iwlwifi-5000-ucode-8.83.
- 15个Codeblocks高亮主题
评论
共有 条评论