According to SPI communication protocol,using the method of finite state machine(FSM)and function modulariza-tion,the serial DAC7734 interface function was realized,and the simulation Timing diagram was given.The correctness of finite state machine design was verified by simulation and accuracy and stability of D/A output.This method,with the good portability and ver-satility,was not only easy to implement SPI protocol,it can also apply to other protocols,such as I2 C,CAN,and so on.%基于SPI通信协议,采用有限状态机和功能模块化的方法,实现串行DAC7734接口功能,给出了仿真时序图。仿真及D/A输出精度和稳定性,验证了有限状态机设计的正确性。该方法不仅易于实现SPI协议,其原理还适用于实现I2 C、CAN等其他协议,具有很好的移植性和通用性。
展开▼