SPI is a low-level 3 or 4 wire serial bus interface with clock (SCLK), data in (MISO) and data out (MOSI). The fourth wire is a Slave Select to uniquely select a device on the bus. This signal is usually active-low. Slave Select, Chip Select, CS#, SS# stand for the same function, typically. Be ...

learn more… | top users | synonyms

-1
votes
0answers
19 views

SPI protocol master 32 bit and slave 16 bit

I am using a 32 bit SPI controller (MicroZed board Microcontroller) as the master and my slave is a 16 bit IC (custom IC) that I need to configure in a memory mapped I/O fashion. These are my ...
0
votes
1answer
29 views

Atmel SPI Serial EEPROM Writing Error - Page Write?

I'm using this EEPROM: Atmel AT25640B SPI EEPROM DATASHEET It seems pretty straight forward to operate and I've followed the datasheet closely when coding my driver. I seemed to have some success ...
3
votes
1answer
53 views

SPI: How does communication work with a device that has multiplexed SDO and SDI signals?

Yes this question is related to MCP4131 which is a 8 pin digital potentiometer. I have never seen/heard/used multiplexed SPI before so am trying to clear some confusions. The datasheet shows ...
2
votes
1answer
49 views

SPI to Numerous Chips on Different PCBs with FFC Cables?

I want to drive numerous chips on several different PCBs with SPI from a microcontroller over FFC cables. Here is a crude diagram: UPDATE: Green wires are ground scheme I have never attempted such ...
0
votes
2answers
65 views

ADXL345 acceleration data readout looks strange - STM8

after finally finding out how to create a software SPI connection i now can successfully read the data from an ADXL345 acceleration sensor. But they look rather strange to me, this are some sample ...
1
vote
1answer
71 views

