节点文献
基于LabVIEW的SPI串行总线接口的实现
Implementation of SPI serial bus interface based on LabVIEW
【摘要】 为了便于具有SPI串行总线接口设备的调试,使用美国国家仪器公司(NI)的标准模块化设备模拟SPI串行总线接口信号;采用图形化编程语言LabVIEW得到数字波形格式的SPI信号,并设计程序对此格式的信号进行解析,利用NI公司的硬件设备实现该信号的输入与输出。经过实验测试,输出SPI接口信号的频率范围是0.5 Hz~500 kHz,输入的频率范围是0.5 Hz~900 kHz,误差小于10 ns,该方法可以用于SPI串行总线接口设备的调试中。
【Abstract】 In order to debug the device with SPI serial bus interface conveniently,the standard modular device of National Instruments(NI)was used to simulate SPI serial bus interface signals,LabVIEW was used to get the SPI signals in digital waveform format,a program was designed to analysis these signals,and the hardware equipments of NI was utilized to realize the input and output of these signals.The experimental testing result shows that the frequency range of the output signal from the SPI interface is 0.5 Hz to 500 kHz,the input frequency range is 0.5 Hz to 900 kHz,the error is less than 10 ns.This method can be used to debug SPI serial bus interface device.
【Key words】 SPI interface; serial bus interface; LabVIEW; testing;
- 【文献出处】 现代电子技术 ,Modern Electronics Technique , 编辑部邮箱 ,2014年14期
- 【分类号】TP334.7
- 【被引频次】5
- 【下载频次】260