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
1answer
24 views

FTDI LIBMPSEE unreliable SPI connection

I am sending bytes from SPI master (FTDI FT2232H) over SPI to the SPI slave (FPGA). SPI master is actually a C program that implements libMPSSE directly from the FTDI. C program looks like this: ...
0
votes
0answers
31 views

Replacement DAC for MCP4922

I have designed a circuit for controlling a device in the lab, using a Microchip PIC32MX Microcontroller, connecting via SPI to a pair MCP4922 DAC, the output is then adjusted with an operational ...
1
vote
2answers
64 views

Why is SPI described as output and UART as input in the MFRC522 datasheet?

I am currently trying to figure out why my NFC reader circuit with MFRC522 chip is not working and I stumbled upon this in the datasheet. In the section describing how to activate different digital ...
0
votes
1answer
33 views

Interfacing MCP3302 ADC with Arduino Micro SPI Help

I am very new to hardware design and am making an optical detection circuit using a photodiode. I simply need to interface with the photodiode and save the output voltage values on Arduino IDE ...
1
vote
1answer
85 views

SPI -- unstable clock confuses the SPI decoder

I am sending bytes 0xAA (10101010) and 0xBB (10111011) ...
0
votes
2answers
126 views
+100

STARTUPE2 in Vivado?

I am kinda new to FPGA , am trying to set up SPI connection to the Flash memory on my Artyx- 7 board ( Basy-3 ). Problem is pin C11 is a configuration dedicated pin which provides clock to the SPI as ...
0
votes
2answers
50 views

In SPI mode: CPOL=0, CPHA=0, how can the data be sampled in the leading rising edge if it is shifted in the falling one?

I'm reading about the SPI clock polarity and phase. Specifically, this article, Figure 2. My question is about the case of CPHA = 0, CPOL = 0. For this configuration, my understanding is that the ...
0
votes
0answers
25 views

SPI Line Switching for Redundant Design

I am in the process of designing a full-duplex transceiver board. I am using an ATmega328pb uC and a CC1125 radio. This is for a CubeSat project, so in the interest of redundancy, I'm I would like ...
1
vote
1answer
38 views

Setting MSB high on an STP08CP05 (LED driver) turns off all LEDs

I am using an Arduino UNO to control a STP08CP05 - an 8 bit LED driver that has a shift register that allows it to be controlled with an SPI interface: A clock (CLK) pin and a data (SDI) pin. There is ...
1
vote
2answers
82 views

Raspberry Pi SPI fault - returning incorrect bits

I'm currently trying to interface a CS5530 ADC to a raspberry pi 4b 8g using SPI. When I attempt to communicate with the ADC I repeatly get return bits that make no sense and am running out of ideas ...
3
votes
3answers
255 views

Flash SPI communication doesn't work without osciloscope

We are using W25Q128JV Flash IC in conjunction with nRF52 SoC. Datasheet of flash: https://www.winbond.com/resource-files/W25Q128JV%20RevH%2003102021%20Plus.pdf We face following issue: SPI ...
0
votes
0answers
24 views

Samsung 32GB Evo SDHC Not Responding Correctly to CMD55

I am using the fatfs module by elm-chan. I have a Samsung 32GB Evo SDHC and trying to initialize it according to the suggestions presented in this thread. My code is stuck at sending cmd55 without ...
0
votes
0answers
45 views

STM32G431 SPI DR Problem

