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
2answers
70 views

Isolate microcontroller from board and use other one

The attached circuit block diagram shown in the rectangular box is my development board. It has microcontroller 1, which communicates with a SPI slave device (4 SPI line + 3 IO). 3.3V power goes to ...
0
votes
1answer
44 views

How to interface Si8902 with ATmega128rfa1?

The ATtmega128rfa1 works as master and Si8902 works as slave that is okay. But when a request is given Si8902 takes 8us to reply back with the ADC data. How can master wait for 8 us. How to ...
0
votes
1answer
117 views

Wrong signal on MISO line

I am trying to setup communication between my MCU and slave chip but here are the results from logic analyzer: I have basic knowledge of SPI protocol but as far as I know, data should be sampled at ...
1
vote
1answer
27 views

Can I use ATtiny SPI and still be able to do in-system programming?

I'm building a cost sensitive device that requires SPI and a single analogue comparator. Looking at the spec, ATtiny20 or ATtiny48 would fit the bill. The requirement is to be able to program it in ...
1
vote
1answer
64 views

STM32 HAL SPI Remap Single Pin

I would like to know if it is possible to remap a single pin of a multi-pin (SPI) peripheral? For instance, I have a STM32F107 and I want to use UART4, SPI3 and Ethernet. PC10 = UART4_TX - Remap ...
3
votes
1answer
72 views

SPI bus termination and pull-up resistors

My microcontroller (ATMEL series) needs to communicate to a slave device using SPI protocol. I am designing the hardware. The maximum SPI bus speed is 1 MHz. The distance between the master and slave ...
0
votes
1answer
45 views

Differences & Similarities between I2C & SPI Analyzers [closed]

I am learning about I2C and SPI analyzers and want to know about the differences between the two. What is the difference between their functionality and what are the similarities in these analyzers, ...
-1
votes
1answer
48 views

Can I use external clock as SCK in master mode (dspic33e)?

I am using a dspic33ep512mc806 and I want to use two different SPI modules with the same clock (not only at the same frequency but one clock shared by both modules) and both modules have to be master ...
0
votes
1answer
19 views

AVRISP. How to choose SPI frequency?

Yes, yes, I know that it must be between 1 and 4 clock cycles of a target device. But... We don't know it if clock is provided by internal rc generator or external quartz. So is there any possible way ...
0
votes
0answers
45 views

STM8S - Connect to ADXL345 Acceleration Sensor via Hardware SPI

After software SPI didn't work out i now try to connect to the ADXL345 acceleration sensor via hardware SPI of the STM8S103F3. But, of course, problems appeared again, why not. This is my SPI-Init ...
0
votes
1answer
44 views

SPI Half-Duplex for the Holtic HI-3593 ARINC429 IC

I am having some problem understanding half duplex SPI. My understanding of SPI is when you send a byte you read the garbage byte, and if you want to read a value you send a dummy byte to read the ...
-1
votes
0answers
12 views

What kind of ports are on this PCB? (Kangaroo Pocket PC) [migrated]

| Overview Please refer to the teardown of the Kangaroo mini PC (below.) I am interested in finding out as much as I can about this board and the ports associated with it. Any details/specifications ...
0
votes
0answers
16 views

Creating a terminal windows on PC to control Nios-II in FPGA to send commands to SPI slave

To ease testing of slave devices e.g memory devices, ADCs e.t.c is it possible to create an application where one has a terminal window open on PC from which one can write specific 8 or 16 bit words ...
0
votes
0answers
14 views

Atmega328P - SCK pin [migrated]

