文件名称:arvjfh
-
所属分类:
- 标签属性:
- 上传时间:2014-05-27
-
文件大小:9.88kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
#pragma interrupt_handler uart1_rx_isr:31
void uart1_rx_isr(void)
{
unsigned char temp1
if(rx_num==0)
{
temp1=UDR1
if(temp1==0xbb)
{
rx_num++
rx_check=0
test=UDR1
}
}
else if(rx_num==1)
{
temp1=UDR1
rx_highbyte=temp1 //高字节
rx_check+=temp1 //校验和
rx_num++ //计数
}
else if(rx_num==2)
{
temp1=UDR1
rx_lowbyte=temp1 //低字节
rx_check+=temp1 //校验和
rx_num++ //计数
}
else if(rx_num==3)
{
temp1=UDR1
rx_address=temp1 //地址
rx_check+=temp1 //校验和
rx_num++ //计数
}
else
{
temp1=UDR1
rx_num=0
if(temp1==rx_check)
{
if(rx_address==0xb1)//送丝速度
{
rx_i=((unsigned int)(rx_highbyte))<<8
rx_i+=rx_lowbyte
zhengchang_ss=rx_i // -#pragma interrupt_handler uart1_rx_isr:31
void uart1_rx_isr(void)
{
unsigned char temp1
if(rx_num==0)
{
temp1=UDR1
if(temp1==0xbb)
{
rx_num++
rx_check=0
test=UDR1
}
}
else if(rx_num==1)
{
temp1=UDR1
rx_highbyte=temp1 //高字节
rx_check+=temp1 //校验和
rx_num++ //计数
}
else if(rx_num==2)
{
temp1=UDR1
rx_lowbyte=temp1 //低字节
rx_check+=temp1 //校验和
rx_num++ //计数
}
else if(rx_num==3)
{
temp1=UDR1
rx_address=temp1 //地址
rx_check+=temp1 //校验和
rx_num++ //计数
}
else
{
temp1=UDR1
rx_num=0
if(temp1==rx_check)
{
if(rx_address==0xb1)//送丝速度
{
rx_i=((unsigned int)(rx_highbyte))<<8
rx_i+=rx_lowbyte
zhengchang_ss=rx_i //
void uart1_rx_isr(void)
{
unsigned char temp1
if(rx_num==0)
{
temp1=UDR1
if(temp1==0xbb)
{
rx_num++
rx_check=0
test=UDR1
}
}
else if(rx_num==1)
{
temp1=UDR1
rx_highbyte=temp1 //高字节
rx_check+=temp1 //校验和
rx_num++ //计数
}
else if(rx_num==2)
{
temp1=UDR1
rx_lowbyte=temp1 //低字节
rx_check+=temp1 //校验和
rx_num++ //计数
}
else if(rx_num==3)
{
temp1=UDR1
rx_address=temp1 //地址
rx_check+=temp1 //校验和
rx_num++ //计数
}
else
{
temp1=UDR1
rx_num=0
if(temp1==rx_check)
{
if(rx_address==0xb1)//送丝速度
{
rx_i=((unsigned int)(rx_highbyte))<<8
rx_i+=rx_lowbyte
zhengchang_ss=rx_i // -#pragma interrupt_handler uart1_rx_isr:31
void uart1_rx_isr(void)
{
unsigned char temp1
if(rx_num==0)
{
temp1=UDR1
if(temp1==0xbb)
{
rx_num++
rx_check=0
test=UDR1
}
}
else if(rx_num==1)
{
temp1=UDR1
rx_highbyte=temp1 //高字节
rx_check+=temp1 //校验和
rx_num++ //计数
}
else if(rx_num==2)
{
temp1=UDR1
rx_lowbyte=temp1 //低字节
rx_check+=temp1 //校验和
rx_num++ //计数
}
else if(rx_num==3)
{
temp1=UDR1
rx_address=temp1 //地址
rx_check+=temp1 //校验和
rx_num++ //计数
}
else
{
temp1=UDR1
rx_num=0
if(temp1==rx_check)
{
if(rx_address==0xb1)//送丝速度
{
rx_i=((unsigned int)(rx_highbyte))<<8
rx_i+=rx_lowbyte
zhengchang_ss=rx_i //
(系统自动生成,下载前可以参看下载内容)
下载文件列表
样品.docx
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.