微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > 基于飞思卡尔DZ60的AD 1302 KEY 485 CAN FLASH LCD程序

基于飞思卡尔DZ60的AD 1302 KEY 485 CAN FLASH LCD程序

时间:12-01 来源:互联网 点击:

#define DI1 PTGD_PTGD2 //外触发1----->

#define DI2 PTED_PTED5 //外触发2----->

#define DI3 PTED_PTED4 //外触发3----->

#define DI4 PTED_PTED3 //外触发4----->

#define JDQ1 PTCD_PTCD4 //继电器1----->

#define JDQ2 PTAD_PTAD5 //继电器2----->

#define JDQ3 PTBD_PTBD5 //继电器3----->

#define JDQ4 PTAD_PTAD6 //继电器4----->

#define JDQ5 PTBD_PTBD6 //继电器5----->

#define DE485 PTED_PTED2 //485 T R切换----->

if ( value_buf[i]>

if(MonthC1>

minutes=((ReadValue&0x70)>>

day=((ReadValue&0x70)>>

year=((ReadValue&0x70)>>

if(MonthC2>

nian=((temp&0x70)>>

if(nian>

if(MonthC3>

if(j>

if(k>

if(i>

count]=ADCR;

count++;

if (count > N-1){

count = 0;

ADCSC1=0x00;

ADcount = 1;

}

break;

case 11:

ADCbuffer1[count]=ADCR;

count++;

if (count > N-1){

count = 0;

ADCSC1=0x00;

ADcount = 2;

}

break;

case 3:

ADCbuffer1[count]=ADCR;

count++;

if (count > N-1){

count = 0;

ADCSC1=0x00;

ADcount = 3;

}

break;

case 4:

ADCbuffer1[count]=ADCR;

count++;

if (count > N-1){

count = 0;

ADCSC1=0x00;

ADcount = 4;

}

break;

default:break;

}

asm(nop); //在此设置一个断点,观测ad_h和ad_l的变化

}

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top