b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

tms320f2812_tms320f2812有哪些外设_tms320f2812的并行机制(40)

电脑杂谈  发布时间:2017-04-03 05:09:36  来源:网络整理

Print_Byte(0x2E);//打印小数点

temp=printv1;

Print_Byte(temp|0x30);

}

}

/**************************************************************/

////////////////////////////////////////////////////////////

void Print_Byte(uchar ch)

{

/* while(BUSY)

{

}

*/

SBUF=ch;

while(!TI)//f发送完毕TI=1,

{

}

TI=0;//软件清出发送完毕标志位

}

//定义一个把字符串送到串口的函数

void Print_String(uchar *str)

{

while(*str)//while(1)

{

Print_Byte(*str++);

}

}

/***************************************************

//定义发送一个数组的数据到串口的函数

void Print_Array(array,n)

uchar array[];

int n;

{

int i;

for(i=0;i<n;i++)

Print_Byte(array[i]);

}

电容测试程序2

分类:默认栏目/**************************************************/

/*外部中断1///已经不用了

void INT1_SVC() interrupt 2 using 1

{

p1_4=1;

EA=0;

EX1=0;//关外部中断1,

EA=1;

TMOD=0X01;//00000001B;//定时器T0内部控制,定时方式,模式1。

TH0=0xB8;

TL0=0x00;//定时10MS

TR0=1;//;计算开始

}

/**************************************************/

//定时器0中断///已经不用了

/*void timer0() interrupt 1 using 2

{

TF0=0;//清除中断申请

TR0=0;//关定时器)

p1_4=0;

}

/***************************************************/

void INT0_SVC() interrupt 0 //键盘中断

{

Key = ZLG7289_Key();

{

if (Key==0)

{

if(PRINT==1)

{

/////////////////////////////////////////////////////

Print_Byte(0x00); //00点空行

Print_String("测试时间:");

Print_String("20");

Print_Byte((calendar_time[0]/10)|0x30);

Print_Byte((calendar_time[0]%10)|0x30);

Print_String("年");

Print_Byte((calendar_time[1]/10)|0x30);

Print_Byte((calendar_time[1]%10)|0x30);

Print_String("月");

Print_Byte((calendar_time[2]/10)|0x30);


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-39167-40.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...