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
97 views

SPI data lines look identical, but results are different, how is that possible?

I have a golden sample system which consists of 2 devices communicating via SPI. I swap one of the devices and bit bang the SPI to make it similar to the golden sample. However the bit banged device ...
0
votes
0answers
26 views

Why does the “write enable” in QSPI with Macronix MX25L51245G always return WEL = 0?

I come to you to ask for help with Macronix MX25L51245G interfaced with STM32L476RG. My QSPI is set to 32MHz. Here what I do: QSPI Reset (0x66 - 0x99) SPI Reset (0x66 - 0x99) Wait for WIP = 0 (SPI) ...
0
votes
0answers
24 views

Using two distinct SPI Buses Teensy 4.0

I am trying to use two different SPI buses on one Teensy 4.0. However, from the programming side, I am not sure how to implement this. I can assign CS pins and initialize SPI settings for different ...
-1
votes
0answers
32 views

I need library for spi to can communication with MCP2515 on STM32 [closed]

Yes I Googled it and no I can't find any working solutions. On arduino that works easily but at stm32f103c8 there is no library for that I need to use MCP2515 and Keil for my project so I can't use ...
0
votes
1answer
50 views

PIE encoding and SPI communication

I am trying to understand the following situation: I have an MCU (STM35L152RE), in which I am encoding digital data into PIE encoded data. Then I want to communicate this PIE encoded data with ...
0
votes
1answer
35 views

Using SPI with ESP8266-01

I'm pretty new to ESP8266 and all these low-level stuff. I recently purchased a ESP8266-01 and started learning about it and playing around with it, and I have a few questions: First, I found on the ...
0
votes
4answers
147 views

UART=Hardware, SPI=Protocol?

I read in few places, one of them is this, that one of the main differences between UART and SPI is that the former is a type of hardware and the latter is a protocol. I'm having hard time to fully ...
1
vote
1answer
48 views

No response from 2 working spi devices when they are stacked

I have two identical SPI devices but each off them is on a separate board, they are connected via a header that allows the board to be "stacked" on top of the master controller. the signal ...
0
votes
3answers
92 views

Is there a standard way to probe SPI without causing data corruption?

When I connect my oscilloscope probes to my SPI lines, the line voltages get affected a lot and so my SPI comms fail. I am using a breadboard as an intermediary between the two devices and adding ...
0
votes
2answers
41 views

Efficient strategy to acquire multiple spi interfaced sensors data in parallellover several spi buses?

I want to continuously acquire temperature from many ( ~20) thermocouple MAX 31856 all on one PCB ultimately. This chip interface with spi. The project language is python Because of the sensor latency,...
1
vote
1answer
41 views

Solution to interface SD card with microcontroller using only 2 pins (I2C/SPI)

So I am trying to add an SD card to my circuit and unfortunately, all I have left are 4 GPIOs, but I was asked to try and find a solution to only use 2. So using 4 is a worst case scenario. I thought ...
-1
votes
4answers
154 views

How does ethernet connection relate to communication protocols like SPI, I2C, UART, USB? [closed]

I am having a hard time understanding ethernet communications between devices. Does it use protocols like I2C or is it a unique protocol itself? Could two chips on the same PCB use ethernet ...
0
votes
0answers
15 views

SPI Altera master IP not behaving as expected

Using Platform designer on Quartus, This is a system with Nios and SPI IP. The code on the nios is attached. This code is supposed to drive the MOSI output to 1 forever, the MOSI on the waveform is ...
1
vote
0answers
26 views

Rx buffer overwrites Tx buffer in spidev xfer2

I'm setting up a comms link between an STM32F407 MCU and the Pi3B+. The code shown below works but when the data is printed out, it looks like the RX buffer overwrites the TX one. How do I stop that? ...
1
vote
2answers
46 views

Using SPI to get higher sampling rate from ADC module vs using ADC on microcontroller [closed]

I am currently looking at a microcontroller, and I would like to use ADC on Arduino but found out that the Arduino has a limited sampling rate. Is it possible to us SPI communication with a separate ...
0
votes
0answers
63 views

SPI slave not always transmitting data

I'm using an STM32F429 Discovery board and using the FW_F4_V1.25.2 firmware. I have SPI3 configured as a full-duplex slave (currently used only to send) which sends data out to a Beaglebone as a ...
0
votes
1answer
49 views

setup stm32f1xx for SPI communication in slave mode

