Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spi]

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 sure to check the datasheet, though. The SPI bus is a *de facto* standard lacking the formal specification.

0
votes
0answers
21 views

SPI2 ON STM32F103C8

After intialiazing SPI2 nothing is being written on SPI2 register clock configured for gpio and spi2 both i have checked during debugging spi2en bit 14 is set but nothing written on spi2 register <...
0
votes
1answer
59 views

Detect an unknown communication protocol and read data on it

We have old type textile machinery in our factory. (open end machine) on the machine's screen is showing the operating efficiency of the machine. Under the hood, When I follow the cables, the sensors ...
1
vote
0answers
34 views

Reliable methods to read data off a flash chip?

I'm trying to read data off of flash chips on a variety of embedded devices I have, and I'm currently using an FTDI FT2232H and flashrom (with soic-8 clips and probes) to extract the data as they are ...
-1
votes
0answers
34 views

STM32 SPI CRC polynominal must be even or odd number?

I used stm32cubemx for template generation. When I configure SPI in cube, it set CRC polynominal X1+X3 (1010 in decimal its 10 =) ). SPI use 16 bit length word and I think it polynominal not be ...
0
votes
0answers
25 views

What is the best IC/device I can connect my STM32 Nucleo 144 to for SPI communication? [closed]

I am looking for a minimum circuitry possibly only wires connecting from the Nucleo 144 ARM to the IC. I want to send command on MOSI line from STM32 ARM to that device. I don't want to use logic ...
0
votes
1answer
60 views

Why stm32 sends invalid data by spi?

Two boards: arduino nano and stmvldiscovery. Boards are connected by spi interface. Arduino is master device. Stm32vldiscovery is slave device. In the txBuf (transmit buffer) both board have the same ...
5
votes
5answers
1k views

Can only the master initiate communication in SPI whereas in I2C the slave can also initiate the communication?

Is it possible for a slave to initiate communication in SPI? I thought due to the chip select i.e. NSS feature only master can communicate the communication. However, in I2C, the slave can also ...
0
votes
1answer
25 views

I am unable read register values in ADS1282

I am interfacing ADS1282 with LPC1768 through SPI. Currently I am not onnected analog supplies. Only digital supplies connected.I am trying to check whether communication is happening or not.But I can'...
0
votes
0answers
58 views

Everything seems fine, but SPI Read/Write simply doesn't work. (Hardware-related)

Made a working breadboard Made a working protoboard Printed PCB - same exact schematic and code. Having issues. It appears to be just fine. The SS lines are working from the Pi all the way to the ...
1
vote
1answer
39 views

Raspberry Pi 3 SPI speed and ADC sampling rate

I have been working on a project where I am collecting data from an AD8232 ECG sensor in my Raspberry Pi 3. The raw signal is so distorted and I am guessing I may have an issue with SPI speed and ...
0
votes
0answers
25 views

LSM6DSM unreliable MISO unless disconnected

I'm having an issue with bringing up an ST IMU (LSM6DSM on an MKI189V1 eval board). I am using SPI to connect my host micro to the IMU and trying to read back the device ID. The issue I'm facing is ...
1
vote
1answer
53 views

Inconsistent SPI communication between STM32F4 (Slave) and Raspberry Pi (Master)

I've been having a very specific issues with large SPI transaction and after few days of debugging and trying different approaches I haven't progressed anywhere. To briefly explain the system: Slave: ...
0
votes
0answers
40 views

Use Quad SPI as 2 Dual SPI

I'm trying to incorporate 2 16-bit ADCs into my DAS design, which will interface with an MCU which only has 1 available QSPI. The ADCs have a 16-bit parallel output, but the MCU only has a single 8-...
0
votes
0answers
47 views

Is normal SPI device compatible with SPI I/F?

Audio controller AK5374 that I use requires EEPROM with SPI. However, in the specs it is written, that it communicates with EEPROM via SPI I/F. Will normal EEPROM be compatible with this interface?
0
votes
0answers
35 views

Adafruit BMP280 and SD Card reader not working consistently with SPI

I am working on a project that involves logging the altitude from the BMP280 breakout board from Adafruit on an SD card using an Arduino Uno and SPI. initially I got the whole thing working right and ...
1
vote
0answers
53 views

SPI Isolation : What is the point of the ADuM3151 etc

I was looking at ADI's isolators designed and marketed for SPI, such as the ADuM3151. I'm interested to know what makes these isolators special, in that what the point of them is. The isolators don't ...
0
votes
1answer
23 views

Dual DAC channel selection in PIC

