Use your forum account to login.

LOGIN

TOP Contributors

  1. MikroElektronika Team (99 codes)
  2. Dany (44 codes)
  3. NART SCHINACKOW (34 codes)
  4. Alcides Ramos (33 codes)
  5. Agent Wolfz (14 codes)
  6. Andrew Hazelden (13 codes)
  7. Roman Black (11 codes)
  8. Alberto Trasimeni (11 codes)
  9. Roman Toropov (9 codes)
  10. Rajendra Bhatt (8 codes)

Most Downloaded

  1. Network Ethernet Library (11754 times)
  2. FAT32 Library (8600 times)
  3. Timer Calculator (6527 times)
  4. PID Library (5245 times)
  5. Network WiFi Library (5197 times)
  6. SMS home alarm system (4417 times)
  7. External Memory (4107 times)
  8. mikromedia for PIC18FJ - Examples (3566 times)
  9. microSD click - Example (3487 times)
  10. GPS click - Example (3252 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:

Author: MikroElektronika Team

Last Updated: 2012-08-09

Category: Communication

Downloaded: 1077 times

Followed by: 1 user

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

LV-32MX v6 Examples

Examples for LV-32MX v6 development system

[Learn More]

CANculator

CANculator is a software development tool used for easier CAN baud rate calculation and manipulation of the CAN bus parameters.

[Learn More]

ADC click - Example

Simple example which demonstrates working with the 4-Channel 12-bit A/D Converter (MCP3204) with SPI Serial Interface. The example shows how to measure analog inputs on Channels 0, 1, 2 and 3 and display the results on LCD.

[Learn More]