TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139253 times)
  2. FAT32 Library (71751 times)
  3. Network Ethernet Library (57122 times)
  4. USB Device Library (47430 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28078 times)
  9. PID Library (26885 times)
  10. microSD click (26198 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

USB SPI click - Example

Rating:

0

Author: MIKROE

Last Updated: 2016-02-18

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: USB

Downloaded: 7079 times

Followed by: 2 users

License: MIT license  

This is a sample program which demonstrates the use of USB SPI click This device accepts commands from SPI Terminal and sends appropriate bytes via SPI interface. It is very desirable tool for designing SPI slave devices such as sensors...

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "USB SPI click - Example" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "USB SPI click - Example" changes.

Do you want to report abuse regarding "USB SPI click - Example".

  • Information
  • Comments (0)

Example Blog

USB SPI click

USB SPI click

Front and back side appearance of the USB SPI click Board.

View full image

USB SPI click is a compact and easy solution for adding SPI serial communication via USB cable. It features MCP2210 USB-to-SPI protocol converter with GPIO as well as USB MINI B connector. USB SPI Click communicates with target board via SPI interface as a master device.

PIC examples are written for :
  - EasyPIC7 - PIC18F45K22

MCP2210 should be controlled with SPI Terminal application. MCP2210 SPI Terminal and MCP2210 Utility applications can be downloaded from the following links:

SPI Terminal proper settings

SPI Terminal proper settings

MCP2210 should be configured before use. Proper settings for this example are shown on the image.

View full image

Any of the GP (General Purpose) pins can be used as chip select. User should select appropriate GP pin according to his own connections. GP pins are clearly marked on USB SPI click board and schematics.

Also user can define SPI speed and total number of bytes to transmit. In TX Data and RX Data windows are shown transmitted and received bytes.

Hex mode box should be checked if user want to preview data as hexadecimal.

USB SPI click schematics

USB SPI click schematics

The schematics of the USB SPI click board.

View full image

ALSO FROM THIS AUTHOR

Hall Current 13 Click

0

Hall Current 13 Click is a compact add-on board that provides economical and precise AC or DC current sensing solutions. This board features the TMCS1107-Q1, a galvanically isolated Hall-effect current sensor capable of DC or AC current measurement with high accuracy, excellent linearity, and temperature stability from Texas Instruments. It enables the lowest drift, <3% full-scale error, and highest accuracy over time and temperature. It also provides a reliable 420V lifetime working voltage and 3kVRMS isolation between the current path and circuitry with uni/bidirectional current sensing. Besides, the user is allowed to process the output signal in analog or digital form.

[Learn More]

Magnetic Rotary 2 Click

0

Magnetic Rotary 2 Click is a compact add-on board used for accurate magnet-position sensing. This board features the AEAT-9922, an angular magnetic rotary sensor providing accurate angular measurement over a full 360 degrees of rotation from Broadcom Limited. The AEAT-9922 uses integrated Hall sensor elements with complex analog and digital signal processing within a single device. The absolute angle measurement provides an instant indication of the magnet's angular position with a selectable and one-time programmable resolution from 10 to 18 bits.

[Learn More]

AudioAmp 3 click

5

AudioAmp 3 Click is a stereo audio amplifier, capable of delivering up to 79W per channel with the 4Ω load. It is based on the TAS5414, a class-D integrated amplifier, which utilizes a highly efficient switching scheme.

[Learn More]