资 源 简 介
The Serial Peripheral Interface (SPI) is a full-duplex, synchronous, serial data link that isstandard across many microprocessors, microcontrollers, and peripherals. It enablescommunication between microprocessors and peripherals and/or inter-processorcommunication. The SPI system is flexible enough to interface directly with numerouscommercially available peripherals.A SPI Master design has been implemented in a CoolRunner XPLA3 CPLD. The CoolRunnerSPI Master design can be used to provide a SPI controller to those microcontrollers ormicroprocessors that do not contain a SPI interface. A high-level block diagram is shown inFigure 1. The microcontroller (μC) interface chosen in this SPI Master implementation is basedon the popular 8051 microcontroller bus cycles, but can easily be modified to othermicrocontroller interfaces. For more information on the 8051 microcontroller interface, pleaserefer to XAPP349, CoolRunner CPLD 8051 Microcontroller Interface.