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
0 votes
0 answers
9 views

MCP4151 unresponsive to commands on ESP with CircuitPython

I am trying to control an MCP4151-103E digital potentiometer from an ESP32-Devkit-v1 running CircuitPython 8.2.7. For this task, I have the following code. This has been adapted from this Github ...
toxicantidote's user avatar
0 votes
0 answers
8 views

Issue with MAX3140 UART when sending 64-bit frame using 16-bit frame configuration

I am facing an issue with the MAX3140 UART when attempting to send a 64-bit frame through a 16-bit frame configuration. The MAX3140 uses a 16-bit frame for communication, where the upper 8 bits are ...
Noushad's user avatar
0 votes
1 answer
64 views

SPI and word length

When receiving data via SPI communication, is there any constraints for word length (bit size)? I have a chip that sends 16 bits of data A and 16 bits of data B through a single pin, can I configure ...
aglakd's user avatar
  • 5
1 vote
0 answers
76 views

SPI2 on the bluepill STM32F103C8 doesn't work

For a while, I have been trying to interface a 1.8 TFT ST7735 to my STM32F103C8 bluepill using SPI2 and HAL. I tried SPI1 and has worked perfectly, but because I am interfacing LoRa to the bluepill ...
Hamo's user avatar
  • 41
0 votes
0 answers
33 views

Unable to communicate with SPI based display board

I need to communicate with a display board that is acting as master and my board will act as slave. The reference document says that " Totally 26 bytes for communication between display and ...
saki gujjar's user avatar
0 votes
0 answers
41 views

AD7708 ADC SPI receive problem in STM32

I'm currently working on a ADC AD7708. There is not much document or library for this IC. I'm writing ad7708 driver for stm32f446 mcu. In datasheet register structure of ad7708 shown as below: I ...
Burak Kayaalp's user avatar
0 votes
1 answer
35 views

Can WINC1500 be used with SPI for connecting to a router?

I'm planning to buy the WINC1500 WiFi module. I have heard that it contains a SPI layer, which can be used for telling the WINC1500 to connect to a router. But as I can see in the documentation, I ...
euraad's user avatar
  • 1,085
0 votes
0 answers
20 views

LTC4332 communication issues

