Stack Exchange Network

Stack Exchange network consists of 175 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
0answers
37 views

74HC589 - stock lead times are high, looking for alternative parallel to SPI tri-state chip for ESP8266

My prototype was going to use 74HC589 as a parallel to SPI interface for ESP8266-07 MCU. They are in short supply for quick delivery at the moment. I am asking for suggestions for a similar chip ...
0
votes
1answer
32 views

Reading a MD25Q128SIG SPI flash memory with raspberry pi

I'm trying to read a MD25Q128SIG SPI flash memory with my raspberry pi, you can find its datasheet here: http://www.firstjit.com/Uploadfiles/20160121152131319.pdf Here are raspberry pi pinouts: Here ...
0
votes
1answer
32 views

On-PCB SPI Distance Considerations

I've been reading about ringing and overshooting and all sorts of things, but all without getting a real "feeling" for how likely these things are to affect my circuit. I've got a chip generating an ...
1
vote
1answer
30 views

STM32F4 SPI Program hangs at TXE non empty

I have been taking a udemy course on STM32F4. The course uses a different board than the one I have but from same family STM32F4. I couldn't make the SPI driver developed in the course to work in my ...
0
votes
1answer
57 views

STM32L432 full duplex DMA SPI slave locks up after communication starts

I am continuously sending a substantial amount of data between the STM32L432 and a FPGA using SPI in full-duplex mode. I decided to implement DMA on the L432 in order to increase the transfer rate ...
1
vote
0answers
31 views

S25FL512S flash driver, read or write not working correctly

I am trying to write a driver for an S70FL01GS chip, which is two stacked S25FL512S chips. I am successfully reading status register, SFDP register, RDID, etc. I am also able to toggle (and verify) ...
1
vote
0answers
39 views

STM32F4: loss of SPI communication when enabling interrupts

I'm trying to communicate with a device via SPI (a radio transceiver, to be more specific) and I want to use external interrupts in order to wake the processor up from sleep mode when a message ...
0
votes
0answers
20 views

ili9341 using 3 wire with stm32f030 [duplicate]

I am working with ili9341 TFT Display with STM32F0 MCU. And TFT display was connected with 3 configuration. I am confused between sending the "command" and "data" using spi communication. So can ...
0
votes
2answers
81 views

Medium Range Two Wire Bus Recommendations?

Do you have any recommendations for a medium range (~10 meters) two-wire bus? My supply voltage is 24V and I'll have a single master with ~50 slaves connected to it. I've looked into: I2C - Great but ...
0
votes
0answers
45 views

AVR: SPI write collision

I was learning SPI protocol using this tutorial. I am simulating code in Proteus using Atmega168. I was able to get the code working. Then I tried to implement UART, so that I can view recived data in ...
1
vote
1answer
88 views

Splitting a bidirectional bus into two unidirectional ones

I am trying to sniff on a custom SPI-like bus protocol, which uses a unified bidirectional data line instead of separate MISO/MOSI. To make sense of the communication, I need to split it up into ...
0
votes
2answers
111 views

Would SPI work in a system that may have EMI, distance =~ 60 cm

for a project I will be using 2 microcontrollers communicating with SPI 100 kbps. Distance between them will be approximately 60-70 cm but these microcontrollers will be in a case with a 24 V battery ...
0
votes
1answer
32 views

STM32 - SPI - RTOS problem [closed]

I'm working on a project that uses a 2.8" arduino LCD. The LCD uses an ILI9341 driver. Now I'm testing this library: https://github.com/martnak/STM32-ILI9341 with an STM32F4-Discovery board (STM32F407)...
0
votes
1answer
64 views

Problem with SPI wiring?

Searching for images of SPI wiring between Master and Slaves, I found that some of them connect MOSI/SDI of master to MOSI/SDI of slaves and so MISO/SDO of master with MISO/SDO of slaves, meanwhile ...
1
vote
1answer
101 views

Bug in my SPI implementation (VHDL)

I'm new to VHDL/FPGA programming and I experienced some weird behavior in my SPI-Slave implementation. What I did: SPI-Master: I'm using an Arduino (ATMega328p MCU) as the SPI-Master. For debugging, ...
0
votes
0answers
22 views

How to use f_forward function in FatFs

