| Online Development Notebook > Index > U4x1 Application Notes > App4: SPI Output |
App4: SPI Output Application
Purpose
Provide a program that tests the SPI communication of the U401⁄U421⁄U451.
Description
The U4x1 has the ability to interface with SPI devices. Output expansion using a serial shift SPI device, the 74CH595, will give the U4x1 eight more output lines.
Screen Shot
This application is used for experimenting with output SPI devices, such as the 74HC595. The application can control the state of 13 output lines that can be used to select the SPI device.
A "Write SPI" button will write the data entered in the data box to the SPI device.


Hardware
Experimentation with SPI devices can be done with the 74HC595, a serial to parallel shift register.
Code
Download all application files: (all application files)
| Hardware: U401 USB Interface U421 USB Interface U451 USB Interface Programming: USBm DLL Programming Download Files Application Notes: U4x1 Application Notes Misc Applications and Information FAQ While every effort has been made to make sure that the information posted on this site is correct, the author can not be held liable for any damages whatsoever for losses as a result of the application of this information. Use this information at your own risk. USBmicro can design your custom and semi-custom USB product. Email about USB design can be directed to " Robert " at usbmicro.com. Copyright © USBmicro, L.L.C., 2002-2010 |