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
0
votes
0answers
40 views

Not able to read from EEPROM 25A512

I have been struggling some time trying to read data from my EEPROM 25A512. I'm using a STM32F407IGT to access the EEPROM via SPI, but no luck reading or writing. The SPI is configured using CUBE MX ...
0
votes
0answers
32 views

How to pass a changing value to a graphic display using Arduino? [migrated]

I am using an EA DOGM132-5 graphic display, they also have provided a library for Arduino, so everything is nice and easy. The library has a function for easily passing a string to the LCD. ...
0
votes
0answers
27 views

pull-up resistor for MOSI pin of SPI communication

I want to know how to calculate pull-up resister values for MOSI pin of SPI communication,details are, 1.speed of communication 12Mbps. 2.master is controller (datasheet:R01DS0190EJ0130) and Slave is ...
0
votes
0answers
18 views

STM32WB - sensor data sent via BLE and saved on SD card (SPI)

I have an STM32WB and I am trying to get the data from some pressure, temperature and humidity sensors through DMA and send them to my Android via BT, while at the same time saving it as well on a SD ...
0
votes
2answers
62 views

How many devices can be daisy chained via SPI/I2C?

How can we determine how many devices can be daisy chained from a datasheet
1
vote
1answer
41 views

Is this the right convention for SPI modes?

The table shown here, under "Clock Polarity and Clock Phase" doesn't agree with my conclusions from table for SPI modes on Wikipedia. I'd like to distinguish between whether the one on the first like ...
0
votes
0answers
30 views

RGB/W/A/UV LED Strip manufacturer/reseller