i set up stm32f1xx SPI for slave mode. How can i write in the SPI shift register that whenever the master starts a full_duplex communication, the data written in the SPI shift register is ...
0
votes
1answer
47 views

How does reading from a peripheral device at a specific address using SPI work?

This question is about trying to understand how the communication is implemented on a typical peripheral device such as an accelerometer, or flash chip. More specifically, I'd like to understand how a ...
2
votes
1answer
28 views

Dotstar Light Strip Low Update Frequency

I've built the start of a persistence of vision display. The rotation platform itself is built and I have just mounted the LEDs. After doing some testing, I can only get very slow update speeds of the ...
1
vote
3answers
79 views

SPI clock signal (SCLK) usage in FPGA SPI slave

I need to design an SPI slave peripheral inside an FPGA that shall be used to communicate with a Microcontroller and configure the behaviour of the FPGA design. I have a few questions. If the FPGA ...
0
votes
2answers
140 views

Reading SPI flash W25Q128FV with raspberry pi, what am I doing wrong?

This is the pinout I have for the flash memory W25Q128FV which I'm trying to interact with I'm trying to control it with a raspberry pi 3 B+. Here's how I wired everything: ...
0
votes
2answers
76 views

Diodes on SPI bus data lines and pullups

Take a look at this schematic provided by adafruit with a max31855 to read a thermocouple. They use diodes on CLK and CS pins while also pulling them up on VCC. I would like to ask why the use those ...
2
votes
3answers
1k views

How can I use SPI and I²C at the same time?

I have a couple of A/D converters and am reading them every 100 µs over SPI, using the timer interrupt routine with SPI clocked at 16 MHz. Additionally, I have five digital temperature sensors using ...
0
votes
0answers
36 views

SPI communication between Arduino Nano and ATTiny24

I'm trying to make communication between Arduino Nano and ATTiny24 using SPI. I've written code for master(Nano) and slave(ATTiny24)(with great difficulty) but no luck getting the proper output. I'm ...
0
votes
1answer
69 views

Need help with little assembly language code

Can anyone help me convert the below assembly language code to Arduino (Embedded C) code. I'm trying to program ATTiny24 as an SPI slave to establish communication between it and Arduino NANO (master)....
0
votes
0answers
32 views

I225 Ethernet Controller - SPI Flash

I'm designing a motherboard with Tiger Lake UP3 CPU, and I want to use Intel I225 Ethernet controller for the LAN ports. I225 reference design includes an SPI flash. I couldn't find what is the ...
0
votes
1answer
22 views

MAX5725 SPI mode

I'm reading the datasheet of MAX5725 but I cannot understand which SPI mode it uses. At page 18 I read: [...] the data is shifted in synchronously and latched into the input register on ...
0
votes
1answer
23 views

How can I be sure my replacement SPI flash chip will work?

I am currently using the Cypress CX3 MIPI-USB bridge chip which needs an attached SPI FLASH chip. The datasheet recommends the W25Q32FW part, which is now obsolete. I would like to choose a ...
0
votes
1answer
45 views

How to remove byte to byte delay using MCP2210

I am using a Microchip MCP2210 USB to SPI converter, however during operation, there is a delay between the sent bytes. Is there a way to remove this ?
0
votes
0answers
29 views

SPI: Receiving sets of bytes from master

I have SamC21 XPRO board as a SPI slave with program written using ASF and Arduino Uno as a dummy SPI master. I expect 3 bytes long values. The master sets SS to <...
0
votes
1answer
46 views

problem with using ili9341 TFT LCD with stm32f103RE

i successfully used a HAL code i found on Github for driving an ili9341 TFT LCD with SPI then I rewrote the code with registers. Part of my code works and i am able to fill pixels with color but when ...
-1
votes
2answers
63 views

Suggestions for a SPI Master board which can be directly controlled through USB using C/C++? [closed]

I am trying to figure out a solution to control multiple SPI slaves directly through my software. I am developing software in C/C++ for a hardware device that has an MCC USB-2637 DAQ board to acquire ...
0
votes
1answer
31 views

Can SPI SS pin be used as PWM output by slave on ATMEGA328p-AU?

Working on designing an ESC for BLDC motor and I need 6PWM. I am using ATMEGA328p-AU. I need to program the M328p after its in the PCB so I need to leave some pin outs for SPI. But some PWM and SPI ...
0
votes
1answer
33 views

