Skip to main content

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
0 answers
47 views

Why does the SPI bus with 2 devices crash in this setup?

I am using Feather M4 express development board with DC Motor + Stepper FeatherWing and Ethernet FeatherWing stacked on it. The idea is to control the steps of the stepper motor by reading the encoder ...
dreamcoder's user avatar
2 votes
2 answers
81 views

ATMEGA328P ISP SPI connection conflict issue

With reference to similar issue: SPI device prevents ISP programming I have 2 ATMEGA328Ps with MOSI MISO and SCK permanently connected on the same board. At the time of printing the board my thoughts ...
Jay Dee's user avatar
  • 339
0 votes
1 answer
46 views

Buffering Arduino SPI bus using 74AHCT125

My SPI bus has 2 slaves, one is 5V tolerant and is connected normally to the bus, however the second one is only 3V3 tolerant and so I have to level shift it. I have decided to use the 74AHCT125 ...
zoghii's user avatar
  • 177
0 votes
1 answer
43 views

SPI flash memory (AT26DF161A) with PIC16F883 write wrong data in memory and Manufacturer ID is wrong

I'm working on a product with a TFT display and I want to save the screens in a flash memory. I had available an AT26DF161A memory, so I build a prototype in order to test it with a PIC16F883. I wrote ...
Hernan Couto's user avatar
0 votes
1 answer
77 views

How to isolate a chip from a board without unsoldering it?

I have a board from some device with SPI flash memory chip. I also have a separate CH341a programmer for such chips and I intend to read the SPI flash memory chip from the board. Now I want to do this ...
Arthur  Bulakaiev's user avatar
0 votes
0 answers
31 views

Problem with SPI Communication - STM32 Nucleo U575ZI-Q/STEVAL-MKI168V1

I am currently learning by working on a project in which I have to establish a SPI communication between a Nucleo U575ZI-Q and a STEVAL-MKI168V1 (IIS2DH eval board). To set up the Nucleo board and its ...
Nasser Shehadeh's user avatar
0 votes
1 answer
41 views

Problem with STM32MP1 SPI using DMA

When running some simple code to test the SPI communication using DMA, the program only works as expected after stopping and restarting the microcontroller. The first time it runs, instead of sending ...
Fábio Silva's user avatar
0 votes
1 answer
46 views

SAMD51 SPI on SERCOM0 not working as expected

I'm trying to use a SAMD51G19 48 pin package to write a very simple SPI program, which will just loopback what's output back into the input, but I'm still new to this processor and haven't done SERCOM ...
daannn's user avatar
  • 15
1 vote
0 answers
22 views

EFT (IEC 61000-4-4:Burst Test) Fail. I used SPI Interface [closed]

I am using TI ADC part# ADS131E08 and STM MCU Part# STM32H7 Series. #3 channel : Voltage measurement (3phase) #3 channel : Current measurement (3phase) #1 chanel : Internal-zero current measurement. #...
DSKIM's user avatar
  • 11
0 votes
0 answers
51 views

SD card via SPI: any way of getting it out of stuck state after aborted SPI operation(s) without power cycling it?

using ESP32 and its IDF platform libraries to access SD card via SPI, we have a situation where e.g. panic reboot of ESP32 leaves the SD card 'stuck' such that it cannot be mounted any more after ...
tangram's user avatar
0 votes
0 answers
48 views

SPI Mode Selection

Im trying to determine SPI mode of CS5364. Section 4.13.1 SPI Mode of the datasheet says: CDOUT is the output data line to a controller. Data is clocked in on the rising edge of CCLK and is supplied ...
Electronx's user avatar
  • 756
2 votes
0 answers
34 views

Question re: layout and grounding of a PCB with SPI-controlled H-bridges and load switches

My question is regarding the layout, and in particular the grounding, of a PCB that has a microcontroller that controls various H-bridge drivers (that will be PWM’d) and load switches via SPI. The ...
Mark512's user avatar
  • 21
1 vote
3 answers
187 views

SPI device stops working when integrating Schmitt triggers and ESD diodes

I am integrating a BME680 temperature, pressure and humidity sensor using SPI. When I only use 33 Ohms series resistors, the system works fine. However, when adding Schmitt triggers (NL27WZ17DFT2G), ...
Tommy95's user avatar
  • 179
0 votes
1 answer
72 views

MISO line on SPI appears as if it was discharging a capacitor

I was inspecting SPI lines on my PCB using an oscilloscope to see if there was a skew between SPI line signals or not. The SPI clock is running at around 4.5 MHz. CPOH= 1 and CPOL = 1. I got the ...
abdo Salm's user avatar
  • 143
0 votes
1 answer
59 views

MAX1415 ADC not reading voltages correctly. Incorrect setup procedure?

My device uses two of the MAX1415 dual-channel sigma-delta ADCs. I've labeled them "MADC" and "CADC" for "Measurement ADC" and "Calibration ADC". They are ...
AuFries's user avatar
  • 113

15 30 50 per page
1
2 3 4 5
117