Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

Logic level converter for SPI

I'm using an SPI interface in Raspberry Pi for programming platforms. I have a need to use various logic levels (1.8V, 3.3V, 5V). Is there any IC which allows for dynamic switching between logic ...
0
votes
1answer
30 views

Identifying VW head-unit connector types

I've kind of been on a long quest to build an embedded system for working with the head unit of my '04 VW Golf. Others have done some work to detail pin-outs and write source code to send signals to ...
0
votes
0answers
23 views

problem connecting an Arduino Ethernet Shield to FPGA trough SPI

I have an Arduino Ethernet Shield and trying to connect it to my spartan 6 board. I used the ICSP header on the bottom of Arduino Ethernet Shield (MISO/SCK/RST/+5/MOSI/GND) and a wire for SS(pin 10 of ...
0
votes
1answer
17 views

Trouble with SO on MCP23S18 spi gpio expander

I am unable to get a signal out of the slave out (SO) line of an MCP23S18 For those not familiar it is a slave SPI gpio expander. Clocking in 32 bits, as it goes 16 bits set up, 8 bit opcode, 8 bit ...
0
votes
1answer
34 views

How to figure out SD Card optimal write size

I am writing the data logging portion for a real time embedded application. I have an SD card I communicate via SPI at 33Mhz. I need to be able to log at least 1024 bytes of data ever 1 milli-second. ...
0
votes
1answer
28 views

SPI programming flash chip(s) - connecting HOLD and WP pins

I am trying to learn with SPI programming and have started with this guide using a Beaglebone Black. I have one DIP8 package connected via breadboard for testing, and another SOIC8 package on-board ...
1
vote
0answers
38 views

Unexplained Data Enable Pin

Looking at This datasheet for the LSM9DS1TR 9-axis IMU, there is a pin labeled DEN_A/G with the description "Accelerometer and gyroscope data enable" on page 11. I can find no further explanation ...
1
vote
2answers
66 views

SPI using STM32's DMA sends one word too much

On an STM32F103 I configure SPI in 16bit wide mode and set up a DMA transfer to transmit one byte: ...
0
votes
1answer
38 views

SPI terminology confusion for project

I am working with the FET335xS-II OBC developed by Forlinx for a school project. On the data sheet, There is no indication of pins pertaining to MOSI and MISO but instead "data 0" and "data 1". I am a ...
0
votes
2answers
100 views

Where are all the multiplexers?

I am trying to implement a circuit where 2 SPI drives (basically two masters) speak to 1 slave. Both operate on a 3 wire SPI. Keeping that in mind I was going to have the CLK and MOSI of both as ...
2
votes
1answer
53 views

Multi-tasking on an 8bit AVR -

I'm using an ATTINY816 (the new series AVRs) to manage a system that includes the following tasks: Simple audio "effect processing" (delay, pitch up, pitch down...) using internal ADC + DAC Storage ...
0
votes
1answer
59 views

short miso and mosi pins in 3 wire spi

I have to interface a uc to a ADF7020-1 and I want use adf7020-1 as master and uc as slave in 3-wire spi mode. adf7020-1 have txrxdata that interfacing with uc(it has mosi and miso pins). how did ...
1
vote
1answer
97 views

What is HAL_SPI_TransmitReceive purpose and how it works

I am trying to understand how does this function works even though there are so many people complaining about it. My questions are these: 1) What is the difference between using this in my code: <...
0
votes
0answers
36 views

STM32F429 SPI issue

I am trying to get SPI working on STM322F429-disco board. Here is the setup: SPI2 is setup as a master with Soft NSS and SSOE enabled. GPIOG Pin11 is being used manually for Chip select. SPI4 is ...
3
votes
1answer
57 views

SPI clocking in extra word - STM32F4

I am attempting to interface with the TLE5012B (datasheet here) using SPI. The master in this case is a Nucleo F411RE, which uses an STM32F4 processor. The sensor communicates in 16-bit words, so I ...
1
vote
1answer
45 views

AVR SPI slave first byte problem

I have written a simple SPI slave on an ATMEGA328PB. It mostly works, however, I can't seem to get the first byte to be what I want. The difference between the first, second, and all other attempts ...
0
votes
1answer
31 views

MAX31855 and Type K sensor seem to top down at -60°C (should be measuring -80°C)

As a prelude, I'd like to offer that I have obviously read the famous question here: Sensor for ultralow (to -85°C) freezer monitor I have set up a K-Type probe from Adafruit and their MAX ...
1
vote
2answers
62 views

