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 ...

learn more… | top users | synonyms

0
votes
0answers
21 views

ENC28J60 connected to Arduino on SPI

I have an Arduino Uno, that has been connected using SPI to an RC522 rfid board and an ENC28J60 ethernet board. SS1 for ethernet is port 8, and SS2 for RC522 is port 10. I can use the RC522 without ...
0
votes
0answers
41 views

Is horting SPI to test PIC24 communication damaging in any way?

I have a question concerning SPI (don't we all) and I was hoping that someone can help me out before I do something stupid (which is usually my favourite way of learning, but I only have one board so ...
0
votes
1answer
56 views

Is using SPI communication for 3 meters length still tolerable?

I'm trying to communicate my master board to slave, with SPI port. Our mechanical team says that it will be 3 meters long. Is it still tolerable? how about its noise? Thanks
0
votes
1answer
52 views

SPI and ADC timing diagram

I am working with ADC 11040K with 1 kHz (1/1kHz = 1ms conversion time) sampling frequency. I am confused with timing diagram of its data conversion. As you can see the image, which duration is equal ...
2
votes
1answer
61 views

Options for video development

What are my options for video development? I am talking buying a development board, then translate that to custom pcbs and hardware. With the rise of smart phones we have seen a plethora of hardware ...
0
votes
3answers
98 views

SPI using one wire

I need to communicate between a transmitter and a receiver using visible light therefore i have only one communication channel. so i was wondering if SPI interface can be implemented using one-wire ...
0
votes
0answers
33 views

How is data being sent to this Dot Matrix LCD? Can I just read one of the pins on the board using SPI?

I'm good with programming but am getting better with electronics. Can you guys easily tell how data is being sent to my LCD? I think it's using SPI but am not sure. I built a music/video/network box ...
0
votes
0answers
47 views

STM32, simulating SPI/I2S with GPIO

I'm trying to simulate SPI with GPIO on STM32F4. The task is to read PDM microphone data. I tried to do this by: Generate 1 MHz clock, using STM32 TIM14, on GPIO PF9, as SCLK in SPI protocol When ...
1
vote
2answers
48 views

Cannot enter programming mode ATMega328p

I'm using an ATMega328p Xplained Mini development board. I was able to program it using Atmel Studio 7, being new to AVR programming I accidentally set the RSTDISBL fuse to 0 (has a default value of ...
0
votes
2answers
97 views

STM32F407ZET6 and nordic nrf24l01+ communication with interrupt driven SPI

Currently working on STM32F407ZET6 MCU. I am trying to generate an interrupt based SPI communication with nordic nrf24l01+ chipset. The MCU is in Master mode. I am able to establish an SPI ...
0
votes
3answers
112 views

Optocouplers with non-inverting logic

Here is the setup: I'm using the Arduino Mega's SPI functionality to send signals to multiple DACs. For digital isolation, I am considering the HCPL-2631 or the ACPL-064L. The problem with these two ...
0
votes
2answers
118 views

Error initiating microSD card in SPI mode

I am trying to interface a 32 GB microSD card with PIC32MX795F512L using SPI communication. SPI communication is working fine as I have tested it by shorting the Data Input and Output line and ...
0
votes
0answers
30 views

SPI using PIC32MX360F512L

I am using SPI channel 1 as the mater and channel 2 as the slave for SPI on PIC32MX360F512L on explorer 16 board. I have made the connections between SDO1 and SDI2, SDI1 and SDO2 , SCK1 and SCK2 , SS1 ...
0
votes
1answer
37 views

wireless I2C/SPI communication over XBEE with multiple slaves

Designing a device for vibration condition monitoring, using multiple wireless accelerometers. Intending to have an arduino as the main controller and peripheral accelerometers sending the vibration ...
1
vote
2answers
59 views

How FPGA firmware writes in flash?

In some boards, like Papilio, spi flash connected only to fpga. As I can understand the firmware writes to flash through fpga. How does it works? Doesnt fpga need firmware first to work? If so, how it ...
1
vote
1answer
50 views

SPI Read Function of STM8S

I am converting arduino-nrf905 library for stm8s. There is one spi function on the arduino library, it is SPI.Transfer(uint8_t reg). This function can write and read spi. But, there is two function on ...
0
votes
2answers
78 views

What is the program flow to get multiple SPI ports to run at the same time?

What is the program flow to get multiple SPI ports to run at the same time? I am a linear thinker so it's hard to think of doing more than one task to completion at a time. I need to read two 24-bit ...
0
votes
2answers
44 views

SPI Isolation with Open Drain MISO

So I am trying to interface a slave device to a master uC through an ADUM4151 SPI Isolator and am getting confused on where I need pullups for the MISO line as I see it a few ways in reference ...
0
votes
2answers
45 views

Regarding SPI modes

I have doubt on SPI modes. from online source i got this image from this image, for modes 0 & 3 Sampling edge is Rising edge and Transmit edge is Falling edge. Is this the same case for SPI ...
1
vote
1answer
40 views

Can a PIC32MZ SPI Have Multiple Ports Transmitting at the same time?

Can a PIC32MZ have multiple SPI ports running at the same time? If so, how? The problem is I have two ADS1675s that are 24 bits each with an serial clock maximum of 40MHz. I need to make 1M ...
0
votes
1answer
41 views

Which interface to choose SPI MIPI or Parallel?

I'm trying to connect the AR sensor module (AR0331) with the IMX6 processor and the problem is the camera uses a HiSPI & parallel line. Similarly, there is MI-PI (CSI) and Parallel line in the ...
1
vote
2answers
57 views

Board to Wire Connector Type used between Small Display and Main PCB

I'm in the process of designing a PCB/Prototype and looking at different types of board-to-wire type connectors. In particular, I want to connect an SPI OLED display to the main PCB. It needs to be ...
0
votes
0answers
32 views

How to interface PIC16F887 with NRF24L01+ Wireless Tranceiver in MPLAB XC8

I have got two PIC16F887 and two nRF24L01 Wireless Transceivers, please can anyone give me a link or put me through i how to make them communicate with each other in mplab xc8. All i know is ...
0
votes
1answer
47 views

spi flash (N25Q) blocks read command

I'm using CC2640, and N25Q128A (Micron Serial NOR Flash Memory). SPI is working well, erase and write commands are changing the status register so busy flag rises and i'm waiting until it's clear. ...
0
votes
0answers
65 views

Initialisation of the LCD HY28B (ILI9325C)

I'm trying to figure out how to make my litle holliday project work. I'd like to display stuff on my HY28B, I'm using an STM32 to control it. I tried the example code given by Haoyu electronics but it ...
2
votes
1answer
149 views

Abracon RTCC - no startup oscillation, no SPI

I'm trying an Abracon AB1815 Real-Time Clock/Calendar (SPI interface) in a "fun" QFN16 package. It has a 17th VSS pad which is grounded. It is on a QFN17-to-DIP expander for prototyping at 1.8v. I ...
2
votes
2answers
37 views

Manual SPI device select

From another stackexchange question it should be possible to have the SPI device select pin always asserted given that the SPI bus only has one slave. I have other interesting features multiplexed ...
0
votes
0answers
37 views

SPI bus, is two active devices with shared MOSI with separated MISO possible

I have two SPI ADC chips. I would like to initiate a reading on both of them at literally the same exact time. Is this scenario feasible with SPI? Hardware is configured like normal except MISO of ...
0
votes
1answer
52 views

What is the difference between MibSPI and SPI?

The following text is from the TI TMS570LC4357 microcontroller features overview: Five Multibuffered Serial Peripheral Interface (MibSPI) Modules MibSPI1: 256 Words with ECC Protection ...
2
votes
1answer
95 views

Beagle Bone Black - Error when finding update packages: sudo apt-get update [closed]

I am very new to using any micro controller and I wanted to use an MPU-9250 sensor with the Beagle Bone to give me serial data either through I2C or SPI. Whenever I type ...
0
votes
1answer
61 views

SPI consumes more power than I2C?

Does anyone know if SPI typically draws more current than I2C? The reason I'm asking is that I'm playing with the LIS3DH accelerometer and driving it with an Arduino. When I2C is used, the current ...
1
vote
1answer
20 views

tCHSL SPI timing

I was going thru the datasheet of Micron SPI Flash. The timing diagram has tCHSL : S# not active hold time (relative to CLK) What exactly is this? According to the timing diagram, this is measured ...
0
votes
0answers
38 views

Unable to determine why clock signal is being pulled down

I have a clock signal coming out of an SPI source. This source has an output resistance of 400 ohms at 8MHz which was measured and output voltage of 1.9V peak-to-peak. The clock signal travels to a ...
0
votes
1answer
122 views

Setting up SPI between a STM32F4-Discovery Board and a MCP4151 Digital Pot

I'm currently working on a project in which I'm trying to interface a MCP4151 Digital Potentiometer with the STM32F4-Discovery Board using the Mars Eclipse IDE. I have downloaded and included the ...
2
votes
2answers
93 views

PIC's MSSP SPI = oddity, but bit-banging works?

I'm trying to get a PIC16LF1825 master to communicate with an ADXL362 slave over SPI at 1.8v. First I tried the MSSP (PIC's serial port) configured for hardware SPI @4MHz FOSC, 1MHz SPI rate ...
0
votes
0answers
48 views

