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

SPI implementation stuck on “while(!spi_is_tx_empty(WINC1500_SPI));”

I'm currently implementing a driver for the WINC1500 to be used with an ATMEGA32 MCU and it's getting stuck on this line of "while(!spi_is_tx_empty(WINC1500_SPI));". The code builds and runs but it ...
1
vote
1answer
53 views

MCP25625 SPI MISO Not Responding

As per title, I'm trying to send a simple 'READ' (0x03) command to the device and get the contents of the CANCTRL register (0x0F). I even moved past our project board and bought Microchip's ...
0
votes
0answers
24 views

Can't write anything on QUADSPI data register (QUADSPI_DR)-stm32l452

I am using stm32l452 and toshiba 4Gbit flash ic, and I am trying to write and read data from flash via quadspi. I achieved reading flash and manufacturar id from flash(with commands, not with using ...
0
votes
0answers
30 views

SD card sharing between atmega2560 and sim800

I am designing a data logging system that uploads its data via 2G, and downloads new firmware from a server to the SD card, which the mcu boots from. So far, I have achieved Over The air update by ...
0
votes
0answers
30 views

FreeRTOS and SD card interface over 4-wire SPI [closed]

I'm planing to use an ATSAM_E5 MCU on my new project and I want to use a 4-wire SPI to interface the MCU with the SD card (CLK, SS, MOSI, MISO), and not to use the "SD/MMC interface" which has 4-bit ...
2
votes
2answers
66 views

Getting started with AVR programming concepts

I am trying to get started with programming the AVR. I have chosen to use Atmega328P (which is in my Arduino Uno). When I did web search regarding the initial steps for learning the AVR programming, I ...
1
vote
1answer
54 views

The MOSI pin of SPI1 on STM32L073 is not giving output without pull-up resistor

I am working on SPI communication with STM32L073. I download the example program of ST to MCU but SPI1 did not work. So I looked at the SCK pin of MCU with oscilloscope and it works fine. But when I ...
0
votes
0answers
32 views

MCP23S17 not outputing the desired output

I have a MCP23S17 GPIO expansion connected to my raspberry pi. I am using it to switch mosfets that controls multiple LEDs I am using this RPIMCP23S17 python library upon trying its example code that ...
0
votes
0answers
36 views

AD5231 Digital Pot programming/ Hardware issue

I am trying to use the AD5231 Digital potentiometer in a school project. However, I am having a lot of trouble with it. It's supposed to be connected to raspberry pi (model 2 B+) and I've trying to ...
0
votes
0answers
35 views

Problem with SPI communication to TDC-GP30 Ultrasonic Flow converter

I'm working in TDC-GP30 an Ultrasonic Flow converter chip. Which can be directly hooked up with ultrasonic transducers to get digital output. But the problem is according to the datasheet the chip can ...
0
votes
1answer
28 views

Testing QSPI Setup time and Hold time

I am having a QSPI Interface (operated in SDR mode) from this QSPI chip to MCU chip. QSPI lines : QSPI CLK QSPI CS QSPI_IO0 QSPI_IO1 QSPI_IO2 QSPI_1O3 VSS VDD I am trying to validate the QSPI Setup ...
0
votes
0answers
55 views

STM32 - HAL SPI receive interrupt not entering EXTI callback

I designed a breakout board for the STM32F401CEU6. (Schematic attached) I am using it to receive data from an ADC chip over SPI. The ADC chip has a data ready output which should be used as an ...
0
votes
0answers
20 views

Sending Out Incoming SPI Data Through UART- PICMX250128B

I am trying to send out data(via UART) I receive from a 24-bit external ADC chip(via SPI), the ADC notifies the PIC 32 when data is ready so I am using an external interrupt handler(EXT INT). The ADC (...
5
votes
1answer
537 views

STM32F0 SPI--what am I missing?

I'm trying to send SPI data to a MAX7219 from an STM32F042 (the protocol is one-way without MISO). I must be missing something very obvious. With the code below, the only visible side effect is the ...
0
votes
0answers
12 views

How to read from the FM25V20A-PG memory device using spi?

This is my first time working with SPI. I am trying to write and then read two bytes of data from the FM25V20A-PG external memory. The data sheet for the device can be found here: https://www....
0
votes
0answers
19 views

Unable to receive packets on ENC28J60

I am using a CC1352P1 launchpad from TI and trying to connect it to ENC28J60 for ethernet. I am able to transmit messages to my computer such as an ARP request, and the computer recognizes it and ...
0
votes
0answers
48 views

Problem writing to EEPROM in Allegro ACS71020 through SPI

I can't write all the EEPROM registries in the ACS71020. Before every writing I write the unlock code to 0x2F. Only the first writing takes place (register 0x0B), the others do not. In the datasheet ...
0
votes
0answers
31 views

Identifying type of serial connection interface

I am having an FPC1020A fingerprint sensor which according to its specifications offers an UART and an USB interface. The images below show both interfaces: As you can see in the second picture the ...
0
votes
0answers
27 views

ESP32S: More than two SPI channels possible?

In a test with an ESP32-CAM, I was successfully able to use SPI with pins 2, 12, 14, and 15: ...
0
votes
1answer
69 views

Micron NOR unused pins have pull-ups. Any danger just leaving them there?

I have a board designed for a dual-die Micron MT25QL512 QSPI NOR flash. These parts are in short supply, but the board fabricator had some single-die MT25QL128, and used them instead. The single-die ...
0
votes
0answers
34 views

How to connect an SPI angular sensor (AVAGO AEAT-9000-1GSH0) with RS485 transceivers to an AVR microprocessor?

I need to connect an AVAGO AEAT-9000-1GSH0 angular sensor to an ATMEGA32U4 processor. I designed two versions: one using IC-s, one using resistors. I do not now witch of my two designs is better (or ...
0
votes
0answers
29 views

DSPIC33 - Simple Code for SPI

Unsuccessful, we have been trying to: Using our DSPIC33, set up the SPI slave device which expects mode 0 (clock polarity = 0 and clock phase = 1. Remember that microchip devices let you set clock ...
0
votes
1answer
41 views

STM32F407 Discovery Board DCMI to SPI Output [closed]

I am currently attempting to use a STM32F407 Discovery board to display images captured with a OV2640 CMOS detector on a ILI9341 2.2" TFT SPI LCD. My goal right now is to take a single snapshot and ...
0
votes
1answer
40 views

MAX7219 led matrix prints unwanted artifacts when it is powered up

I’ve got Led matrix 32x8 which is driven by MAX7219. Like this: MAX7219 Dot Matrix Module Microcontroller 4 In One Display with 5P Line When I power it up, I can see different glitches. How to power ...
0
votes
2answers
43 views

How to connect 3 slave devices to one master if there are only 2 chip select pins

I need help figuring out how to interface the microcontroller Teensy 4.0 to three ADCs via SPI. The microcontroller only has 2 chip select pins according to its spec sheet. How can I connect to three ...
0
votes
1answer
61 views

Initializing to MicroSD Card with Arduino produces error code 0x43, 0xff

I am trying to interface with a 32GB MicroSD card with an Arduino Uno, but the code consistently fails at the initialization stage. Below is my schematic (sorry for the horrendous schematic, I'm not ...
0
votes
1answer
43 views

Quad SPI Frequency

I am using a QuadSPI interface in MPC5606S Can someone help me how to arrive at the maximum and minimum clock freq of SPI and IO lines?
0
votes
1answer
78 views

SPI broadcast: talk to many slaves

I need to do similar things to this question on Stack Overflow: "Using Serial Peripheral Interface (SPI) to talk to several slaves simultaneously " I have no confirmation if it works. Has someone ...
0
votes
0answers
26 views

Inconsisent SPI data transfer with MAX31856

I am using an Arduino to communicate with a MAX31856 on a custom-built PCB. The Arduino is loaded with this library, which seems to be working correctly. Unfortunately the data being read by the ...
0
votes
0answers
31 views

ATmega328p: Does SPI conflict with timers TC1, TC2 or interrupts PCINT2, PCINT0?

My code - based on my library MultiTrans - uses timers TC1 and TC2 as well as interrupts ...
0
votes
1answer
35 views

Unable to read back registers via SPI on the ENC28J60 Ethernet chip

I am using a CC1352P1 Launchpad from TI to connect with an ENC28J60 SPI-Ethernet bridge chip. I wanted to confirm first that I am able to get a response from the ENC28J60, so I tried to write to a ...
0
votes
1answer
40 views

DRV8889 SPI Commands

I've been having some issues diagnosing the relationship between writing to the registers through SPI commands and stepping the motors. That is, it seems like when I write SPI_STEP=1 (and STEP=1) to ...
1
vote
1answer
99 views

ESD SPI/ISP bus protection

I am designing a board based on the Atmega328P microcontroller. For this controller there is an ISP connector for programming. This connector has the following pins: MOSI / MISO / RST / SCK. There is ...
1
vote
0answers
57 views

MCP23S17 IOCON register values do not update correctly

I am currently testing the functionality of a Microchip MCP23S17 SPI 16-bit GPIO port expander for an application with a number of external inputs & outputs. The initial configuration of an ...
0
votes
1answer
19 views

LSM303CTR 3-wire SPI and I2C - conceptual problem

I'm trying to interface LSM303CTR e-compass from ST-microelectronics with microcontroler. Due to design limitations I have to use 4-wire SPI. This MEMS device has option to switch beetween 3-wire ...
0
votes
1answer
80 views

STM32F103 SPI Pinout Problem

I am currently working on a project with LoRaWAN technology using STM32F103C8T6 microcontroller. For LoRa I am using SPI in Full-Duplex Master mode (spi1 specifically) and in CubeIDE when you activate ...
2
votes
1answer
66 views

What is need of transmission modes in Serial Peripheral Interface

I am going through SPI transmission for implementing in FPGA, While researching, In few articles such as https://en.wikipedia.org/wiki/Serial_Peripheral_Interface and this https://web.archive.org/...
0
votes
1answer
52 views

.96 inch TFT with ST7753 and AVR - can't draw individual pixels

I bought this from aliexpress: https://www.aliexpress.com/item/32859042892.html It seems to be a good display, even a bit higher res, than advertised, however, I'm having trouble doing anything more ...
3
votes
1answer
2k views

CMOS Flash vs SD: Can I put a Gamecube Memory Card in an SD reader?

Backstory I've decided to run "Homebrew" on my Gamecube (and writing Homebrew for n00bs to document the process). Unfortunately, it seems that there's no way to do this without buying special ...
1
vote
0answers
43 views

ENC28j60 ethernet interfacing with efm8lb1 help needed

I am a newbie to ethernet controller. I went through ENC28j60 documentation But I couldn't find a proper example similar to my project. EFM8LB1 will read some sensor data (for example sensor data '...
0
votes
0answers
33 views

How to select the compatible USB to SPI IC Programmer?

I built an image of Coreboot (open source firmware) and wanted to flash it on the Minnowboard Max. SF100 is compatible to do the job (as described in this article). However, I want to be clear on the ...
0
votes
0answers
42 views

Issue with SPI read and SPI speed

I want to read out the content of a NAND Flash and I decided to do this via SPI. I have a Bus Pirate to communicate with it. I modified a Python script to read out the content and it works to a ...
0
votes
3answers
112 views

SD card with STM32 in memory-mapped mode

I need an external flash in STM32H743 MCU and it must work in memory-mapped mode (it's necessary for LTDC display controller). Can I use SD card instead of usual flash chip in this case? It will be ...
2
votes
2answers
164 views

SPI signals show overshoot and ringing - does that affect reliability?

Here is MISO in yellow and MOSI in purple. I thought I would use a ferrite bead in series of each signal to filter out the noise. I will be making hundreds of these boards. I'm not sure it is worth ...
0
votes
3answers
51 views

Controlling 10k ohm digital potentiometer IC using NI DAQ USB6001

I am totally new to the DAQ system; used to work on Arduino. For the requirement of a project, I have to control a digital potentiometer of 10k ohm (AD5245) using NI DAQ USB 6001. How do I ...
2
votes
1answer
121 views

STM32: SPI hardware to implement custom serial interface

I want to implement SDLC communication on an STM32 (assume I can pick any one up to M7) using the existing HW in it. SDLC is a full duplex synchronous serial interface. In my case, it uses ...
0
votes
0answers
55 views

STM32 SD Card SPI no response

I am using an STM32F0 to communicate with an SD card over SPI. However, when I send CMD0 after performing the required initialization, the SD card does not respond with anything on MISO. What's ...
0
votes
3answers
104 views

Connecting 2 external PCBs with a 1m cable

I would like to connect 2 PCBs. On each PCB there is a MCU and each MCU is able to send and receive commands from the other one. Also, PCB1 should supply power to PCB2. The 2 PCBs are separated by ~...
-4
votes
1answer
53 views

Why CMD17 cannot return 0xFE?

I have a problem with CMD17 when I send this command and wait response I always get first response 0x00 but when I am waiting at 0xFE it cannot get it. In debug mode I get 0xFE. This my code for ...
2
votes
0answers
35 views

SPI SDHC card will not come ready, Regular (older) SD card works fine

I am trying to make an SPI interface on a 186 Microprocessor using bit banging and a GPIO to control the CS, SCLK, MOSI and reading in the MISO lines. Mode 0. I cannot get SDHC (version2) cards to ...