Not enough digital outputs for SPI slave select lines (CS#)

I have a microcontroller with only 4 digital outputs available and 4 digital inputs. The problem is that I need to communicate with at least 4 SPI devices (ADC's and DAC's). 4 SPI devices means 2 ...
0
votes
2answers
37 views

How to Minimally Communicate with an ADS131E04 ADC via SPI

I have bought a few ADCs from http://www.ti.com/product/ADS131E04 and I cannot get hear from them via the SPI. I am putting the ADC in a TQFP socket and I connect the PWDN, RESET, SCLK, CS, DIN, and ...
0
votes
0answers
7 views

ADE7754 irms value

i am using ADE7754 to measure 3 phase voltage and current. I am able to read voltage values, but not the current. Micro-controller that i am using is ATSAMD20e18. Can anyone help me out with this ...
0
votes
0answers
40 views

use of ISD4002 SPI with FPGA

I am trying to build a circuit that would be some kind of INTERCOM and will be controlled by FPGA (cyclon 2 by altera ) . Because I need to have multi voice channels I choose ISD4002 because in my ...
7
votes
3answers
350 views

SPI bus connections - to loop or not to loop?

I have a question regarding the physical connection of an SPI bus. I have an SPI master (a PIC32 device) and a number of slaves (in this case PIC16 devices). I'm only writing to the slaves, and the ...
0
votes
0answers
18 views

TIVA C Series to External ADC

That's my very first post here. I'm using a TIVA TM4C1294XL and I also got an external ADC - PCM 1807 also from Texas Instruments. I've never worked with an external ADC before, so I don't even ...
-2
votes
0answers
21 views

SPI communication by UCA0 with two MSP430F5529

I wrote the following code for master and slave. I try to communicate in 4 pin mode. appearently i can not recieve data from Slave or Slave doesn't recieve data from master because of STE pin fault. ...
0
votes
2answers
65 views

STM32F411 SPI slave enters debug infinite loop

I've connected two NUCLEOSTM32F411RE together, and trying to send an ASCII letter from one PC to another PC in Simplex mode from master to slave. When I send a character the slave enters a routine in ...
0
votes
1answer
34 views

Since SPI contains data and clock, this makes it “source synchronous” doesn't it?

I read in a Xilinx application note that as data rates became faster became developed source synchronous transfer technique and later came the self-synchronous methods that make use of 8b-10b or some ...
0
votes
1answer
63 views

Software SPI 3-wire read register

I currently try to read a register from an acceleration sensor (ADXL345). i try to simulate the SPI procedure with software. I wrote a readRegister function: ...
1
vote
3answers
133 views

SPI between MCUs

As a newcomer to PIC programming, I am looking for some thoughts on how to implement SPI between a master and slave MCU the most efficient way. The purpose of this system is to provide an extremely ...
1
vote
1answer
83 views

Why can I read accelerometer and gyroscope data on the LSM9DS1 with SPI, but not the magnetometer data on the same device?

I'm currently working on a device that uses the LSM9DS1, a 9-axis motion sensor by ST Microelectronics. I’m using a PIC24FJ128GB202 microcontroller by Microchip, and communicating with the sensor ...
0
votes
0answers
30 views

Bus Pirate binary protocol gets stuck in BBIO mode (or an invalid state) after a bulk transfer operation

I have a v.3a (SFE) Bus Pirate with v6.1 firmware, and am trying to make it talk binary SPI mode (to an AT89LP51, btw). Things start off OK, until I try to perform a bulk transfer operation (using ...
0
votes
0answers
42 views

VHDL - loop counter bug with SPI protocol

I want to write a simple reader from SPI data, to read 1 byte and transfer it to another block. I used the following code : ...
0
votes
2answers
53 views

Serial Peripheral Interface - multi slave question

When implementing SPI communication between a master and multiple slaves, there's basically two topologies to choose from: either resend the same data to each slave, or clocking data through all ...
0
votes
0answers
29 views

Maximum SPI clock frequency of CP2130 USB-SPI bridge

I have a board with SMT32F103 MCU and CP2130 chip connected to MCU's SPI2 channel. CP2130 is master only, so I configure MCU's SPI to act as a slave with software slave management. There are no more ...
0
votes
1answer
33 views

SPI refuses to send in dspic33

I'm trying to talk to an RFM22 wireless module. I'm having a hard time getting the SPI functional. I'm working with a dspic33ep512mc806. I'm debugging directly in hardware with a pickit3. After ...
2
votes
1answer
102 views

AD9833 Problems with Arduino and SPI [Can't think of a good title]

Alright I'm about at my wits end, I'm playing around with a AD9833 to synthasize a sin wave. I have combed though all forms of forums regarding the AD9833 to no avail. This is the circuit I'm running. ...
0
votes
2answers
52 views

Regarding SPI Slave Selection?

Consider that an SPI has more slaves. Suppose if more than one Slave wants to communicate with Master simultaneously then How does an SPI react in that situation? by means of priority or any other ...
1
vote
1answer
69 views

STM32 Standard Peripheral Library (SPL) - Modify SPI Configuration

I am using the STM32 SPL library with an STM32F103C8 microcontroller. As part of the project, I am using the SPI1 peripheral to interface with an SD card. Initially the SPI speed must be kept under ...
1
vote
2answers
50 views

SD Card Pin State During Hot Insertion

I'm working on a project in which I'm forced to connect an SD card to a shared SPI bus with some other peripherals. I need to make sure a hot insertion event won't corrupt any ongoing data transfer on ...
1
vote
1answer
50 views

TDC1000 SPI Interface resistor selection

I am working on Fluid Level Detection using Texas Instruments MSP430L092 Mixed Signal Microcontroller with Texas Instruments TDC1000 AFE. They are connected via ...
0
votes
1answer
67 views

AS5048A SPI - 13bits instead of 14bits resolution

I'm trying to make a driver for as5048a (spi) on STM32f405rg This magnetic encoder is supposed to have 14bits of resolution : and the read package shows that the 2 MSB are parity and error flags So ...
1
vote
0answers
29 views

SPI0 not working - SPI0 pins of Beaglebone black conflicting with the 4D 7.0" LCD CAPE pins

I have been working with BBB for a while using the 4D 4.3" LCD CAPE. The SPI0 worked well with the 4D 4.3"LCD CAPE, but later when I switched to the 4D 7.0" LCD CAPE, the SPI0 is not working and ...
3
votes
3answers
61 views

Groovy i2C/SPI peripherals for education?

I'm helping someone teach an embedded programming course at my university, and he's starting to cover i2C in class. SPI is next. We're trying to come up with a groovy, easy-to-interface, low-cost ...
1
vote
2answers
189 views

What is the quickest way to read an analogue signal - Arduino / Raspberry Pi + ADC / Arduino + ADC?

I need to sample 50Hz voltage signals from four CT current sensors and compare the waveforms to a voltage signal from the mains (stepped-down and offset for ADC) to accurately measure power ...
0
votes
3answers
45 views

AVR studio 6.2 flash atxmega32e5 signature issue

I am trying to flash my AVR ATXMega32E5 with Atmel-ICE thanks to SPI. The problem is that from AVR Studio Device Programming it can read the Target Voltage but not the Device Signature. What it ...
-2
votes
1answer
66 views

Can I reprogram my SPI flash wirelessly?

I am working on an application which stores specific model information in the SPI flash. The hardware is the same between the five different types of units. They are typically programmed with model ...
0
votes
1answer
83 views

Weird Serial Flash Corruption

I'm experiencing a very typical issue with data corruption in a flash chip in a not so typical way. I'm using the M25P16 16Mb serial Flash chip by Micron to log historical data on my device over SPI. ...
0
votes
2answers
73 views

Programming a JN5168-001-Mxx with a USBtinyISP?

I'm researching different ZigBee implementations for a mesh network application. I like NXP's JN5168-001-Mxx because it is cheaper than XBee (pricing for 200 units) and has a powerful uC. Mesh Bee ...
1
vote
1answer
134 views

FatFs: Why am I not able to properly read sector 0?

Background: I am using an nRF52832 Development Kit with this microSD card in this breakout board. The card is powered at 3 V (I've tested running off the dev kit regulator and an external power ...
1
vote
1answer
70 views

Programming MSP430G2553 with Raspberry Pi 2

So, i want to program a msp430g2553 microcontroller with raspberry pi 2. Since i don't want to use any IDE i would like to do it with clean C and terminal, without any external libraries like ...
0
votes
2answers
47 views

Zynq - Configuring SPI clock to idle high

I am trying to use the SPI0 component of a Zynq XC7Z010 to read data from a 12-bit rotary encoder which uses an SSI protocol. I have a small example project set up in Vivado which enables the SPI0 ...
2
votes
0answers
51 views

AT89LP51ED2 SPI ISP — First attempt to enter ISP mode after reset yields wrong data back, but second attempt works

I have a board using an AT89LP51ED2 from Atmel -- this is an 8051-derivative with on-board Flash program memory and a SPI ISP interface, which I am using my Bus Pirate to drive (30kHz speed, pullups ...
1
vote
0answers
45 views

How to interface a BQ76PL536EVM with a MSP430 uC using the sample code?

I am trying to follow the application report : http://www.ti.com/lit/an/slaa478/slaa478.pdf to setup communication between a BQ76PL536-EVM (TI battery monitor) with a MSP430 uC board (I am using a ...
0
votes
0answers
23 views

Reading Bits of the ICE SN65HVS882 Only Bits 0, 1 , 3 Can Be Read

Folks, I have an AM335X_BOARD_TYPE_ICE (ICE v1 board), and I am trying to read the digital pins from the SN65HVS882 (8 digital input serializer). I can read bits 0, 1, and 3 successfully, but when I ...
0
votes
1answer
46 views

Calculating SPI clock speed

I am new to the forum and the EE world so forgive me if technical terminology is a bit off. I may be thinking about this too much, but what is the procedure for calculating SPI clock speed for a bus ...
0
votes
2answers
50 views

Using SPI Nor Flash as storage memory in Vehical tracker device

I am designing a Vehicle Tracking device. I need a storage memory of 2Mb to 8Mb to store data from MCU. Based on what my MCU supports, I am planning to use SPI NOR Flash as a storage Device. As I know ...
1
vote
1answer
74 views

Verilog SPI module functioning in unpredicted ways

I am currently trying to implement a simple SPI Master module in Verilog using Quartus Prime Lite V15.1.0 Build 185 for compilation and Simulation Waveform Editor as my simulation tool. The module has ...
1
vote
1answer
55 views

Using Logic Analyzer for SPI

I started my project of interfacing MicroSD Card with PIC32MX795F512L. To start with this first I made a program to test ...
3
votes
0answers
110 views

SPI loopback with DMA

I am using STM32F4 discovery board and I am attempting to get SPI loopback with DMA. I have successfully got an "SPI-only" loopback running, but now I want use DMA in addition with the SPI, here are ...
0
votes
1answer
31 views

SD Card Reset Issue

I've got an issue where I'm playing around with the SPI commands to get SD card comms working but it seems that if I send something the card doesn't like I get in a condition where it can't reset. ...
2
votes
2answers
173 views

How can I write high-speed A/D data to an SD card?

I want to use a microcontroller and A/D converter to do some high-frequency (~100 kHz) long-term (minimum of five second buffer, looping until triggered) data logging. It looks like a good way to do ...
0
votes
0answers
47 views

Is horting SPI to test PIC24 communication damaging in any way?

I have a question concerning SPI (don't we all) and I was hoping that someone can help me out before I do something stupid (which is usually my favourite way of learning, but I only have one board so ...
0
votes
1answer
62 views

Is using SPI communication for 3 meters length still tolerable?

I'm trying to communicate my master board to slave, with SPI port. Our mechanical team says that it will be 3 meters long. Is it still tolerable? how about its noise? Thanks