文件名称:4051
-
所属分类:
- 标签属性:
- 上传时间:2016-01-14
-
文件大小:2.04kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
#include hal_types.h
#include iocc2530.h
#ifndef __IC_DEMUX_4051_H__
#define __IC_DEMUX_4051_H__
#define ANALOG 0
#define DIGITAL 1
#define A_4051 P1_3
#define B_4051 P1_2
#define C_4051 P1_0
#define BATTERY_VOL_ADC 0x2
#define COUPLER_AC_ON_OFF_ADC 1
#define AUTO_MANUAL_SWITCH_ADC 2
#define MOTOR_ON_OFF_SENSE_ADC 3
#define BATTERY_VOLTAGE_LOW_LEVEL 0xA // IN VOLTS
#define BATTERY_VOLTAGE_LOW_DEC 0x0f0
#define BATTERY_VOLTAGE_HIGH_INC 0xFFF
**********
Input to read card
Battery voltage sense 0x01 (A) min cutoff @ 9volts
Mains supply 230 volts on or off 0x02 (D)
10K pull up and 2k pull down 12 volts ==.8volts on ADC
extern uint8 ThreePhaseBit
extern unsigned int compute_digital_from_adc(char ch_no,int sample)
extern void ConFig_IC_DEMUX_4051(void)
extern unsigned int GetADCValue(unsigned char Ch_NO,unsigned char ip_type)
#endif
-
#include hal_types.h
#include iocc2530.h
#ifndef __IC_DEMUX_4051_H__
#define __IC_DEMUX_4051_H__
#define ANALOG 0
#define DIGITAL 1
#define A_4051 P1_3
#define B_4051 P1_2
#define C_4051 P1_0
#define BATTERY_VOL_ADC 0x2
#define COUPLER_AC_ON_OFF_ADC 1
#define AUTO_MANUAL_SWITCH_ADC 2
#define MOTOR_ON_OFF_SENSE_ADC 3
#define BATTERY_VOLTAGE_LOW_LEVEL 0xA // IN VOLTS
#define BATTERY_VOLTAGE_LOW_DEC 0x0f0
#define BATTERY_VOLTAGE_HIGH_INC 0xFFF
**********
Input to read card
Battery voltage sense 0x01 (A) min cutoff @ 9volts
Mains supply 230 volts on or off 0x02 (D)
10K pull up and 2k pull down 12 volts ==.8volts on ADC
extern uint8 ThreePhaseBit
extern unsigned int compute_digital_from_adc(char ch_no,int sample)
extern void ConFig_IC_DEMUX_4051(void)
extern unsigned int GetADCValue(unsigned char Ch_NO,unsigned char ip_type)
#endif
(系统自动生成,下载前可以参看下载内容)
下载文件列表
4051/IC_DEMUX_4051.c
4051/IC_DEMUX_4051.h
4051
4051/IC_DEMUX_4051.h
4051
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.