Can you program Atmega32M1 with UART?

I have been reading datasheet over datasheet and seems to find nothing about this. I know I can use SPI_A for both bootloading and programming the atmega32m1. But can I use UART? And should I go with ...
0
votes
0answers
35 views

S25FL064L flash isn´t answering

I want to use the above flash memory to store some data with my MCU, but the flash isn´t answering on the 0x9F instruction: I use SPI mode 0 and a 125 kHz clock ...
0
votes
0answers
60 views

Is it possible to connect to non-miso device

Is it possible to setup a connection to my device? Is it SPI ? The device is x96 android tv box, (manufacturer unknown, may be TT TV Box, listed as both x96 and X96, its casing is lower case). Managed ...
0
votes
0answers
18 views

Why are there bits changing in reserved section of SPI Read Data register on SAM4LS8AA?

I am trying to establish SPI communication between a ATSAM4LS8AA chip (master) and Hope RFM95W LoRa module (slave). I am using Advanced Software Framework (ASF) in microchip studio (MS), and using the ...
0
votes
1answer
28 views

SPI communication with DRV8908-Q1 motor driver

I have designed a board to drive 4 BDC-motors using a DRV8908-Q1 motor driver (datasheet). Here is the schematic of chip with all connections and here is the microcontroller (Teensy4.0) The ...
0
votes
0answers
62 views

Help with SPI routing for a display

I’m designing my first PCB and got weird SPI issues after my second revision of the PCB layout. I did a few small changes for the SPI routing in the second revision but nothing that I thought would ...
0
votes
2answers
83 views

RC filter in SPI MISO line [closed]

I have a question about SPI line. I have seen in several circuits that an RC filter (R in series and C is between the MISO line and ground). Does anyone know the usage of this filter in SPI MISO line? ...
0
votes
2answers
89 views

How to broadcast data with SPI?

I’m using a ADC with SPI output for my application, and I need to have two different devices to receive the data from ADC ‘simultaneously’. Since it is ADC, SPI communication will be single-...
0
votes
2answers
72 views

Why a 20-bit shift register only output last 8 bits?

I need to use a VFD driver with 20-bit shift register but it only works for the last 8 bits: ...
0
votes
1answer
31 views

Running Multiple 12V Sensors to RoboRIO

We run anywhere from 4-10 sensors from Banner Engineering (Photoelectric and RFID). They use 12V power and have a PNP output. Each sensor is 4 wires (12V, GND, NO, NC). Our goal is that we can run the ...
0
votes
0answers
46 views

Using Data Visualizer with Atmle-ice with SPI Physical interface

I am trying to output some debug strings from an AtMega328P to a terminal window on AtmelStudio using the DGI. I would like to use the 6-pin 100-mil connector of my Atmel-ICE Basic Kit, which I ...
0
votes
1answer
30 views

What's wrong with this SD card CMD0 logic analyzer trace?

I'm trying to talk to an SD card from an ESP8266, using one of the internal SPI drivers. No matter what I do, the card never responds to the initial CMD0 setup command. I think I'm sending the command ...
1
vote
1answer
40 views

Properly connecting Shift-Registers to microcontroller

While working on a circuit, I am confused on connecting daisy chained 74HCT595 and 74HCT165 to microcontroller. I am developing the circuit so that microcontroller can be connected as separate add-on ...
0
votes
0answers
36 views

SAM3X8E SPI configuration

I am trying to configure ATSAM3X8E SPI to winbond SPI NAND flash, while ATSAM works at 12MHZ winbond NAND FLASH does not respond at such higher frequencies so when I tried to reduce the baud rate ...
0
votes
2answers
53 views

SPI communication over different voltage

I was working on a PCB design and I am stuck on a question over SPI communication over different voltages. I am using some 74HC595 and 74HC165 shift registers to expand number of GPOIs, running on 5v ...
0
votes
0answers
36 views

Arduino SPI Daisy Chaining

I want to operate a large set of servos in conjunction with various sensors, each module controlled by an Arduino nano. In order to send overhead operational data to the nanos, I want to use an ...
0
votes
1answer
58 views

IC to use for multiplexing SPI chip select

I have a number of SPI ICs but limited GPIOs on my microcontroller, so want to multiplex the CS pins to something that requires only a couple of GPIOs. I use the predetermined clock, MISO and MOSI on ...

1
2 3 4 5
27