​ I`m using STM32G431 for practicing SPI protocol knowledge, but face some problem like below. ​I use 【HAL_SPI_Transmit_IT】API to send (0x5A,0xA5) data out, but measure with Oscilloscope and figure ...
2
votes
2answers
406 views

SPI modes of data transfer

I am learning SPI protocol in serial communications now. I got stuck with the clock phase and polarity controls concept. Why there are 4 modes available other than a single universal transfer mode. ...
0
votes
3answers
129 views

Configuring SPI circuit design for use in 485 transceiver for long range data transmission (50 meters plus)

So quickly getting out of things I have previously done however trying to send SPI controller signals across long ranges using either 18 AWG cable or based on all the recommendations we have been ...
0
votes
1answer
58 views

ATtiny84a SPI communication disabled following chip erase

I am attempting to serially program an ATtiny84a using an ATmega645a. I am able to enter programming mode and read the device signature bytes, but after issuing a chip erase command, the ATtiny stops ...
0
votes
0answers
46 views

Amplifying long run wiring to addressable WS2815 LED 12V to pool line noise issues [duplicate]

I amurrently working on running WS2825 IP68 lighting (finishing up) in our pool along with LED lights. After moving the controllers to a centralized location, we have been having issues (lights ...
1
vote
2answers
45 views

SC16IS752: how to design it for higher bauds?

I am planning to use this IC for adding more UARTs to my PI. It is stated that max baud rates are 5Mbps, which is perfect for my purposes. However I2C's max bitrate can hardly reach these high numbers ...
0
votes
1answer
40 views

SAMD21E with Arduino : SPI

I created a custom board with a SAMD21E chip (thanks to this). I2C protocol works very well. Nevertheless, the SPI line from the Arduino Zero use PB pins which are not present on SAMD21E chip, so I ...
0
votes
2answers
55 views

Data transmission between SPI and memory

I am working on a design a transmission system in FPGA. SPI slave/master are connected with CPU via DMA. I would like to reach a speed up to 100 Mbits/s and looking a block from IP catalogue (VIVADO) ...
0
votes
1answer
27 views

Using CYPRESS PSOC4 controller SPI -No sync between data and clock

In SPI, CPHA and POL is 0, probed on clock and MOSI line, seeing data transition in when the clock is not available. Or there is sync between clock and data line.
0
votes
0answers
28 views

MCP2515 CAN controller is not transmitting CAN frames , when loading CAN data through SPI interface at less than 8MHz frequency SCLK

MCP2515 CAN controller is not transmitting CAN frames , when loading CAN data through SPI interface at less than 8MHz frequency SCLK i am using MCP2515 CAN controller+ mcp2551 transceiver ...
0
votes
1answer
72 views

SPI master design: theory

I am working on SPI master and slave blocks. In the design, SPI slave has only input signals ( CLK, cs(chip select) and MOSI), SPI master has only output signals ( CLK, cs(chip select) and MOSI). I ...
1
vote
0answers
27 views

Command control for axi data mover block

I am a beginner in microcontroller programming and looking for a DMA block which will be a "bridge" between SPI and CPU ( memory). I have found AXI Data Mover block in IP catalogue of VIVADO....
0
votes
0answers
32 views

CC2541 Interface with ST7789V based 1.14" TFT Display

I am working off a custom board having CC2541 from Texas as the Main Controller and a 1.14" TFT Display being controlled via ST7789V Drive IC. These two are connected over the SPI Interface. ...
1
vote
1answer
41 views

Is it possible to use "DDR Xccella Mode" when connecting an external RAM to the STM32?

MCU: STM32H7A3ZIT6 RAM: APS12808L-3OBMx This ram supports "DDR Xccela mode", where it transfers data on the rising and falling edge of the clock. I'm fairly sure my MCU supports the standard ...
0
votes
1answer
55 views

How come I can play audio in my ESP8266?

I'm currently messing with the ESP8266Audio Library. I uploaded a sketch to my ESP8266 that uses a HTTP stream of MP3 from the web and plays it using some MP3 decoder. So basically the loop looks like ...
0
votes
1answer
28 views

Why to decrement the Length of date string twice after sending data in 16 bit DFF (Data Frame Format)?

My instructor told use that we have to decrement the length data string SPI twice after sending the data. The image will show the code. The board I am using to run the code is STM32F407 DISCOVERY ...
1
vote
1answer
55 views

MAX14830 SPI UART Bridge not transmitting

I am using a MAX14830 SPI-UART bridge. I am trying to initialize the chip and get it to transmit a few bytes out of one of its UART. I can write to the UART's THR register, which gets added to the ...
0
votes
1answer
45 views

Wiring a SSD1306 OLED with SPI

I have this SSD1306 OLED display, and I'm trying to figure how to connect it to my NodeMCU with SPI. It looks like this: I browsed several sites, and I could see that the SCK is the clock, SDA is ...
0
votes
0answers
36 views

Is erasing flash memory supposed to be this slow? (S25FL127S)

I'm trying to interface with a Cypress/Infineon S25FL127S (https://www.cypress.com/file/177961/download - 16MB SPI Flash module) and the Erase commands are very slow. Testing with two different ...
1
vote
2answers
65 views

How do I know how much time a ESP8266 needs to do some operation?

Let's say I want to drive a SPI peripheral using bit-banging with a ESP8266 module. So I have the datasheet for that peripheral telling me it has this setup time and that hold time etc. The question ...
0
votes
1answer
68 views

SPI design with different speed

I am studying SPI communication protocol and its design in VIVADO environment. I have found here a big discussion topics about SPI and topics(1,2) which are "covered" my questions: What are ...
0
votes
1answer
39 views

3SPI, 1 I2C, 1 UART connections to esp32

I am trying to make a number of digital connections to an esp32 datasheet As shown in the photo below. I am having difficulty finding a way to read 3 ICs with SPI outputs, because I only have 2 free ...
2
votes
2answers
177 views

Is the Analog Devices "Introduction to SPI Interface" white paper wrong?

I am looking at the Analog Devices Introduction to SPI Interface and it has this diagram for SPI mode 2... It shows that the first data bits do not appear on MOSI and MISO until after (1) CS goes low,...
2
votes
0answers
54 views

RF PCB Layout for 915Mhz + BLE: Which is better?

I am designing a small board with a 915Mhz transceiver IC breakout (based on the CC1101 + CC1190 chipsets), controlled by an STM32. I have used the popular nrf24l01 chipset in the past, but was ...
0
votes
3answers
103 views

Is there a "standard connector" for SPI, in a similar way to the "standard Qwiic connector" for I2C?

I really love the "standard Qwiic connector" initially intoduced by Sparkfun for connecting / "chaining" I2C components. Really amazing and super convenient in day to day life when ...
0
votes
1answer
30 views

Hardware Design Question Related to IMU VDD, VDDIO and IO pins

I am working on a flight controller design using ICM-20789, an IMU from TDK. As most of the components are powered by 3V3 source, so I am thinking connect IMU_VDD to 3V3 and VDDIO to 1V8 source same ...
1
vote
0answers
63 views

GPIO Configuration for Bit-Banging 3-Wire (SCK, MISO, CS) SPI

I have an issue with an SPI connection between a STM32F401RE Nucleo64 board and a MAX31855(Datasheet) thermocouple converter board. I understand the issue around wrong SCK polarity and have already ...
1
vote
2answers
67 views

Connecting multiple DACs to SPI bus but all SPI ports are in use

I am trying to setup multiple DACs (4 channel, TLV5620) at the same time with an STM32. My project requires 5 channels, but all SPI ports are currently in use. TLV5620 doesn't support a daisy chain ...
0
votes
0answers
31 views

Two STM32F407 Discovery Boards SPI Polling Example From ST

I used STM32Cube IDE ST Example to try SPI Polling communication. I followed SPI_FullDuplex_ComPolling reading file instructions. After I pressed reset buttons of 2 boards, I pressed master board user ...
2
votes
2answers
369 views

Xilinx Spartan 3A programming connection : where are MISO and MOSI pins?

I am trying to find SPI connections to download my program to Xilinx XC3S50A-4VQG100C but can’t figure which pins are SPI pins. Newbie alert : I just started learning FPGA and am trying to build my ...
1
vote
1answer
138 views

Sniffing a SPI BUS

I want to sniff some data from a SPI Bus between boards from a loom machine. The bus starts at J9 from PCB 5722 and goes through 8 boards named PCB 5778, which I guess are the slaves. The connector ...
-1
votes
1answer
51 views

Explanation a line in SPI Realisation in C: receive data

I have googled how SPI in C could be implemented and found a tutorial, where there is the following line: ...
0
votes
1answer
58 views

Zynq block design : beginner's questions [closed]

I am a beginner and trying to create a  zynq block design using ZedBoard. I have added Zynq from IP catalogue and run it using Designer Assistance + connect two port (M_AXI_GPO_ACLK and FCLK_CLKO): ...
1
vote
1answer
104 views

Read data from a register in C-code [closed]

I am a beginner and learning by myself. I need your help to start the third implementation in my life in VIVADO ( "Hello world" and "led") I will implement SPI connection with DMA, ...
0
votes
1answer
28 views

How to implement SPI SCK with ESP8266

I have a ESP8266-01 and a Microchip 23LC1024 memory chip which communicates via SPI bus, and I want to drive it using the ESP8266-01. My thought is to implement the SPI protocol in software i.e. bit-...
0
votes
1answer
59 views

Drive a SPI slave using a shift register?

I have a ESP8266-01 and a 74HC595 8-bit shift register. I can drive the shift register using the ESP8266, but the ESP8266 doesn't have a SPI interface. I have a Microchip 23LC1024 that I want to drive ...
1
vote
0answers
66 views

STM32 - write to SPI on first rising edge, and read on first falling edge?

I'm trying to talk to another IC (a Microchip SPI flash chip) which wants to read in data on the rising edge but write it out on the falling edge using an STM32F4 series MCU. I saw this post but the ...
0
votes
1answer
45 views

Detect SD card via SPI interface only?

Supposing a microSD connector on which there isn't a switch/pin to indicate that the card is inserted or not, I would like to know if it is possible to detect the presence/ausence of the card only via ...

1
2 3 4 5
29