文件名称:JiDianProgress
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 9.14mb
- 下载次数:
- 0次
- 提 供 者:
- lov****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本列子是控制测试继电器动作用的,
它控制的基础是在继电器驱动也就是IO驱动的基础上完成滴。
继电器驱动在本质上就是对IO口的控制,继电器有两种状态,打开和关闭,
分别对应IO口的高电平和低电平,所以驱动中我们只要对IO口进行高电平和低电平的转换就可以了,
在应用程序中直接打开驱动然后操作IO口让其高电平低电平就可以实现对继电器的控制啦。-#define IO_CTL1_GPIO_1_ON 0x01
#define IO_CTL1_GPIO_2_ON 0x02
#define IO_CTL1_GPIO_3_ON 0x03
#define IO_CTL1_GPIO_4_ON 0x04
#define IO_CTL1_GPIO_5_ON 0x05
#define IO_CTL1_GPIO_6_ON 0x06
#define IO_CTL1_GPIO_7_ON 0x07
#define IO_CTL1_GPIO_1_OFF 0x08
#define IO_CTL1_GPIO_2_OFF 0x09
#define IO_CTL1_GPIO_3_OFF 0x10
#define IO_CTL1_GPIO_4_OFF 0x11
#define IO_CTL1_GPIO_5_OFF 0x12
#define IO_CTL1_GPIO_6_OFF 0x13
#define IO_CTL1_GPIO_7_OFF 0x14
#include "stdafx.h"
#include "Jidianqi.h"
#include "JidianqiDlg.h"
#include "ADS1286.h"
#include "EInTDriver.h"
它控制的基础是在继电器驱动也就是IO驱动的基础上完成滴。
继电器驱动在本质上就是对IO口的控制,继电器有两种状态,打开和关闭,
分别对应IO口的高电平和低电平,所以驱动中我们只要对IO口进行高电平和低电平的转换就可以了,
在应用程序中直接打开驱动然后操作IO口让其高电平低电平就可以实现对继电器的控制啦。-#define IO_CTL1_GPIO_1_ON 0x01
#define IO_CTL1_GPIO_2_ON 0x02
#define IO_CTL1_GPIO_3_ON 0x03
#define IO_CTL1_GPIO_4_ON 0x04
#define IO_CTL1_GPIO_5_ON 0x05
#define IO_CTL1_GPIO_6_ON 0x06
#define IO_CTL1_GPIO_7_ON 0x07
#define IO_CTL1_GPIO_1_OFF 0x08
#define IO_CTL1_GPIO_2_OFF 0x09
#define IO_CTL1_GPIO_3_OFF 0x10
#define IO_CTL1_GPIO_4_OFF 0x11
#define IO_CTL1_GPIO_5_OFF 0x12
#define IO_CTL1_GPIO_6_OFF 0x13
#define IO_CTL1_GPIO_7_OFF 0x14
#include "stdafx.h"
#include "Jidianqi.h"
#include "JidianqiDlg.h"
#include "ADS1286.h"
#include "EInTDriver.h"
(系统自动生成,下载前可以参看下载内容)
下载文件列表
继电器控制测试\对应的IO驱动\Build.log
..............\............\Build.wrn
..............\............\EINTDriver.cpp
..............\............\EINTDriver.def
..............\............\EINTDriver.h
..............\............\makefile
..............\............\obj\ARMV4I\retail\EINTDriver.obj
..............\............\...\......\......\_objects.mac
..............\............\sources
..............\继电器控制测试\Jidianqi\ADS1286.h
..............\..............\........\EDB_SDK (ARMV4I)\Debug\BuildLog.htm
..............\..............\........\................\.....\Jidianqi.exe
..............\..............\........\................\.....\Jidianqi.obj
..............\..............\........\................\.....\Jidianqi.pch
..............\..............\........\................\.....\Jidianqi.pdb
..............\..............\........\................\.....\Jidianqi.res
..............\..............\........\................\.....\JidianqiDlg.obj
..............\..............\........\................\.....\stdafx.obj
..............\..............\........\................\.....\vc80.idb
..............\..............\........\................\.....\vc80.pdb
..............\..............\........\................\Release\BuildLog.htm
..............\..............\........\................\.......\Jidianqi.exe
..............\..............\........\................\.......\Jidianqi.obj
..............\..............\........\................\.......\Jidianqi.pch
..............\..............\........\................\.......\Jidianqi.pdb
..............\..............\........\................\.......\Jidianqi.res
..............\..............\........\................\.......\JidianqiDlg.obj
..............\..............\........\................\.......\stdafx.obj
..............\..............\........\................\.......\vc80.idb
..............\..............\........\................\.......\vc80.pdb
..............\..............\........\EINTDriver.h
..............\..............\........\Jidianqi.aps
..............\..............\........\Jidianqi.cpp
..............\..............\........\Jidianqi.h
..............\..............\........\Jidianqi.rc
..............\..............\........\Jidianqi.vcproj
..............\..............\........\Jidianqi.vcproj.PC2010112516SGV.Administrator.user
..............\..............\........\JidianqiDlg.cpp
..............\..............\........\JidianqiDlg.h
..............\..............\........\ReadMe.txt
..............\..............\........\res\Jidianqi.ico
..............\..............\........\...\Jidianqi.rc2
..............\..............\........\resource.h
..............\..............\........\stdafx.cpp
..............\..............\........\stdafx.h
..............\..............\Jidianqi.ncb
..............\..............\Jidianqi.sln
..............\..............\Jidianqi.suo
..............\说明.txt
..............\对应的IO驱动\obj\ARMV4I\retail
..............\继电器控制测试\Jidianqi\EDB_SDK (ARMV4I)\Debug
..............\..............\........\................\Release
..............\对应的IO驱动\obj\ARMV4I
..............\继电器控制测试\Jidianqi\EDB_SDK (ARMV4I)
..............\..............\........\res
..............\对应的IO驱动\obj
..............\继电器控制测试\Jidianqi
..............\对应的IO驱动
..............\继电器控制测试
继电器控制测试
..............\............\Build.wrn
..............\............\EINTDriver.cpp
..............\............\EINTDriver.def
..............\............\EINTDriver.h
..............\............\makefile
..............\............\obj\ARMV4I\retail\EINTDriver.obj
..............\............\...\......\......\_objects.mac
..............\............\sources
..............\继电器控制测试\Jidianqi\ADS1286.h
..............\..............\........\EDB_SDK (ARMV4I)\Debug\BuildLog.htm
..............\..............\........\................\.....\Jidianqi.exe
..............\..............\........\................\.....\Jidianqi.obj
..............\..............\........\................\.....\Jidianqi.pch
..............\..............\........\................\.....\Jidianqi.pdb
..............\..............\........\................\.....\Jidianqi.res
..............\..............\........\................\.....\JidianqiDlg.obj
..............\..............\........\................\.....\stdafx.obj
..............\..............\........\................\.....\vc80.idb
..............\..............\........\................\.....\vc80.pdb
..............\..............\........\................\Release\BuildLog.htm
..............\..............\........\................\.......\Jidianqi.exe
..............\..............\........\................\.......\Jidianqi.obj
..............\..............\........\................\.......\Jidianqi.pch
..............\..............\........\................\.......\Jidianqi.pdb
..............\..............\........\................\.......\Jidianqi.res
..............\..............\........\................\.......\JidianqiDlg.obj
..............\..............\........\................\.......\stdafx.obj
..............\..............\........\................\.......\vc80.idb
..............\..............\........\................\.......\vc80.pdb
..............\..............\........\EINTDriver.h
..............\..............\........\Jidianqi.aps
..............\..............\........\Jidianqi.cpp
..............\..............\........\Jidianqi.h
..............\..............\........\Jidianqi.rc
..............\..............\........\Jidianqi.vcproj
..............\..............\........\Jidianqi.vcproj.PC2010112516SGV.Administrator.user
..............\..............\........\JidianqiDlg.cpp
..............\..............\........\JidianqiDlg.h
..............\..............\........\ReadMe.txt
..............\..............\........\res\Jidianqi.ico
..............\..............\........\...\Jidianqi.rc2
..............\..............\........\resource.h
..............\..............\........\stdafx.cpp
..............\..............\........\stdafx.h
..............\..............\Jidianqi.ncb
..............\..............\Jidianqi.sln
..............\..............\Jidianqi.suo
..............\说明.txt
..............\对应的IO驱动\obj\ARMV4I\retail
..............\继电器控制测试\Jidianqi\EDB_SDK (ARMV4I)\Debug
..............\..............\........\................\Release
..............\对应的IO驱动\obj\ARMV4I
..............\继电器控制测试\Jidianqi\EDB_SDK (ARMV4I)
..............\..............\........\res
..............\对应的IO驱动\obj
..............\继电器控制测试\Jidianqi
..............\对应的IO驱动
..............\继电器控制测试
继电器控制测试