I need to communicate with this DUAL DAC by using SPI : MAX 5223 Dual DAC There are 2 DAC outputs in this chip and I am confused that how can I select and write to the specific one. There is CS pin ...
0
votes
0answers
121 views

STM32H7 SPI DMA

On STM32H7 I'm using DMA for SPI transfer. I use SPI1 and SPI4, both in D2 domain, together ...
0
votes
0answers
14 views

Isolation of SD IO pins during off state

I have a project at the moment that uses a PMOSFET to switch the supply to an SD card. According to the SanDisk SD datasheet available here: Because there are clamping diodes on the CMD, CLK, and ...
0
votes
2answers
51 views

STM32 TFT not displaying solid color

I am trying to use this display with an STM32F0 using SPI. I begin by setting up the peripherals using the following ...
0
votes
0answers
38 views

STM32L4 External SPI NOR FLASH WinBond W25Q80DV

I am attempting to communicate with a winbond memory chip over SPI with the STM32L4VG. I am first just trying to read the manufacturing ID and my results are never consistent. Running the same code ...
1
vote
0answers
23 views

MAX30003 SPI MISO line unresponsive

I am interfacing a slave MAX30003 analog front end ECG (Devolpement board, MAX30003) to a master SPBTLE-1S BLE microcontroller (Devolpement board, SPBTLE-1S). However, I am unable to see any data ...
1
vote
2answers
70 views

SPI communication between MCU and slaves

If there is only one SPI master and 8 SPI slave devices, How to we connect them together? I am not allowed to have 8 dedicated Slave select pins on the master, nor am i allowed to daisy chain the ...
1
vote
1answer
53 views

First time using a Raspberry 3B+ for 1.8v SPI BIOS flashing, I have some questions first

So this is the first time I'm attempting to flash a BIOS chip using a Raspberry Pi 3B+. I have the following items with me, a SOIC-8 clip, a Bi-Directional Logic Level Converter, and a Raspberry Pi ...
0
votes
1answer
33 views

Synchronizing an oscillator signal and a single wire signal

On some 32bit MCUs(PIC32MX, STM32F4), those SPI pins can read a continuous signal such as I2S/PCM. So I thought to read a single-wire signal that has MHz fixed frequency as SPI. First, I made a ...
9
votes
4answers
2k views

FPGA - DIY Programming

I've been programming microcontrollers for a few years now, and I've just discovered FPGA's after taking a digital design class. After doing some research into different FPGA's, development boards, ...
1
vote
1answer
37 views

QSPI for shared XiP and file system

Is it possible for a single-die QSPI NOR flash module be simultaneously used for both XiP and a file system? By simultaneous I mean that a function running from XiP accesses data elsewhere on XiP. ...
1
vote
0answers
47 views

Reading Sensor register data using SPI STM32

I am asking you kindly your help. I am trying to read register data from the LSM6DS3 IMU sensor from Sparkfun using SPI. I succeeded reading the value 0x69 from register WHO_AM_I using Arduino. Now ...
0
votes
2answers
59 views

How to interpret MAX7219 timing diagram?

I'm trying to connect this module to atmega32u4 (16 MHz): Everything seems mostly working, but I have a question: how much time is needed for the latch to take effect? I.e., is a delay needed between ...
0
votes
1answer
52 views

Shared or separate SPI buses for peripherals in a PCB?

I have four SPI-controlled chips which I want to control from Zynq-7020 via an FMC LPC connector. Each chip/device requires an SCLK, MISO, MOSI and CS line. I'd like to give each device their own ...
0
votes
0answers
40 views

Strange CLK-similar signal

I'm reverse-engineering the data bus inside a projection clock to find out how to drive the projection without the clock. I use PulseView with a logic analyzer. What I (think to) know so far: It ...
1
vote
1answer
72 views

Serial Peripheral Interface (SPI) vs Two-Wire Interface (TWI, I²C) wire length

I'm using Arduino DUE to read data from an IMU(inertial measurement unit) sensor (MIKROE-1577, MPU-6000) This IMU sensor supports both Serial Peripheral Interface (SPI) and Two-Wire Interface (TWI, I²...
2
votes
1answer
82 views

Logic level translations

Have you ever had any experience with an ADG3304 IC? I've prepared a circuit which allows to translate logic levels in SPI interface. I want my circuit to be compatible with both 1.8V and 3.3V logic ...
0
votes
0answers
47 views

SD card reader using SPI with Atmel SAM G55J