Image memory on micro controller [closed]

I am trying to specify a microcontroller for a very simple task. All it does is show an image at boot up (which will most likely be black and white). The display itself is 240*240 and 12bit color ...
0
votes
1answer
45 views

How to write more than one page at once in Winbond W25Q32JV

I am using Eclipse IDE for firmware development. I am using Quectel MC60 module with Winbond W25Q32JV (4 MB memory). The thing is that I am able to read/write single page. I am facing issue with ...
1
vote
4answers
68 views

Multi master SPI mode? Or any intelligent way to switch only time between two masters?

I have an LCD display which is powered from a pretty powerful micro, with GPU and all sorts of stuff. However, it turns out that it will take it over 5 seconds to boot the core. From a user experience ...
0
votes
0answers
14 views

Nucleo F446RE - No SPI response while transmit is working as intended

I'm trying to read some registers of an Atmel AT86RF233 transceiver via SPI with a Nucleo F446RE development board. As stated on the title, whenever I send anything through MOSI, the transceiver doesn'...
1
vote
1answer
52 views

Interfacing AD7811 ADC with Arduino over SPI

TL;DR: I am not getting the correct values back from the AD7811 ADC. I am giving the ADC an input from my benchtop PSU (Tenma 72-2540) into analog input 1, and getting various (and always wildly ...
1
vote
0answers
31 views

(SPI-)NOR Flash: Slower with age/wear?

I am developing a Linux based IoT gateway. It uses the SPI-NOR Wuhan Xinxin Semiconductor Manufacturing Corp. (XMC) XM25QH64A for U-Boot code and environment. I tried to validate the promised 100'000 ...
0
votes
1answer
53 views

strange RFM95 SPI behaviour with STM32L4 [closed]

I am using CubeMX and HAL to program an STM32L4. I am trying to communicate with RFM96 module using SPI, but I am getting nonsensical results. According to the RFM96 datasheet, in order to read a ...
0
votes
1answer
63 views

NOR Flash Memory Full chip vs Block vs Sector Erase

I am trying to use a NOR flash memory device: SST25VF016B (with STM32 discoveryboard F407VG). However, I am confused on some terms on their datasheet. You can find the datasheet here: https://www.elfa....
-1
votes
0answers
18 views

SPI Between STM32F0 And RC522(RFID) Communication error

I am trying SPI connection between STM32F0 and RC522(RFID). I am a newbie and do not know SPI protocol very well. I found a RC522 library for STM32F1 and F4 and reorganized it for F0, but RC522 still ...
0
votes
1answer
78 views

Ver2.0 SDHC Card long response time after ACMD41 during initialization

I would like to implement a very low power SD card handling with MSP430 processors. I would like to log measurement data onto SD card without a file system. I want to turn on and off the SD card power ...
-1
votes
0answers
49 views

STM32F103 “BLUE PILL” SPI Clock signal not working

I have been trying to communicate with Arduino UNO thru SPI1 of STM32F103 blue pill board. I am using the standard peripheral library. I have checked countless tutorial and have run them on my board. ...
0
votes
2answers
91 views

What is the maximum slaves supported by SPI and how it is limited?

I was learning the basics of SPI-communication. It was came to following section and I was bit confused to understand the sentence. What is the meaning of " each slave in the chain will act as the ...
-1
votes
0answers
30 views

Block reading of SDHC returns 0x00

I have a 4 GB sd card attached via SPI to my XMega MCU and I want to read this card with the USART-SPI interface in SPI mode of the MCU. So i have this code SD.c ...
0
votes
2answers
30 views

configuration of a SPI bus with different slave devices

I need to make an on-board SPI bus with one master and a few slave devices(microSD card, Gyroscope, magnetic field sensor). Since it is the first time for me to use more than one slave device, I ...
0
votes
0answers
38 views

MAX31855 and ISO7331C isolated SPI issues

We needed isolated thermocouple readers for a work project, so I designed a PCB with two copies of the below circuit on a PCB, with the connections broken out to a JST-XH connector. I received the ...
0
votes
1answer
89 views

SPI communication between STM32F4 and Rasberry Pi produces garbage

I trying to make an SPI communication between a RPi (as MASTER) and an STM32F410 (as SLAVE, on a Nucleo board). My PoC is simple, I send 8 bytes from the Rpi and print them out with the UART-over-USB ...
1
vote
2answers
82 views

MicroSD raw write/read mode. After sector write once, can't write more sectors and read always 0's

I am doing, for the first time, the interface between a microcontroller (PIC32MX) and a microSD card through SPI. The cards I'm using are initializing correctly. The sector/block size is fixed at 512 ...
2
votes
2answers
139 views

STM32F722ZE SPI communication with LSM6DS33 using HAL

For a long time I can not read the correct data from the LSM6DS33 control register (accelerometer + gyroscope). As I read in the datasheet, the control register address WHO_I_AM is 0x0f. In order to ...
0
votes
1answer
57 views

STM32429ZI Dısc1 Gyro wrong data problem

I'm tring to write own L3GD20 library. I can read chip ID (but L3G sent to me ffd4 and its partially true). But I cannot read any axis of gyro. Partially gyro always sent to me FF or 00. I'm doing ...
2
votes
1answer
67 views

Vivado : constraints setup for SPI interface with common clock

I have been using Vivado 2018 for a system level design and am having trouble with a SPI interface programming. A block diagram of my system is shown below. The Artix-7 FPGA (on the motherboard) ...
0
votes
0answers
32 views

Reading SPI transmission in logic analyser

I'm trying to use an Analog Discovery 2 to read SPI transmissions from my mbed. Code: ...
2
votes
1answer
62 views

Why does the QUAD INPUT PAGE PROGRAM OPERATION command exist?

While reading the datasheet for the IS25LP512M series of Flash devices from ISSI I came across this weird command, 32h/38h called "QUAD INPUT PAGE PROGRAM OPERATION" (in section 8.11) with the ...
1
vote
2answers
114 views

Advice for 25-50 Mbit SPI lines - PCB design

I would like to ask some advice for my layout design. I am working on a layout design. The designed PCB will be a Beaglebone Black (BBB) extension card. It is a four layer PCB with the following ...
0
votes
1answer
39 views

Need help with calculation SPI Frequency

I am using Bit banging SPI to communicate with SDCard. I am using QCA4020 and I have no information regarding the Pin Toggling Frequency. To get the max speed of SPI Possible with the hardware I am ...
2
votes
1answer
184 views

STM32 3-wire SPI MOSI high impedance

I have a sensor with a 3-wire SSC interface, which is SPI compatible, but only has one bidirectional data line. Now I try to read this sensor (https://www.infineon.com/dgdl/Infineon-...
2
votes
4answers
154 views

UART expander (5 ports to 11 ports)

I have a board that I would like to design and there are 11 devices that can only be spoken to via UART. I am restricted to a Microchip uC chip product range and I have found one with 5 UART ports. I ...
1
vote
2answers
37 views

SPI between ATmega32 and ATmega328 is not working

I have been trying to accomplish connecting ATmega32 and ATmega328 using SPI Hardware connections: ...
1
vote
1answer
54 views

SPI: Receiving bytes from slave

For a couple of days I have been learning about SPI and decided to give it a go with 2 small devices. DEVICE 1: Atmega328p (MASTER) DEVICE 2: MFRC522 (SLAVE) As far as I understand: master sets SS ...
3
votes
2answers
364 views

STM32 SPI not working as I expect it should based on online reading

I am using an STM32F103C8 to connect to a Hope RF95W transceiver IC for the purpose of learning. I am only trying to read the chip version register, then write a config register that has a 0x00 reset ...
0
votes
1answer
48 views

Where MOSI is triggered low or high

Sending and Receiving Data //Function to send and receive data for both master and slave ...
0
votes
0answers
19 views

L9935 stepper motor driver handles only the first command

I'm interfacing the L9935 two-phase stepper motor driver with Arduino. For this purpose, I've followed js_online's guide here. The only difference is that I use the original connector on the board. ...
0
votes
1answer
38 views

SSC TLE5012B read out

I have some trouble with understanding the following IC and its SSC interface: https://www.infineon.com/dgdl/Infineon-TLE5012B_Exxxx-DS-v02_01-EN.pdf?fileId=db3a304334fac4c601350f31c43c433f It is ...
0
votes
1answer
113 views

How to ensure that an SPI master sends exactly 16 clock pulses to the slave?

I'm using this current sensor: TLI4970-D050T4 According to the datasheet: How can the SPI master send exactly 16 clock pulses to the slave, so I don't receive the 0's? When I'm reading this sensor, ...