SC26C94在测控系统中的应用
时间:06-30
来源:互联网
点击:
|
根据流程图可编程如下:
void interrupt (*oldvect2)();
void interrupt UAR1_interrupt(void)
{
//保护现场//
for(ii2=1;ii2<=5;ii2++)
{
outportb(uaraddr,uarupdateCIR);
outportb(uarcen1,0x00);
outportb(uaraddr,uarCIR);
uar1cir=inportb(uarcen1);
outportb(uaraddr,uarISRab);
uar1israb=inportb(uarcen1);
outportb(uaraddr,uarISRcd);
uar1isrcd=inportb(uarcen1);
outportb(uaraddr,uarGIBCR);
count1=inportb(uarcen1);
if (count1 > 8) count1 = 8; stt1=uar1cir&0x1f;
if(stt1<=3)break;
switch(stt1)
{
case 0x1c:
//中断服务程序//
break;
default:;
}
}
//恢复现场//
}
4 结论
上述测控系统设计及运行过程表明,SC26C94 具有使用灵活、功能丰富、系统连接方便、编程简单、可靠性高等特点,另外,其合理的性能价格比及畅通的货源渠道,表现出较好的工程实用特性,是一种实用的接口芯片,可广泛应用于自动化仪表、测试、测控及数据处理等系统中。
自动化 半导体 PLC 看门狗 电路 CSR GPS 振荡器 放大器 电容 电阻 总线 DAC C语言 相关文章:
- 基于ARM与DSP的嵌入式运动控制器设计(04-25)
- 多核及虚拟化技术在工业和安全领域的应用(05-23)
- 基于nRF2401智能小区无线抄表系统集中器设计(04-30)
- 解密波音747飞机中的Sperry垂直陀螺仪(05-06)
- lns构架智能小区安防及关键技术应用研究(06-09)
- 基于MSP430及PROFIBUS的监测子站设计(06-12)

