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.

Filter by
Sorted by
Tagged with
1
vote
0answers
26 views

SPI CLK/MOSI and Noise

I am building a motor controller board (Based on an STM32) driving a motor with a switching frequency of 70KHz. That same board (master) communicates with a sensor (Slave) on another board with short ...
0
votes
0answers
8 views

SPI communication between ESP32 flashed with MicroPython and ADXL345 (slave)

I'm testing the possibility to communicate throught SPI protocol between an ESP32 flashed with MicroPython and the ADXL345 accelerometer sensor. I started testing the simplest thing: reading device ...
1
vote
1answer
42 views

Unknown pads on board

I'm analyzing a board for some device (game handheld console). I've found a simple SPI flash on it (W25Q) but there are 2 pads exposed for what I assume is factory testing (there are no other pads ...
2
votes
2answers
80 views

How can I read from an accelerometer through i2c/spi for ~1 second at frequency>2kHz with precise distancing between measures

Context goal My final goal is to perform an fft on acceleration signals with specs at least: band between ~10 and ~1000 Hz spectral resolution ~1Hz on a portable, cheap, low-power device. hardware I'...
2
votes
0answers
61 views

How to improve a high frequency square wave for laser imaging

I am trying to create a current source for laser direct imaging and I have a problem in the circuit I cannot solve. The laser is a 120 mW 405nm diode and I use it in a laser module from a laser ...
0
votes
1answer
47 views

Quad SPI series resistors on lines for short circuit protection?

I am designing a circuit where MCU connects to LCD driver IC (FT813) using Quad SPI. Since there is a risk of Both MCU and FT813 pins becoming output at the same time with different values (i.e. one ...
0
votes
1answer
40 views

Problems interfacing PMODI2S2 with STM32H7

Back at it again, however this time not sure what the problem is. I have a PMODI2S2 device that is an Audio codec. It interfaces with the STM32H753ZI Microcontroller VIA SPI/I2S. The problem that is ...
0
votes
1answer
30 views

Unexpected MISO signals from LSM6DS3

I keep getting an odd result from an LSM6DS3 (common IMU device) and I'm not sure where else to turn. I have it hooked up to an MCU (nordic nrf52840, not that it matters) and I see my clock signals, ...
0
votes
0answers
12 views

Banked QSPI Flash Chips

I have 3 MCUs in my system, and due to the maximum flash size supported, I'd like to be able to switch which Flash they boot on. I think a simple way to support this would be to have gates that can ...
0
votes
0answers
22 views

What will be the simple SPI sequence to transmit packet with cc1101

I'm trying to mimic behavior of my weather sensor with esphome and cc1101. rtl_433 detects ...
0
votes
0answers
33 views

my spi_interface code in Verilog is not working

I have written a spi protocol in Verilog for communication between a master and a slave device. the problem that I am facing is I've written its testbench and in the simulation, as you all can see ...
0
votes
0answers
64 views

my spi protocol in verilog is not working

I have written an spi protocol in verilog and it is showing error. here is the link from where i took the information for spi. https://www.nxp.com/files-static/training_pdf/26821_68HC08_SPI_WBT.pdf ...
2
votes
1answer
73 views

Reading EEPROM memory (Winbond W25M02GV) with FT4222H USB bridge

I would like to read an EEPROM Memory (SPI Flash Winbond) using an FTDI USB/SPI bridge (FT4222H). I developed a c++ application that connects to the FTDI and reads data from the memory(and using the ...
1
vote
0answers
35 views

SPI Programming

I am trying to program the processor, eventually i connected NOR and Processor in the same line without any isolation. Now i need to program the Flash without interfacing the processor. Anyone please ...
1
vote
0answers
58 views

ATmega328P presumably dead after probable SPI short circuit

I am trying to use an ATmega328P to interface an SPI device (RFM95W radio module). This worked pretty well (I could measure the correct signals on SCK, MISO, MOSI and CS), but after some programming ...
0
votes
1answer
16 views

Issue with avr spi slave interrupt in proteus ATmega8

I want to get some data from spi, but spi interrupt doesnt work. I get a message and a pause in proteus instead of a signal on LCD. How to fix this? My code: ...
2
votes
1answer
141 views

SPI Communication with multiple slaves: Problem on MISO line when both slaves are connected

----SETUP DESCRIPTION---- I'm running SPI Master VHDL code on an FPGA (Spartan 6 - XC6SLX9-3TQG144) with 2 slaves (both ADC122S021). I have one main board onto which I connect the FPGA. The first ADC (...
2
votes
1answer
33 views

what is the V_IO Pin for in a SPI header?

I built a small PCB board that runs my HMC833 phase lock loop using the reference design provided by analog devices, and it works. The pll is controlled using spi to set the frequency, so I placed a ...
1
vote
3answers
59 views

Alternatives to FT232H for USB to SPI communcation

For my current use case, I am using FT232H as a general purpose device that changes my USB packets into SPI information as an SPI controller for my SPI peripheral. My SPI peripheral can support upto ...
5
votes
3answers
448 views

SPI and multiple devices

I'm planning out hardware for a project and would like to drive at least 2 displays, each using the SPI interface. What I dont understand is why there are dedicated pins for the CS line (at least on ...
1
vote
1answer
41 views

How does the serial data input SDI for the MAX31856 (thermocouple to digital converter) works?

I want to communicate with a MAX31856 using SPI. Unfortunately, I have a basic understanding of electronics and only used SPI communication once. Briefly, the thermocouple sensor (MAX31856) is ...
2
votes
1answer
136 views

What do “X” lines mean on a signal?

I was reading a specification sheet for a flash memory controller and came across a diagram for a particular command: I was wondering what the "X" lines on the ...
0
votes
1answer
25 views

SPI Daisy-chain with paralleled DIN

I'm trying to use daisy-chaining feature on three MAX5318 DAC's. However, I'm not sure how to do it properly. Do I need to turn CS low, then write 9 byte to SPI DIN, then double-trigger LDAC? Or to ...
0
votes
0answers
38 views

Data boundries in SPI serial interface

I am trying to understand the SPI serial interface between a Master MCU and a (Single) Slave ADC. Do we have 8-bits or 16-bits data word communication in SPI? Or is it un-bounded and I can send any ...
1
vote
0answers
21 views

How to create chip select functionality for SK9822 addressable LEDs

I want to connect some SK9822 LEDs to an SPI bus that is already in use. As these LEDs do not have a chip select, I need to make one. Is it just as simple as an npn transistor (BC547 perhaps)? Feed ...
1
vote
0answers
71 views

SPI Slave implementation in software

I need to implement SPI Slave (@10Mhz clock) on a microcontroller (a sensor with Cortex M33 core) in software. The problem is software is not fast enough to prepare data just after the command. (also ...
0
votes
1answer
63 views

Electric vehicle instrumentation [closed]

I have converted a vw bus to 112 VDC electric drive (Tesla battery modules 22.5VDC X 5 ea). There is also a 12V system for lights and instruments. The BMS supports SPI and CAN. I have no experience ...
0
votes
1answer
35 views

Minimum wiring for remote ST7735R SPI TFT display

Figure 1. ST7735R 1.8" TFT colour LCD. Image source: eBay. I have an ST7735R working on an Arduino Nano as shown below. Figure 2. Current setup. I want to try mounting the display remotely (< ...
1
vote
0answers
27 views

Matching SPI Wire Length for Multiple Devices

I have a main PCB write to 5 different flash memory chips. Four of them are on their own PCBs and are connected by 6 inches of wire from the main PCB. One flash chip is on the main PCB itself and very ...
0
votes
0answers
36 views

STM32F4 SPI Tx Data Register Problem

I am trying to communicate with IS25LP128F Flash IC via SPI on STM32F407. Firstly, I tried to send RDID command as you see in the picture.How to send commands and reading respond of them is explained ...
1
vote
1answer
35 views

PIC32 DMA (connected to SPI) interrupt not working

I am working on my first PIC32 project on a custom board. I am utilizing a PIC32MZ2048EFH064 microcontroller which I am programming in MPLAB X IDE v5.40 (compiler: xc32 v2.41). My goal is to receive ...
0
votes
2answers
56 views

Talking to SD card *adapter* from FPGA

I have an FPGA (Lattice ICE40UP5K) at hand and need to do some SD card I/O with it. There are tutorials about interfacing with an SD card with an FPGA, but they typically concern with the case where ...
0
votes
1answer
69 views

Conversion SSI to SPI

I want to interface an encoder based on the SSI interface with a microcontroller and only an SPI interface is available (I can't use other interfaces than SPI). As far as I see, SSI has a lot in ...
2
votes
1answer
82 views

Microchip SST26VF064B serial flash communication problem - JEDEC ID wrong

i'm trying to test SPI communication with Microchip SST26VF064B serial flash, and i have encountered a problem while reading JEDEC ID from the chip. According to datasheet, first three bytes should be ...
0
votes
0answers
49 views

How to receive data via SPI Interface with No Master Command but Multiple Slave Commands?

I am using STM32f401rct6 microcontroller - master (No Commands) and LTC6811 battery Monitoring IC- Slave (Multiple Commands) I have developed full firmware perfectly including drivers. But i have a ...
0
votes
1answer
40 views

MSP430FR2433 SPI data corrupted

I'm currently working with MSP430FR2433 Micro. I want to interface this micro with the following modules: LCD screen via SPI (https://www.orientdisplay.com/store/amc0802br-b-y6wfdy-spi-8x2-character-...
0
votes
1answer
59 views

Configure SPI Slave to handle data coming at the wrong time

I am experimenting with the SPI protocol (fast speeds where 5 bytes of data is transferred in slightly less than 500us) on the STM32F410 configured as a SPI full duplex slave. A master device sends a ...
0
votes
0answers
40 views

What's up with TI TIVA's SPI controller?

UPDATE: The issue with debugging someone else's code is you just have to assume everything is being coded correctly. I just checked datasheet and there was this BSY (bus busy) flag bit in status ...
0
votes
2answers
48 views

What are data available and data required in SSI/SPI

I'm trying to understand SSP/SPI but I'm stuck on the concept of data available and data required. Here's how it explains it in the textbook (Valvano's Introduction to ARM Microcontroller): The key ...
3
votes
1answer
231 views

SPI slave randomly missing bits in response

I've connected an MCP3008 to a raspberry pi. First on a solderless breadboard, where everything worked correctly. Then on a prototyping board, where the only difference is that the chip is externally ...
0
votes
0answers
16 views

Ch376 USB Module with SPI

What is the problem here, I used logic analyser to check the data and commands i send to the Ch376 USB Module, And all are right, But the module is not responding with any reply, Just return back the ...
0
votes
0answers
45 views

what is a BIOs Programmer used for?

Never used a BIOs programmer before. Wondering what are they for. For my current project, I need something to configure my PLL chip, which has an SPI interface. I already have the evaluation board ...
0
votes
1answer
121 views

Power monitoring dificulties using ACS71020 30A SPI and PSoC 5lp

I'm currently developing a board for my dissertation that should monitor voltage, current and power consumption of a given load. For that purpose i chose to use the Alegro chip ACS71020, the one i ...
0
votes
1answer
82 views

How does a CRC check work between a microcontroller and EEPROM?

I have communication between an EEPROM and a microprocessor over SPI and I want to take care of data integrity. Could you please confirm my below understanding? I have a data which I want to write in ...
1
vote
1answer
219 views

Do the MCP23S17 GPIO pins need protection against latch up ESD within this circuit?

I wrote about this system before. I will focus my questions now on "ESD protection" direction. I have an SPI based system in which a Raspberry talks with a GPIO expender device using SPI ...
0
votes
1answer
53 views

STM32F103C8 SPI1 clock frequency too low (~32kHz)

I am trying to program SPI1 on STM32F103C8T6 (black pill board). I have configured it as follows: ...
0
votes
2answers
57 views

SPI- Mutiple Slave Configuration - MISO line conflict

I am using SPI in my design with Single master three slaves ,Using chip select i will enable two slaves at a time. Is this correct , if no please let me know why ?
0
votes
2answers
33 views

ACS71020 current value confusing

I have a quick question regarding the ACS71020 chip. I am using SPI to communicate with this chip, and the iRMS value is represented as a "15-bit fixed point number with 14 fractional bits". ...
0
votes
0answers
49 views

Allegro ACS71020 unable to read voltage SPI register

Hi I'm trying to read from the registers of the ACS71020 over SPI, but I can't seem to get any values other than 0. The only time I am able to get anything other than 0 on the MISO line, is on the ...
1
vote
1answer
37 views

Are Dual Bus Transceiver or Analog Switch best practice to manually switch between SPI devices?

I have two different use cases for 4 lines (this could be an SPI bus or other digital signals). The goal is to manually switch all four lines between the two different use cases with just a single ...

1
2 3 4 5
26