Home > Documentation > Application Notes
|
SPI Implementation Using Serial Mode 0 on EZ-USB - AN1067
Last Updated: 11/12/2008
|
|
Rate this
Application Note
|
Be the first to rate
|
|
|
|
| How to implement SPI (Serial Peripheral Interface) using one of the EZ-USB UARTS in serial mode 0. |
This demonstration uses the EZ-USB as the master, and transfers data to and from a 25LC320 EEPROM. The sample program demonstrates how to setup the UART. It includes a function to read an SPI byte, a function to write an SPI byte, and functions to read and write data to a 25LC320 EEPROM.
UART Serial mode 0 provides synchronous, half-duplex serial communication. Serial data output appears on the RXD0OUT pin; serial data is received on the RXD0 pin; and the TXD0 pin provides the shift clock for both transmit and receive. The serial mode 0 baud rate is either CLK24/12 or CLK24/4, depending on the state of the SM2_0 bit. When SM2_0 = 0, the baud rate is CLK24/12; when SM2_0 = 1, the baud rate is CLK24/4.
|
|
| File Title |
Language |
File Size |
Last Updated |
AN1067
|
English
|
52 KB
|
11/13/08 |
|
Related Categories:
USB Controllers,
USB Full-Speed Peripherals
|
|
|
|
Provide feedback on this item to help us improve:
|
|
|
|
|
|
Sunset Owner: ODC;
Secondary Owner: TLY;
Sunset Date: 10/19/10
|