文件名称:500025_E_10_ADC
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 88kb
- 下载次数:
- 0次
- 提 供 者:
- Shi***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
概要
本文档介绍了A/D 转换的API。
我们应该设置三个函数控制 A/D 转换: 初始化 A/D 转换,设置 A/D 转换状态,以及读取A/D 转换结果。-*****************************************************************************
MB95200 Series I/O register declaration file V01L02
ALL RIGHTS RESERVED, COPYRIGHT (C) FUJITSU MICROELECTRONICS LIMITED 2008
LICENSED MATERIAL- PROGRAM PROPERTY OF FUJITSU MICROELECTRONICS LIMITED
******************************************************************************/
/******************************************************************************
Name: MAIN.C
Function: By setting start-bit and Check with the conversion flag bit
******************************************************************************/
#include "..\MB95200_IO\mb95200.h"
#include "AD.h"
int AD_SAMPLE_VLAUE=0
/*************************** vDelay routine*********************************/
void vDelay(unsigned int uiCount)
{
int i
while(uiCount--)
{
for(i=0 i<1000 i++)
asm("\tNOP")
}
}
/******************************************************************************
Name: AD_Sample
Function: U
本文档介绍了A/D 转换的API。
我们应该设置三个函数控制 A/D 转换: 初始化 A/D 转换,设置 A/D 转换状态,以及读取A/D 转换结果。-*****************************************************************************
MB95200 Series I/O register declaration file V01L02
ALL RIGHTS RESERVED, COPYRIGHT (C) FUJITSU MICROELECTRONICS LIMITED 2008
LICENSED MATERIAL- PROGRAM PROPERTY OF FUJITSU MICROELECTRONICS LIMITED
******************************************************************************/
/******************************************************************************
Name: MAIN.C
Function: By setting start-bit and Check with the conversion flag bit
******************************************************************************/
#include "..\MB95200_IO\mb95200.h"
#include "AD.h"
int AD_SAMPLE_VLAUE=0
/*************************** vDelay routine*********************************/
void vDelay(unsigned int uiCount)
{
int i
while(uiCount--)
{
for(i=0 i<1000 i++)
asm("\tNOP")
}
}
/******************************************************************************
Name: AD_Sample
Function: U
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ADC_API_500025_E_10\AD.wsp
...................\..C_API\AD.dat
...................\.......\AD.prj
...................\.......\scr\AD.h
...................\.......\...\Main.c
...................\.......\...\startup.asm
...................\.......\...\vectors.c
...................\.......\scr
...................\.......\MB95200_IO\ioreg.txt
...................\.......\..........\ioregj.txt
...................\.......\..........\ioregj_a.txt
...................\.......\..........\ioreg_a.txt
...................\.......\..........\mb95200.h
...................\.......\..........\mb95200_a.inc
...................\.......\..........\_f2mc8fx.c
...................\.......\..........\_f2mc8fx.h
...................\.......\..........\_f2mc8fx_a.asm
...................\.......\MB95200_IO
...................\.......\Lib\AD.lib
...................\.......\Lib
...................\.......\Debug\AD.sup
...................\.......\.....\AD_HW.sup
...................\.......\.....\OPT\AD.opa
...................\.......\.....\...\AD.opb
...................\.......\.....\...\AD.opc
...................\.......\.....\...\AD.opl
...................\.......\.....\...\AD.opv
...................\.......\.....\OPT
...................\.......\.....\.BJ\AD.obj
...................\.......\.....\...\Main.obj
...................\.......\.....\...\Main.stk
...................\.......\.....\...\mb95200.obj
...................\.......\.....\...\startup.obj
...................\.......\.....\...\vectors.obj
...................\.......\.....\...\vectors.stk
...................\.......\.....\...\_f2mc8fx_a.obj
...................\.......\.....\OBJ
...................\.......\.....\LST\AD.mp1
...................\.......\.....\LST
...................\.......\.....\ABS\AD.abs
...................\.......\.....\ABS
...................\.......\Debug
...................\ADC_API
ADC_API_500025_E_10
...................\..C_API\AD.dat
...................\.......\AD.prj
...................\.......\scr\AD.h
...................\.......\...\Main.c
...................\.......\...\startup.asm
...................\.......\...\vectors.c
...................\.......\scr
...................\.......\MB95200_IO\ioreg.txt
...................\.......\..........\ioregj.txt
...................\.......\..........\ioregj_a.txt
...................\.......\..........\ioreg_a.txt
...................\.......\..........\mb95200.h
...................\.......\..........\mb95200_a.inc
...................\.......\..........\_f2mc8fx.c
...................\.......\..........\_f2mc8fx.h
...................\.......\..........\_f2mc8fx_a.asm
...................\.......\MB95200_IO
...................\.......\Lib\AD.lib
...................\.......\Lib
...................\.......\Debug\AD.sup
...................\.......\.....\AD_HW.sup
...................\.......\.....\OPT\AD.opa
...................\.......\.....\...\AD.opb
...................\.......\.....\...\AD.opc
...................\.......\.....\...\AD.opl
...................\.......\.....\...\AD.opv
...................\.......\.....\OPT
...................\.......\.....\.BJ\AD.obj
...................\.......\.....\...\Main.obj
...................\.......\.....\...\Main.stk
...................\.......\.....\...\mb95200.obj
...................\.......\.....\...\startup.obj
...................\.......\.....\...\vectors.obj
...................\.......\.....\...\vectors.stk
...................\.......\.....\...\_f2mc8fx_a.obj
...................\.......\.....\OBJ
...................\.......\.....\LST\AD.mp1
...................\.......\.....\LST
...................\.......\.....\ABS\AD.abs
...................\.......\.....\ABS
...................\.......\Debug
...................\ADC_API
ADC_API_500025_E_10