ILI9163C interfaced with PIC32MZ controller : No image display

I am using ILI9163C LCD interfaced with PIC32MZ controller EC starter kit using SPI communication. I was able to display the image on LCD with Arduino using libraries Adafruit-GFX-Library and ...
0
votes
1answer
45 views

Harware comms buffer to protect SPI

Context The project is using the SPI output of an Espruino Pico to send messages to an LED strip controller. The issue is that occasionally the Pin is damaged. Using an oscilloscope has shown that ...
0
votes
0answers
44 views

Confusion about serial operation of CS4344 DAC, what is MCLK?

After repeatedly reading through the datasheet of the CS4344, I am having trouble fully understanding the purpose of the MCLK pin in serial operation. In my research I have found that MCLK pins are ...
0
votes
1answer
48 views

8051 ADXL SPI interfacing

I am trying to interface a ADXL345 to 8051 - AT89C51RC2 through SPI interface. I have used the below code taken from here: ...
3
votes
3answers
86 views

Can one tri-state pin drive two SS pins?

This is how i see it; State H: SS out is High, Deselecting SS 2, turning off Q2 and on Q1, which grounds SS 1, turning it on. State L: SS out is Low, turning off Q1 and grounds SS 2 through Q2. SS 1 ...
0
votes
2answers
43 views