I have to read a file 100kB big using FatFs in a microcontroller to send it via an AT TCP-IP modem. An obvious method would be doing f_open() calls, but I am curious how to use the f_forward function. ...
0
votes
0answers
32 views

Writing data into a SPI Flash using NFC?

I have a 16 Mbit SPI flash. I want to write data to the SPI flash using NFC. I know there are multiple NFC+MCU series out there that can do this. However, the NFC+MCU require JTAG, LDOs, ..etc. The ...
0
votes
1answer
28 views

Logic level converter with voltage selector

I want to use an ADG3304 logic converter. I know that this chip is bidirectional. I have designed a schematic of this solution. I want to switch between two voltage levels. My questions are: does ...
0
votes
2answers
32 views

MAX7219, SPI capable/Timing question?

So I purchased a cheap Double-7-Segment display piece (specifically this one: https://www.amazon.com/dp/B01D0WSCJA) To do some tinkering with. I've messed around with it manually to make sure it ...
0
votes
1answer
32 views

Reading MLX90303 over SPI

I am trying to take readings from the Melexis Tri-axis Hall effect sensor MLX90393, but all I seem to get is garbage. I am reading the sensor over SPI, with a 1MHz clock. Here is an example of a ...
-1
votes
1answer
62 views

SPI clock selection

Using STM32l476 controller. Master is running at 30 MHz and slave is running 15 MHz. In SPImaster, clock should be system clock/2. In slave, clock should be system clock/4. Question: My ...
1
vote
2answers
109 views

Multiple SPI devices using single select line?

I wish to send data back-and-forth between a Master and one of a few dozen slaves within a mesh-network style arrangement. Assume that all units are (identical) microcontrollers within my control, i....
-3
votes
1answer
58 views

Using UART chip without programming control registers

Is it possible to use a UART chip without programming control registers? In other words, with Factory Default configuration? If yes, which ones? UART - SPI mode. I have examined the datasheet for ...
0
votes
0answers
43 views

ENE KB9012 SPI protocol reflashing with parallel port

The story in short: I have a laptop which got bricked with a failed BIOS update, and it's ENE KB9012QF A3 KBC's embedded flash contents needs to be reflashed. Solutions I tried, but didn't work: ...
0
votes
1answer
78 views

Unable to interface BeagleBone Green with MCP3008 ADC using SPI

I am unable to interface MCP3008 with BeagleBone Green. I am trying to set communication in mode 0 (CPOL=0 CPHA=0), the built in frequency in dts is set to 1MHz. Things I have tried: Enable device ...
0
votes
1answer
54 views

What is typical interface for WLAN chipset on a modern smartphone?

Taking into account nowadays Android smartphones support WiFi 802.11ac, what interface is being used for interconnecting of WLAN chipset with Application CPU? Is it SPI or some other? Is it OK to ...
1
vote
2answers
94 views

SD card initialisation problem with Atmega32u4

I have had this issue for the last couple of days and I cannot solve it. There are many similar issues I've read through online but they have not really worked for me. This project involves a PCB and ...
0
votes
0answers
60 views

SPI problem with STM32F103

I am trying to connect blue pill board(master) to arduino nano(slave) over SPI and read what I have sent on serial monitor. However I haven't been able to get SPI working. I run a timer to generate an ...
0
votes
2answers
23 views

Load vs LDAC pins

Alright, so I'm using a TLV5628 Octal 8 bit DAC with my stm32f4-Nucleo and I'm kind of confused about the difference between LDAC and Load. I am also trying to figure out the clock rate and I might ...
0
votes
0answers
46 views

EPCQL controller

I am trying to access in read and write my EPCQL-1024 from simple soft running in NIOSII. I have the Altera Serial Flash Controller I configured in QUAD mode connected from its avl_csr and avl_mem to ...
0
votes
0answers
37 views

ADS1299 - No toggling of DRDY in continuous conversion mode

Setup - We are using 8-channel ADS1299 on a custom board to acquire data from a signal generator. The custom board houses an ATMEGA328P-PU to acquire digital data with SPI connections to ADS1299. The ...
0
votes
1answer
56 views

Logic level converter for SPI [closed]

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
34 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
33 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
29 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 ...
1
vote
3answers
113 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
49 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
45 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
89 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
43 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
127 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
62 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
111 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
585 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
40 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
71 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
71 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
37 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
69 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
74 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 ...