The Nios II is the second generation of FPGA embedded processor of Altera company and links with the peripheral interface to construct a complete SOPC system. AD9517-1ABCPZ is a clock chip, which is configured through SPI interface to operate prior to other parts of system and provide the clock for other chips of system. The implementation of SPI interface can use many methods, and the one adopted in this paper is based on Nios II. This method has the advantages such as simple and flexible operation, short development cycle, low cost as well as easy maintenance systems, etc., which can be applied to various intermediate-speed and low-speed system design. The implementation method mainly includes hardware and software design, the hardware design includes the construction of SOPC system based on Nios II and the design of SPI-MASTER interface FPGA program;the software design includes the design of SPI read-write functions and the design of AD9517-1ABCPZ register configuration functions.%Nios II是Altera公司的第二代FPGA嵌入式处理器,和其挂接的外围接口相当于一个完整的SOPC系统, AD9517-1ABCPZ是一款时钟芯片,需通过SPI接口配置,让其先于系统的其他部分工作,为系统其它芯片提供时钟。针对SPI接口的实现,目前有很多方法,基于Nios II实现,具有简单灵活、开发周期短、成本低和系统维护方便等优点,可应用于许多中、低速系统设计。实现主要包括硬件设计和软件设计,硬件设计包括基于Nios II的SOPC系统的搭建,SPI-MASTER接口FPGA程序设计;软件设计包括SPI读写函数设计,AD9517-1ABCPZ寄存器配置函数设计。
展开▼