I have a slight issue with the communication between my Arduino Uno R3 board and an LTC4332 SPI extender chip. The Arduino is the master and the LTC4332 device is the slave. The Arduino SPI channels (...
LabMat's user avatar
  • 161
0 votes
0 answers
48 views

Noise in SPI Chip Select when communicating between boards

I'm writing SPI code to communicate between an STM32 Nucleo Board and a TI Dev Board, the CC1310-90. I'm using a manually toggled chip select pin. The data my TI board is receiving is junk, and after ...
numerousobjective7's user avatar
1 vote
1 answer
63 views

ESP32-S3 SPI pins?

I am a beginner in electronics and tried to use ESP32-S3 for interfacing RFID and unable to find SPI pins in the the data-sheets. Tried Googling for pin reference but after reading so many blogs and ...
Sukhdarshan Vinayak's user avatar
0 votes
0 answers
63 views

ESP32 SPI issue (voltage levels)

I have (technically had because it smoked while trying to resolve this issue) a PCB board with an ESP32-WROOM-32 Dev Board plugged in. I had 4 external ADCs (AD7680ARJZ-REEL7). ADC 1 and 2 were on ...
jskooba's user avatar
  • 39
0 votes
2 answers
61 views

Arduino SPI and analog pin management

I am using Adafruit Feather M4 Express to read buttons, switches, encoders and potentiometers and control some LEDs of a control panel. I am running into issues with the pin management. I have 5 ...
dreamcoder's user avatar
0 votes
0 answers
37 views

How to read data from a 6DOF sensor by SPI?

I am new to firmware programing. I have a 6 DOF sensor module and want to connect to a ESP12F development board to read data. Please see below picture for my 6 DOF sensor module. Here are my current ...
RamondC's user avatar
0 votes
0 answers
42 views

AD677JNZ Raspberry Pi Connection

Relatively new to electronics, I would like to connect the AD677JNZ analog-to-digital (ADC) to a Raspberry Pi 4 to monitor the voltage of a potentiometer. However, I am having issues with the ...
user avatar
0 votes
1 answer
42 views

Can't write to status register of SST25VF010A flash memory

I'm having trouble writing to the status register of a SST25VF010A-33-4I-SAE 1Mbit SPI flash memory on a board I recently made. I'm using an STM32F401CBU6 to communicate with the memory. I can read ...
Swiss Gnome's user avatar
0 votes
1 answer
102 views

ESP32 VSPI/HSPI SPI channels only support 3 slave devices?

From what I understand there are two methods for multi-subnode SPI - Regular Method and Daisy Chain Mode [1]. In the regular method, each slave device is designated a separate CS (chip select) pin on ...
jskooba's user avatar
  • 39
0 votes
2 answers
76 views

Reading BMI270 IMU data with STM32F4 MCU

I have a flight controller with a GYRO in it. The BMI270 is connected to SPI 1, and using STM32CubeIDE for the build, I am trying to read sensor data and send it via UART. CHIP_ID = 0x24 is the value ...
maths soso's user avatar
0 votes
0 answers
34 views

Can SD card readers read a card which only implements the SPI mode?

I've read How can I initialize/use SD cards with SPI?. If I connected a microcontroller's SPI slave pins to an SD card shaped connector, would this allow the microcontroller to appear as a very small ...
fadedbee's user avatar
  • 982
0 votes
1 answer
116 views

Can't get SH1106 1.3 oled to work (SPI)

It's my first project this big - an arduino (Pro Micro) based midi controller. After all the research, schematics and pcb designing I got to assembly and wanted to try out the display, but then I can'...
jasioloza's user avatar
0 votes
1 answer
41 views

Turning power on to relays interferes with thermocouple reader

I have 6 3V reed relays SIL03-1A72-71D that connect to a raspberry pi pico directly via gpio pins 11, 12, 13, 14, 15, 18, and 19 on a custom pcb. The connections to the relays are: 1 is connected to ...
notanickel's user avatar
3 votes
1 answer
98 views

Can I implement QSPI (quad SPI) communication using an MCU that only supports ordinary SPI

This question is most probably about pin-configurations registers. I mean since QSPI is the same as SPI with more data bus-width (correct me if I'm wrong on this first assumption), then doesn't it ...
Bikay's user avatar
  • 73
0 votes
2 answers
73 views

Communication between two microcontrollers with independent Vcc powers

I need to send signals from one STM32 to another, while each has its own power source (each a separate battery pack). both units operate with the same voltage level (3.3 V) but @ different core clock (...
Bikay's user avatar
  • 73
0 votes
2 answers
55 views

SPI protocol master CS pulled low

If I run the system on SPI protocol and keep the master slave connected with it, will communication happen if I disconnect both the CS pins master and slave and tie them to ground?
S M Kalim Ahmed's user avatar
1 vote
0 answers
64 views

SD card stuck writing single block of data

I noticed a very strange behaviour on some of my micro SD cards. I have a project that writes data to files stored on my SD card (FAT32 formatted) via the SPI interface of a PIC32 microcontroller. ...
RobinDeleener's user avatar
0 votes
2 answers
203 views

HAL_SPI_TransmitReceive not working properly

I am trying to use HAL function to drive SPI to read analog voltage from external ADC (adc128s102). I see what I expect to see in first 16 CLK with MISO(Blue) and MOSI(Yellow) line. But what's causing ...
Alia Sana's user avatar
0 votes
1 answer
25 views

PL230 DMA & PL022 SPI transmit only 9 bytes

I am trying to implement SPI+DMA on W7500. The chip has a PL230 DMA and PL022 SPI (with 8 level FIFOs). First I just want to transmit N bytes using DMA basic mode. On the pins I only see 9 bytes (or ...
filo's user avatar
  • 8,931
0 votes
2 answers
59 views

I2C with MPU6050 and STM32F407stuck at send address status check

I have the following code for an accelerometer sensor, MPU6050. ...
Mahesh Namboodiri's user avatar
0 votes
1 answer
60 views

Slave SPI not firing interrupt

I have 2 STM32F407 discovery boards for which I'm trying to setup a multi slave SPI bus. The first slave is working but the other one is making problems once I connect the second CLK input onto the ...
Michael's user avatar
  • 113
0 votes
1 answer
53 views

Managing Multiple SPI Slave Devices with I2C for Slave Selection

I'm working on a project where I have one master device and 64 slave devices. I'm facing a challenge with the SPI protocol's limitation in terms of the number of Slave Select (SS) lines needed for ...
Sergey Tytarenko's user avatar
0 votes
1 answer
73 views

SPI read of MAX31856 in Verilog

I am trying to read the K-type thermocouple temperature with MAX31856 in Verilog. Configured the configuration registers CR0 & CR1. The conversion result is stored in the registers 0xC, 0XD, 0XE. ...
user353944's user avatar
0 votes
0 answers
42 views

ESP32-WROOM-32E Custom PCB Failure to send LoRa Packet

I am having troubles trying to send a LoRa packet to a receiver. In the serial monitor I am stuck in the while loop and it keeps printing dots. Below is my code and I will attach a photo of the eagle ...
Maren's user avatar
  • 1
0 votes
0 answers
36 views

Wired network for a lot of ESP8266 / ESP8285

I found this project at GitHub, and I would like to do the same but add a few improvements. Rotate modules, according to this radiation pattern: Would it work better? As I understand ESP8266 doesn’...
Sergey Tytarenko's user avatar
2 votes
2 answers
60 views

SIPO Shift register compatible with SPI bus? [closed]

I'm trying to drive LEDs from a shift register that shares a bus with several other components. It seems like most options for SIPO shift registers don't have the equivalent of a chip select line, ...
harmon cleary's user avatar
1 vote
1 answer
103 views

Problems with high frequency SPI

I have what I can best describe as an ASIC (TI's DLPC3420 digital micromirror device controller) communicating with an SPI flash (MX25L1606E). It first reads a part of the flash at low frequency of ...
DELTA12's user avatar
  • 778
0 votes
1 answer
175 views

Implementing a light software stack on STM32 to send and receive data using 433Mhz RF modules

I need to send a 12-bit data continuously from one system to another using 433MHz RF modules. The transmitter and receiver systems uses STM controllers (STM32L010F4) which are connected to the radio ...
nottherealfaraday's user avatar
0 votes
0 answers
43 views

MOSI signal losing bandwidth in SPI communication

I am testing the SPI MOSI signal for signal integrity. The length of the PCB trace is 207 mm. Unfortunately, the signal is curved at the rising edge of the cycle. The frequency is 1Mhz. I think it is ...
Lifeshack Radio's user avatar
1 vote
1 answer
32 views

SPI to classic Bluetooth

I have an embedded system with SPI interface. I need to send file of 400-500 KB to a smartphone so I was thinking to use a Bluetooth board with SPI interface (because of file dimension I would like to ...
Corrado's user avatar
  • 123
-1 votes
1 answer
166 views

SPI NAND rewrite issue

I'm using Alliance Memory's AS5F38G04SND-08LIN 8Gbit(1 Gbyte) SLC NAND flash with STM32. Datasheet So my question is, Can I re-write a page with data already in it? Page size is 4096 bytes. For ...
Alatriste's user avatar
  • 150
0 votes
0 answers
31 views

How to program Motor Controller via SPI

I am using Allegro A4962. Our college course requires us to use an industrial grade motor controller like this one which must be interfaceable to external power mosfets, have PWM as the only input, ...
Wycliffe0317's user avatar
1 vote
0 answers
34 views

Flashing Atmega328p bootloader with connected SPI device in parallel

I'm designing a PCB with an ATmega328P (SMD) and two ADS1118 ADCs (also SMD) that will be connected to the ICSP pins of the ATmega328P. Will these two ADCs, in parallel with the MCU, pose a problem ...
electronics's user avatar
-1 votes
2 answers
198 views

SPI. When does the RXNE bit of the SPI_SR register become 0? [closed]

I found information that the RXNE bit is set to 0 when the SPI_DR register is read. So after ...
stm's user avatar
  • 79
0 votes
0 answers
63 views

I can't get the WHO_AM_I address from the LIS3DSH accelerometer. SPI. STM32

I want to get the WHO_AM_I address from the accelerometer LIS3DSH, which is located on the STM32F407VGT6 board. To be more precise, after I press Hardreset many ...
stm's user avatar
  • 79
0 votes
1 answer
178 views

Can't fill the ILI9341 display with color. STM32, SPI

Connecting STM32F407VGT6 to ILI9341 display. I need to perform a simple task: fill the display with some color. Current display status: The display backlight lights up. The display is not filled with ...
stm's user avatar
  • 79
2 votes
1 answer
71 views

Atmega328p - AD5423 SPI issue when using external crystal

I am programming AD5423 DAC IC with a atmega328p-AU microcontroller with SPI, using the MCU;s internal 8-Mhz crystal. The communication protocol between the two ICs is SPI and my code works as ...
Christianidis Vasilis's user avatar
1 vote
1 answer
136 views

What is the use of diode D301, D302, D303 and pull up resistors R301,R302, R303 on SPI bus?

I have seen the schematic of SPI with diode and pull-up resistors. I wanted to know the use of the use of this. Can I remove the diode on the PCB and place just the pull-up resistor? It is connected ...
Jim's user avatar
  • 51
0 votes
0 answers
34 views

Driving multiple VFD controllers using collected data

I have a LoRaWAN sensor network that I setup which collects temperature data from multiple compost stacks and stores it in a database on the local network. I need to convert that data into an output ...
pheeper's user avatar
  • 101
1 vote
1 answer
86 views

Trouble driving 4 digit LED display with a MAX7219 display driver and a PIC16F690 MCU

I am attempting to drive a 4 digit, common cathode LED display with a MAX7219CNG display driver and a PIC16F690 MCU for SPI communication. The LED display does not light up and appears to not be ...
Pat's user avatar
  • 103
1 vote
0 answers
134 views

Question about an ATTINY85, SPI over USI and the ability to read an MCP23S08

I was hoping for a little help in writing a function so that I get an understanding basic SPI over USI on an ATTINY85. I followed a YouTube tutorial on writing bits and blinking an LED with a ATTINY85 ...
Erik Vincent's user avatar
3 votes
1 answer
125 views

Synchronous Sampling of ADC over SPI on STM32 (STM32G474)

I have a design incorporating an ADC with an SPI interface that requires: SPI Transfers of 32-bits to read the conversion results from the previous conversion. To be able to sample the ADC at 1 MSps ...
gordonC's user avatar
  • 33
0 votes
0 answers
27 views

XBee XR 868 not responding on SPI requests

I am trying to control Digi XBee module (XB-8XR-DMRM-001) by ESP32-S3 chip via SPI interface (I'm using ESP IDF). Example of my code is below; also an oscillogram of MOSI, MISO, CLK and nCS data lines,...
Ihor's user avatar
  • 1

1
2 3 4 5
35