SPI- bus length?

How does the SPI bus length effect the communication. I found that if SPI bus length is increased, it does not communicate at all. How does the length effects the communication? Thanks
0
votes
1answer
33 views

Microcontroller to Beaglebone data handling

I have an STM32F0 microcontroller wich is controlling an RS-485 bus interface. The sensors on this bus are providing 220 bytes of data every millisecond. I want to get the data from the ...
2
votes
1answer
70 views

Why ATMega328 can't run SPI at full clock speed

Two part question: In the datasheet on page 168, the best SCK frequency one get get on SPI is \$\dfrac{f_{osc}}{2}\$, why can't this be \$f_{osc}\$? Also from the datasheet: "When the SPI is ...
1
vote
1answer
125 views

SPI and pull-up resistors

I have a breakout that comes with two 10kOhm resistors: one on the SDA and one on SCL. The chip takes a max of 3.6V. AFAIK, I2C needs pull-ups on its pins, but could SPI be used on this module? I'm ...
-1
votes
1answer
67 views

STM32 SPI2 doesn't respond correctly

I have a problem with the SPI2 on stm32f4vg board , I have a code that is working perfectly for spi1 , but when I change the code to run on spi2, the code doesn't respond here is the original code ...
0
votes
1answer
78 views

SPI over long distance

I want to connect chips that use SPI protocol to communicate (To be specific those chips are ws2801) the distance may reach 100 meters. How can I solve this issue? through a few days of searching ...
0
votes
2answers
32 views

RFM only works if i touch power supply line

I have a small system with a ATtiny84 and an RFM12B module that transmits data. The thing is it only transmits when i touch both GND and +VCC.. no matter what component it is on. Do i need mere caps ...
2
votes
1answer
51 views

Dual (Shift Up and Shift Down) SPI Level Translation

I'm faced with an interesting challenge: I'm using a microcontroller with 3.3 V logic, but I need to use a SPI (4-wire) interface with parts operating at three logic levels, namely 1.8, 3.3, and 5 V. ...
3
votes
1answer
379 views

Correct SPI Configuration?

I'm still not entirely clear on TTL, so please, forgive my ignorance in this. I have a sensor and a microcontroller. The sensor is a BMI055 Gyroscope and accelerometer. The microcontroller is the ...
1
vote
2answers
66 views

ADC SAR missing codes

I at the moment using the LTC2364-16 ADC. I notice some linearity issues in my application for specific ranges of the ADC conversion. I have a sine wave as my ADC input. The linearity issues can be ...