I am using Atmega328p with arduino bootloader in a project. There happens to be an LED connected on SCK pin. During Start (or restarts), the LED appears to flicker a couple of times (3 times to be ...
0
votes
1answer
47 views

Multiple SPI devices with different logic levels

I'm going to use one of the PIC32MX795F512L SPI peripherals (master), 1 to 4MHz, to communicate with multiple devices (slaves): Wi-Fi module MRF24WG0MA (3.3V); uSD card (3.3V); 9 modules with ...
0
votes
0answers
38 views

ESP822 and high speed external ADC

I'm playing with ultrasound signals, and with ultrasound images. Data was acquired using either a Redpitaya board or a bitscope micro. Now, I'm trying to sample my signal at ~2Msps, through bursts: ...
-1
votes
0answers
33 views

SPI protocol master 32 bit and slave 16 bit

I am using a 32 bit SPI controller (MicroZed board Microcontroller) as the master and my slave is a 16 bit IC (custom IC) that I need to configure in a memory mapped I/O fashion. These are my ...
0
votes
1answer
48 views

Atmel SPI Serial EEPROM Writing Error - Page Write?

I'm using this EEPROM: Atmel AT25640B SPI EEPROM DATASHEET It seems pretty straight forward to operate and I've followed the datasheet closely when coding my driver. I seemed to have some success ...
3
votes
1answer
68 views

SPI: How does communication work with a device that has multiplexed SDO and SDI signals?

Yes this question is related to MCP4131 which is a 8 pin digital potentiometer. I have never seen/heard/used multiplexed SPI before so am trying to clear some confusions. The datasheet shows ...
2
votes
1answer
58 views

SPI to Numerous Chips on Different PCBs with FFC Cables?

I want to drive numerous chips on several different PCBs with SPI from a microcontroller over FFC cables. Here is a crude diagram: UPDATE: Green wires are ground scheme I have never attempted such ...
0
votes
2answers
94 views

ADXL345 acceleration data readout looks strange - STM8

after finally finding out how to create a software SPI connection i now can successfully read the data from an ADXL345 acceleration sensor. But they look rather strange to me, this are some sample ...
1
vote
1answer
78 views

Not enough digital outputs for SPI slave select lines (CS#)

I have a microcontroller with only 4 digital outputs available and 4 digital inputs. The problem is that I need to communicate with at least 4 SPI devices (ADC's and DAC's). 4 SPI devices means 2 ...
0
votes
2answers
39 views

How to Minimally Communicate with an ADS131E04 ADC via SPI

I have bought a few ADCs from http://www.ti.com/product/ADS131E04 and I cannot get hear from them via the SPI. I am putting the ADC in a TQFP socket and I connect the PWDN, RESET, SCLK, CS, DIN, and ...
0
votes
0answers
9 views

ADE7754 irms value

i am using ADE7754 to measure 3 phase voltage and current. I am able to read voltage values, but not the current. Micro-controller that i am using is ATSAMD20e18. Can anyone help me out with this ...
0
votes
0answers
42 views

use of ISD4002 SPI with FPGA

I am trying to build a circuit that would be some kind of INTERCOM and will be controlled by FPGA (cyclon 2 by altera ) . Because I need to have multi voice channels I choose ISD4002 because in my ...
7
votes
3answers
352 views

SPI bus connections - to loop or not to loop?

I have a question regarding the physical connection of an SPI bus. I have an SPI master (a PIC32 device) and a number of slaves (in this case PIC16 devices). I'm only writing to the slaves, and the ...
0
votes
0answers
25 views

TIVA C Series to External ADC

That's my very first post here. I'm using a TIVA TM4C1294XL and I also got an external ADC - PCM 1807 also from Texas Instruments. I've never worked with an external ADC before, so I don't even ...
0
votes
2answers
93 views

STM32F411 SPI slave enters debug infinite loop

I've connected two NUCLEOSTM32F411RE together, and trying to send an ASCII letter from one PC to another PC in Simplex mode from master to slave. When I send a character the slave enters a routine in ...
0
votes
1answer
37 views

Since SPI contains data and clock, this makes it “source synchronous” doesn't it?

I read in a Xilinx application note that as data rates became faster became developed source synchronous transfer technique and later came the self-synchronous methods that make use of 8b-10b or some ...
0
votes
1answer
71 views

Software SPI 3-wire read register

I currently try to read a register from an acceleration sensor (ADXL345). i try to simulate the SPI procedure with software. I wrote a readRegister function: ...
1
vote
3answers
140 views

SPI between MCUs

As a newcomer to PIC programming, I am looking for some thoughts on how to implement SPI between a master and slave MCU the most efficient way. The purpose of this system is to provide an extremely ...
1
vote
1answer
98 views

Why can I read accelerometer and gyroscope data on the LSM9DS1 with SPI, but not the magnetometer data on the same device?

I'm currently working on a device that uses the LSM9DS1, a 9-axis motion sensor by ST Microelectronics. I’m using a PIC24FJ128GB202 microcontroller by Microchip, and communicating with the sensor ...
0
votes
0answers
33 views

Bus Pirate binary protocol gets stuck in BBIO mode (or an invalid state) after a bulk transfer operation

I have a v.3a (SFE) Bus Pirate with v6.1 firmware, and am trying to make it talk binary SPI mode (to an AT89LP51, btw). Things start off OK, until I try to perform a bulk transfer operation (using ...
0
votes
0answers
44 views

VHDL - loop counter bug with SPI protocol

I want to write a simple reader from SPI data, to read 1 byte and transfer it to another block. I used the following code : ...
0
votes
2answers
64 views

Serial Peripheral Interface - multi slave question

When implementing SPI communication between a master and multiple slaves, there's basically two topologies to choose from: either resend the same data to each slave, or clocking data through all ...
0
votes
0answers
36 views

Maximum SPI clock frequency of CP2130 USB-SPI bridge

I have a board with SMT32F103 MCU and CP2130 chip connected to MCU's SPI2 channel. CP2130 is master only, so I configure MCU's SPI to act as a slave with software slave management. There are no more ...
0
votes
1answer
45 views

SPI refuses to send in dspic33

I'm trying to talk to an RFM22 wireless module. I'm having a hard time getting the SPI functional. I'm working with a dspic33ep512mc806. I'm debugging directly in hardware with a pickit3. After ...
2
votes
1answer
149 views

AD9833 Problems with Arduino and SPI [Can't think of a good title]

Alright I'm about at my wits end, I'm playing around with a AD9833 to synthasize a sin wave. I have combed though all forms of forums regarding the AD9833 to no avail. This is the circuit I'm running. ...
0
votes
2answers
52 views

Regarding SPI Slave Selection?

Consider that an SPI has more slaves. Suppose if more than one Slave wants to communicate with Master simultaneously then How does an SPI react in that situation? by means of priority or any other ...
1
vote
1answer
99 views

STM32 Standard Peripheral Library (SPL) - Modify SPI Configuration

I am using the STM32 SPL library with an STM32F103C8 microcontroller. As part of the project, I am using the SPI1 peripheral to interface with an SD card. Initially the SPI speed must be kept under ...
1
vote
2answers
50 views

SD Card Pin State During Hot Insertion

I'm working on a project in which I'm forced to connect an SD card to a shared SPI bus with some other peripherals. I need to make sure a hot insertion event won't corrupt any ongoing data transfer on ...
1
vote
1answer
57 views

TDC1000 SPI Interface resistor selection

I am working on Fluid Level Detection using Texas Instruments MSP430L092 Mixed Signal Microcontroller with Texas Instruments TDC1000 AFE. They are connected via ...
0
votes
1answer
70 views

AS5048A SPI - 13bits instead of 14bits resolution

I'm trying to make a driver for as5048a (spi) on STM32f405rg This magnetic encoder is supposed to have 14bits of resolution : and the read package shows that the 2 MSB are parity and error flags So ...
1
vote
0answers
52 views

SPI0 not working - SPI0 pins of Beaglebone black conflicting with the 4D 7.0" LCD CAPE pins

I have been working with BBB for a while using the 4D 4.3" LCD CAPE. The SPI0 worked well with the 4D 4.3"LCD CAPE, but later when I switched to the 4D 7.0" LCD CAPE, the SPI0 is not working and ...
3
votes
3answers
66 views

Groovy i2C/SPI peripherals for education?

I'm helping someone teach an embedded programming course at my university, and he's starting to cover i2C in class. SPI is next. We're trying to come up with a groovy, easy-to-interface, low-cost ...
1
vote
2answers
243 views

What is the quickest way to read an analogue signal - Arduino / Raspberry Pi + ADC / Arduino + ADC?

I need to sample 50Hz voltage signals from four CT current sensors and compare the waveforms to a voltage signal from the mains (stepped-down and offset for ADC) to accurately measure power ...
0
votes
3answers
59 views

AVR studio 6.2 flash atxmega32e5 signature issue

I am trying to flash my AVR ATXMega32E5 with Atmel-ICE thanks to SPI. The problem is that from AVR Studio Device Programming it can read the Target Voltage but not the Device Signature. What it ...
-2
votes
1answer
68 views

Can I reprogram my SPI flash wirelessly?

I am working on an application which stores specific model information in the SPI flash. The hardware is the same between the five different types of units. They are typically programmed with model ...
0
votes
1answer
100 views

Weird Serial Flash Corruption

I'm experiencing a very typical issue with data corruption in a flash chip in a not so typical way. I'm using the M25P16 16Mb serial Flash chip by Micron to log historical data on my device over SPI. ...
0
votes
2answers
115 views

Programming a JN5168-001-Mxx with a USBtinyISP?

I'm researching different ZigBee implementations for a mesh network application. I like NXP's JN5168-001-Mxx because it is cheaper than XBee (pricing for 200 units) and has a powerful uC. Mesh Bee ...