Doe's some one know a manufacturer/reseller for RGB/W/A/UV LED Strip's ? Bonus would be controllable via WS2801/SPI Bus. I found a chinese company (http://www.cobledarray.com/sale-2630390-10watt-...
1
vote
1answer
45 views

Switch power on/off when SD card is inserted/removed in slot

I have ESP32 and I'm using it to read/write data from an SD card that is directly connected over SPI. This works fine. Now I want to switch on the ESP32 automatically by switching on the 3.3v power ...
1
vote
1answer
38 views

Wrong SPI Signals in Logic Analyzer

We're trying to send some informations above SPI. So we've coded a few lines of code for that purpose. But in the picture you can see, sometime data cannot be retrieved accurately. The original data ...
0
votes
2answers
49 views

Noise when using SPI LED driver on 2m cable?

I've made a 2 letter 7 segment display using this LED driver https://www.st.com/en/power-management/stp16cp05.html when I connect it with a 10-20 cm cable to my MCU board it all works OK, but fails ...
-1
votes
0answers
28 views

What are the interface controller components and its functions?

I am working now with different interface protocols. Before starting with anything I wanted to know the following things. What does an interface controller consist of? And how should a master and ...
0
votes
0answers
33 views

STM32WB55 connection to SD card with SPI FR_NOT_READY

I am very new at this and I don't understand a lot, so please be patient. I have an STM32WB55 to which I need to connect an SD module to store data from some sensors in SPI mode. I basically followed ...
0
votes
1answer
36 views

STM32 Spi receive problem

I'm trying to do simple SPI communication on STM32 Discovery, HAL lib is used. I'm trying to send some data via SPI1 and to receive same data on SPI3 (SPI1 = Full Duplex Master, SPI3 = Full Duplex ...
0
votes
1answer
22 views

ADN8810 control frequency from Arduino Due

Resurrecting a 3 year old project. I'm skilled software engineer but new to electronics so it's a bit of a walk in the wood at night without a flashlight. The pcb has a ADN8810 - 12-bit current source ...
3
votes
2answers
218 views

Efficient way of writing to flash memory without losing data

For my project, I am writing some code that gets some results and I want to store these results on external flash memory. The external flash memory in question is a MX25R8035F. I found that writing ...
0
votes
1answer
26 views

MCP3008/ADuM3154/ESP32 - Corrupted MISO Data Line

I have 3 MCP3008's being read by an ESP32 on the same bus isolated by an ADUM3154ARSZ. I was reading each pin on the MCP3008's about every 10ms. I seemed to have a lot of jitter and after averaging ...
1
vote
1answer
53 views

STM32F103C8 + W25Q64 USB Mass Storage Device

I have problems creating an MSC device. I made the following functions: ...
1
vote
1answer
37 views

Reading registers from ACS71020 over SPI

I'm trying to read registers from current-sensing chip ACS71020 connected over SPI. This is how I initialize the SPI: ...
0
votes
1answer
15 views

Touching MOSI on RJ45 connector cleans bus noise

I am using a STM32F767ZI-Nucleo development board from ST. i'm using it to communicate by SPI with a UM7 orientation sensor board. There a register to read in the FW version. Normally I only receive ...
1
vote
0answers
14 views

SPI Timeout Issue with CH341A USB to SPI board

I'm trying to use the Aceli CH341A USB to SPI board to communicate with addressable LEDs, but it keeps timing out after 32 bytes. The board is unfortunately not that well documented (in English). The ...
0
votes
1answer
48 views

DAC update rate vs ADC update rate?

I am building a system for ultrasonic distance measurement that implements CDMA coding access. Therefore, I am using DAC with 3 outputs for generation of three different signals and an ADC for ...
3
votes
1answer
141 views

How to setup the NCV7708B h-bridge/double hex driver?

I am working on a circuit to control an electromechanical display and settled on the NCV7708B Double Hex Driver (datasheet). I created a minimal setup on breadboard in order to test the chip: I ...
1
vote
1answer
48 views

How to send different data to three DACs at the same time?

I am building ultrasonic system that needs to generate three different signals for three transducers at the same time.The system is controlled via DSP. Currently I have a DAC with 4 outputs, but as I ...
0
votes
1answer
36 views

Interface USB and SPI flash (Boot PC from SPI)

Basically I am looking for a way to boot a PC from SPI flash. I'm talking about average AMD/Intel desktop mainboards. BIOS is already on SPI, but I need a way to also put the kernel and maybe initrd ...
0
votes
0answers
58 views

How to synchronize TI high precision ADC and DAC via SPI?

I am working with DAC80504EVM and ADS8920BEVM-PKD from TI. I am trying to design a system which uses TMDSEVM6657EVM processor board to communicate with these converters via SPI. However, I am trying ...
0
votes
1answer
53 views

STM32F4 : SPI communication fails when Polarity is LOW

I am testing out SPI communication between two STM32F429ZI DISC 1 boards. I downloaded the example codes for my board from STs website and it works. User has to press a button in Master board to ...
0
votes
0answers
25 views

Drive 50 SPI oled displays with a single ESP32

i need for a logistics project to use A LOT of Oled Displays in the mezzanine warehouse to show some details about the items. Now, i want to use this base hardware and build around them the needed ...
1
vote
1answer
40 views

How to recieve data over SPI as a master device?

Working on Serial data protocols using STM32 (bare metal coding, not using any HAL libraries). So far I've configured the board to act as master and send data to an IC and also configured two ...
0
votes
1answer
36 views

How to convert 8080 type 8 bit parallel interface to I2C interface?

I have a 8080 type 8-bit parallel interface LCD. Is it possible to convert it to I2C interface?
4
votes
1answer
88 views

Understanding “stereotyped” noise on MISO line

Just getting started with EE, so bear with me. I've got a bare-metal STM32G474RE communicating over SPI (~5MHz) with an LSM9DS1. I've got a probe hooked up and capturing the communication and it seems ...
0
votes
0answers
23 views

How do I control the latch signal for the TLC5958 LED driver?

I would like to drive 512 RGB LEDs with individually controllable brightness. My plan is to 8-way multiplex them so I would like to use an LED driver that is designed for multiplexing LED displays. I ...
1
vote
1answer
77 views

ESP32: Power rail transient when using SPI on battery

Working on a small datalogger project using an ESP32-WROOOM that involves an analog sensor signal being recorded and saved to SD card. Having a big power rail spike issue that has been isolated down ...
0
votes
1answer
34 views

MCP40821 DAC not responding to AVR

I'm trying to interface with an MCP40821 using SPI from an AVR. Using these pin maps: ...
0
votes
1answer
43 views

Long Range Bus for Raspberry Pi

I wish to measure the rotational speed and electrical current used of/by industrial components. Those components are driven by strong electric motors. The solution should be cheap and fast to ...
0
votes
1answer
151 views

ISP programming W25Q32 SPI flash memory chip

I have Sofi SP8 programmer for serial flash memory, with ISP interface for In-System programming. I want try it to read/write memory chip WINBOND 25Q32BVSIG-1246 on board, without desoldering. Manual ...
0
votes
2answers
99 views

Sine Wave generator with DAC

i want to create a 40KHz sine wave with a STM32 Controller and an external DAC. I created my SPI connection to the MCP4922 and sending a sine wave table to it. The init function of the SPI interface ...
0
votes
1answer
38 views

Bitwise operation for MCP4922

I want to use the MCP4922 with my STM32F411RE microcontroller. I am working on the data that will be sent over SPI. A write command to the MCP4922 consists of 16 bits. First 4 bits for the ...
3
votes
2answers
272 views

SPI SS line gets raised to ~3.7V on custom PCB

On a custom PCB design I did recently, I ran into an issue. The basic concept of the PCB is connecting up to ten NFC sensors (via SPI) through USB-C connections (not using actual USB communication, ...
0
votes
3answers
121 views

Best approach for sharing SPI bus across multiple sensors

I'm designing a few PCBs for a project: Microcontroller PCB (SPI master) Sensor PCB, where each sensor PCB has several SPI slaves on it. In a full system, there would be 3 sensor PCBs directly ...
0
votes
1answer
123 views

How do I properly level convert between microcontroller and 3.3V SPI pins

I am trying to create a PCB that interfaces a type K thermocouple with a microcontroller (STM32F303K8) using kicad 5.0.0 I previously sent the PCB to JLCPCB for fabrication, but now i'm noticing ...
2
votes
0answers
50 views

Errors in SPI communication with SD card due to heat

Given is a PCB with a STM32L432KCU6 and a microSD card connected to it via SPI at 40 MHz in SPI Mode 0. The communication is protected by CRC which is calculated by the microSD card on the fly. When ...
0
votes
0answers
55 views

I am not able to get any response from ST25RU3993 via arduino SPI

I ran out of clues of what could be stopping me from driving the ST25RU3993, hopefully I can get some useful directions from here... I am trying to drive the ST25RU3993 Eval board using SPI, with my ...
0
votes
3answers
100 views

Can the length of a wire impact SPI transmission?

I'm trying to wire a DotStar LED strip to another one. I have soldered on both ends of the added strip: VCC to VCC GND to GND CO to CI DO to DI I'm using SPI to control the LEDs. For some reason, ...
0
votes
4answers
118 views

getting access to more UARTs on micro controllers

I will need to interface a micro controller to some breakout boards that only talk through UARTs, so confronted with the eternal 'need more hardware UARTs' problem. I have seen 2 kind of solutions ...
1
vote
2answers
75 views

No CS pin available on components (external ADCs) with SPI interface to choose one

The usecase is the measurment of 2 bipolar voltagea of max -+10. I use Arduino UNO (Atmega328) and two ADC components (AD7893ANZ-10), datasheet available on https://www.analog.com/media/en/technical-...
1
vote
1answer
90 views

Is this an SPI protocol?

I'm trying to control a 2.4GHz remote for LED panels. Inside there is a keyboard decoder chip and an RF chip, the markings don't return any immediate results. I've decoded the data with a logic ...
0
votes
2answers
87 views

Using SPI to manipulate Flash Memory (Code in C)

for a couple of days i have been trying to write a C code that writes to a flash memory via SPI. I already have a code that writes characters into flash. Now i wanted to expand on it and write integer ...
1
vote
1answer
100 views

EEPROM returns 0 while trying to read anything

I'm using a CC2652r to try to read and write to an MX25R8035F EEPROM using SPI. I'm using the build in SPI driver to try and communicate with the EEPROM but while the drivers says it succeeded the ...
2
votes
2answers
119 views

MSP430 multiple slaves in SPI communication

I want to make an MSP430G2553 communicate using SPI with a 7-segment display and with another microcontroller MSP430G2452. So the MSP430G2553 would be the master and both the 7-segment display and ...
0
votes
0answers
40 views

STM32f107 SPI in receving mode

I configure my STM to receive data from SPI. The data/CLK are available on MOSI, CLK pins (checked by oscilloscope) but I received 0 value. what is my mistake? ...

1
2 3 4 5
24