摘要
为增强LonWorks节点控制能力,采用单片机作为LonWorks节点的主处理器,Neuron芯片作为从处理器;主从处理器采用SPI通信接口;利用Neuron芯片中声明的Neurowire对象和AT89S51单片机中用软件模拟SPI操作,以请求应答的方式在8个时钟脉冲的上升沿和下降沿完成主从处理器的数据传递。实践表明:用SPI方式实现单片机与Neuron芯片的通信,提高Neuron芯片利用率,提高节点的性价比。
Control ability of LonWorks node based on microcontroller host processor and Neuron-chip slave processor was raised due to SPI interface for host/slave processor. SPI interface could process data-exchange between host processor and slave processor in the rising edge and descending edge of eight clock pulse through Neurowire object declared in Neuron-chip and SPI operation simulated in AT89S51 by request/response mode. The practical application proved that using SPI interface, utilization efficiency of Neuron-chip and cost-performance of node was improved.
出处
《中国仪器仪表》
2008年第12期40-43,共4页
China Instrumentation
基金
黑龙江省教育厅科学技术研究项目(项目编号:11513037)
江苏省淮安信息学院数字化资源建设项目(项目编号:B073403)