• Simplified Chinese
  • Japanese
   
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:

How likely are you to recommend this website to a friend or colleague?

Not at all likely
0
1
2
3
4
5
6
7
8
9
10
Extremely likely

Was this item helpful?
Yes
No
Maybe

Additional comments:

Email:


Like this item? Spread the news:   Subscribe to this RSS feed or add this item to your account:  
Post this story on Digg.com Digg this   Share this on Facebook.com Facebook   Post this story on Digg.com LinkedIN   Add to Twitter Twitter   Add news feed to your RSS reader XML/RSS  Add news feed to your My Yahoo account  Add news feed to your Windows Live account  Add news feed to your Google account  Add news feed to your Bloglines account 
Sunset Owner: ODC; Secondary Owner: TLY; Sunset Date: 10/19/10