I have a custom board using an Atmel SAM G55J (ATSAMG55J19A-AU) and I'm trying to get the SD card reader to work - which is connected to SPI0. I'm using the SD/MMC ...
1
vote
2answers
137 views

STM32 USART synchronous mode receive does not work

I am using a STM32L052K6U6 to communicate with an SPI slave using the UART1 synchronous mode (configured with CubeMX, using the LL library). Setup code generated by CubeMX (I left out the Tx and Clk ...
1
vote
1answer
45 views

Signal placement in flat ribbon cable, FPC or FFC with digital and power signals

I want to interface different boards with FPC/FFC or ribbon cable and I was wondering about the placement of the signals in the cable. I plan to have a 39 signals FPC with : 1 SPI bus (SCK, MOSI, ...
0
votes
1answer
32 views

Logic levels on tri-state buffer,

i am working on some CPLD-controlled SPI devices that will be daisy-chained together. I will be using 74VHCT126AFTTR tri-state buffers to disconnect the SPI and Slave Select lines on the device from ...
2
votes
1answer
118 views

How to Hardware Write Protect Flash SPI, Setting WP# pin signal low stage [Asus P5Q Pro + MX25L8005 SPI]

As a pen testing & security experiment and feature I want to enable write protect on my SPI Flash MX25L8005 module on my motherboard to protect the SMM modules, AML, ACPI and other areas of the ...
0
votes
1answer
57 views

74HC589 - stock lead times are high, looking for alternative parallel to SPI tri-state chip for ESP8266

My prototype was going to use 74HC589 as a parallel to SPI interface for ESP8266-07 MCU. They are in short supply for quick delivery at the moment. I am asking for suggestions for a similar chip ...
0
votes
1answer
65 views

Reading a MD25Q128SIG SPI flash memory with raspberry pi

I'm trying to read a MD25Q128SIG SPI flash memory with my raspberry pi, you can find its datasheet here: http://www.firstjit.com/Uploadfiles/20160121152131319.pdf Here are raspberry pi pinouts: Here ...
0
votes
1answer
40 views

On-PCB SPI Distance Considerations

I've been reading about ringing and overshooting and all sorts of things, but all without getting a real "feeling" for how likely these things are to affect my circuit. I've got a chip generating an ...
1
vote
1answer
38 views

STM32F4 SPI Program hangs at TXE non empty

I have been taking a udemy course on STM32F4. The course uses a different board than the one I have but from same family STM32F4. I couldn't make the SPI driver developed in the course to work in my ...
0
votes
1answer
67 views

STM32L432 full duplex DMA SPI slave locks up after communication starts

I am continuously sending a substantial amount of data between the STM32L432 and a FPGA using SPI in full-duplex mode. I decided to implement DMA on the L432 in order to increase the transfer rate ...
1
vote
0answers
42 views

S25FL512S flash driver, read or write not working correctly

I am trying to write a driver for an S70FL01GS chip, which is two stacked S25FL512S chips. I am successfully reading status register, SFDP register, RDID, etc. I am also able to toggle (and verify) ...
1
vote
0answers
48 views

STM32F4: loss of SPI communication when enabling interrupts

I'm trying to communicate with a device via SPI (a radio transceiver, to be more specific) and I want to use external interrupts in order to wake the processor up from sleep mode when a message ...
0
votes
0answers
22 views

ili9341 using 3 wire with stm32f030 [duplicate]

I am working with ili9341 TFT Display with STM32F0 MCU. And TFT display was connected with 3 configuration. I am confused between sending the "command" and "data" using spi communication. So can ...
0
votes
2answers
85 views

Medium Range Two Wire Bus Recommendations?

Do you have any recommendations for a medium range (~10 meters) two-wire bus? My supply voltage is 24V and I'll have a single master with ~50 slaves connected to it. I've looked into: I2C - Great but ...
0
votes
0answers
58 views

AVR: SPI write collision

I was learning SPI protocol using this tutorial. I am simulating code in Proteus using Atmega168. I was able to get the code working. Then I tried to implement UART, so that I can view recived data in ...
1
vote
1answer
130 views

Splitting a bidirectional bus into two unidirectional ones

I am trying to sniff on a custom SPI-like bus protocol, which uses a unified bidirectional data line instead of separate MISO/MOSI. To make sense of the communication, I need to split it up into ...
0
votes
2answers
115 views

Would SPI work in a system that may have EMI, distance =~ 60 cm

for a project I will be using 2 microcontrollers communicating with SPI 100 kbps. Distance between them will be approximately 60-70 cm but these microcontrollers will be in a case with a 24 V battery ...