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

VHDL SPI xilinx spartan 3E

I have nearly non previous experience with VHDL and the most of the code here is given to me by the teacher. I'm trying to communicate with a ADXL362 accelerometer using SPI on a Xilinx Sparten 3E. ...
0
votes
1answer
37 views

CS/SS pin configuration

I am using an ATtiny861a and I want to enable it to use SPI. In doing this I need to assign not one, but two CS/SS pins in order to communicate with a radio and an external memory. Does the CS/SS pin ...
3
votes
1answer
39 views

What is holding the SS pin high in SPI master mode on AVRs?

A typical AVR datasheet contains the following example of an SPI Master mode configuration (here from page 164 of the ATmega128/L datasheet): ...
0
votes
1answer
56 views

SPI communication with multiple slaves

I am working on a project that is using an ATtiny861A and this only has one SPI. If I want to hook up a radio and an external memory to the same SPI, will there be an issue sending data from the ...
0
votes
0answers
17 views

S25FL032P NOR Flash interfacing over SPI Bit Banging

I am working with a NOR Flash memory chip: S25FL032P manufactured by Spansion. I am interfacing the NOR Flash over SPI by Bit Banging as I am going to use the dedicated SPI engine for some other ...
0
votes
0answers
18 views

SPI Flash Filesystem

I'm currently working on a portable product (microcontroller is the STM32F429) and store a lot of readings into a 128Mbit SPI flash (M25P128 from Micron). Essentially, I'm storing about 10 bytes or so ...
0
votes
0answers
23 views

SPI: problems communicating with sensor using Arduino [migrated]

I have a sensor which I am trying to communicate with over SPI using an Arduino UNO. It is my first time using SPI and I'm experiencing some problems which I'm hoping are just due to some ...
2
votes
3answers
90 views

I2C and SPI on the same bus

I have already configured an I2C protocol between a master device (PIC) and two slave devices (sensor ICs). After obtaining the measurements from the sensors I want to store them on an SD card. For ...
2
votes
1answer
172 views

what happens to SPI clock in loop-back

I want to use SPI module in loop-back mode. so I wire MOSI to MISO. but how about the clock??. is it wired somewhere?? and how the clock works loop-back mode
1
vote
0answers
20 views

Problems initializing SD card with MSP430

I've been working on some code to talk to an SD card with the MSP430. I can't get the card to enter into idle mode, and I'm actually pretty stumped as to why. I've looked at the microcontroller output ...
1
vote
0answers
40 views

MSP430 SPI slave example?

Is there a known-good example of code for MSP430 SPI slave? I have code for SPI slave with DMA which works, but not reliably, sometimes it starts sending repeats of the last byte sent rather than ...
2
votes
2answers
84 views

SPI signal showing up on other pins of ATmega1284P microcontroller?

I'm using an Atmel ATmega1284P MCU (40-pin DIP) for a project and noticed some low frequency spikes on the ADC0 pin (pin 40). After some troubleshooting I discovered that the spikes were perfectly ...
0
votes
1answer
24 views

Loading new drivers

Suppose I'd like to make changes to the drivers of ADXL345 for SPI by building on https://github.com/analogdevicesinc/no-OS/tree/master/drivers/ADXL345 How should the updated drivers be loaded? Should ...
3
votes
1answer
62 views

Multiple SPI Busses in Ribbon Cable

I have a multiple SPI busses running through a ribbon cable which is 15cm long. What is the best CS, SCK, MOSI, MISO orientation to avoid the cross talk between each wire and is it enough to use ...
0
votes
1answer
110 views

How can I set up SPI using Atmel Studio and C code for ARM processor?

I am trying to program the SAM3x8E chip on the Arduino Due through Atmel Studio. I would like to be able to control a digital resistor over the SPI interface with the SAM3 chip. I am running Atmel ...
0
votes
1answer
54 views

How to connect 3-wire spi with an arduino to the Maxim DS1801 digital resistor?

I just picked up an Arduino Due with the SAM3x 3.3v chip. I am attempting to communicate with a Digital potentiometer to control an amplifier's volume level but I have no clue how to go about hooking ...
0
votes
1answer
24 views

Using ADuM3150 for SPI Interface with Arduino

I am trying to use an isolator for SPI communication with the Arduino. I am presently using the ADum3150. You can find the datasheet here. There are some delays associated with this arrangement and ...
0
votes
1answer
63 views

High frequency SPI-like communication: is there any hardware allowing software tweaking?

I will need to communicate with a device using serial protocol mostly similar to SPI but with several changes: Data packet can has any bit length (e.g. 35 bits) Stop sequence formed by lack of ...
5
votes
1answer
95 views

SPI Bus Termination Issue

I've been working on a project where an OMAP Linux SPI master interacts with 6 SPI slaves peripherals (5x A/D converters and single magnetometer). I can set the SPI clock frequency and have ...
0
votes
2answers
65 views

FPGA SPI slave not working well

I'm tring to integrate a SPI Slave in VHDL (opencores) http://opencores.org/project,spi_master_slave the idea is to interface a Microcontroller and an FPGA I'm Using Quartus.. more info: ...
0
votes
0answers
24 views

BlueGiga WF111: SDIO host interface and SPI compatibility

I am planning to use the following in a project: Olimex A20-SOM-4GB (Allwinner A20 SoM) BlueGiga WF111 Wifi b/g/n module The WF111 module has only one host interface, which is SDIO (1-bit by ...
0
votes
0answers
39 views

SPI polarity and phase setup

In general, does the SPI i/f on a MCU need to be set up for polarity and phase according to each SPI chip it is reading/writing?
0
votes
1answer
39 views

Weak pull down for SPI

I am using Arduino(does not matter) and 8 x 12 bit-ADCs to read some values. I created a prototype which consists of a Shift Register(SR) and all outputs of SR are connected to individual ADC's ...
0
votes
2answers
82 views

SPI max distance

i have an PIc16F877 µController ,connected via SPI to an MCP23S17 and the last it connected to an keypad and lcd screen , the distance between the µController and the MCP integrated circuit is 5m , my ...
0
votes
1answer
107 views

Difference between SPI and CSI?

I want to know the difference between Serial Peripheral Interface(SPI ) and the Clocked Serial Interface( CSI).I know that both the protocols are serial in nature and differ in number of signal ...
0
votes
0answers
34 views

Measuring if a transistor can work for SPI/UART when doing logic level conversion

I need to convert 3v3 to 5V and 5V to 3v3 for SPI/UART. I found many options. But I'm still confuse whats good for me. Because Transistors and few other components has rise and fall time. I want to ...
1
vote
0answers
42 views

Different weights on different temperatures - load cells and ad620

I have a set of load cells connected to a AD620. Everything is working good except when I change the temperature. The temperature can vary between -10 and 50. I have the AD620 connected to an MCP3208, ...
0
votes
0answers
34 views

Connection regarding SDIO lines

I have a doubt regarding my project. My project microcontroller is PIC18F87J72 and there is Wifi+BT module (SDIO and HCI interface). Can I connect SDIO of wifi module with SPI of PIC microcontroller?
1
vote
2answers
90 views

SPI to USB converter Question (for STM32F105)

I have a question regarding which SPI to USB connector to choose and what the main difference is between them. All i want to to is monitor the SPI activity going on which is possible through an SPI ...
1
vote
1answer
36 views

SPI and word size - what happens with (say) 8 bit and 24 bit data from the same chip?

I have a chip to be read/written via SPI. Some of its registers are 8 bits, others 24 and 32. How does the SPI master (the MCU) handle these different data sizes?
0
votes
2answers
160 views

How to test if my program for SPI communication is working correctly?

I have developed a simple code for learning about SPI in Arduino Due. The code is compiling properly and now I would like to learn the next step on how to test the code with the board and get the ...
0
votes
0answers
106 views

How to connect Xbee to FPGA using SPI?

I am trying to connect an Xbee to a FPGA using SPI. I found some code online to read in the MISO and convert to an 8bit output register. I have it working in the simulation but I cannot get the ...
0
votes
1answer
63 views

How to configure the SPI pins(MOSI,MISO,sclk and SS) for ATMEL ATSAM3X8E?

I am using ATMEL studio 6 for programming and novice in embedded systems.At present, I have read the theory working of SPI. I understand that I have to set particular bits to one in the control ...
0
votes
2answers
72 views

Noise reduction in SPI

I've been working on a project to interface ENC28J60 with an ATmega16A µC. For the sake of debugging I have built a board with UART capability so that I can view the register values of the Ethernet ...
1
vote
0answers
70 views

Very high frequency out of SPI pin in ATmega16A

I was trying to interface ATmega16A with ENC28J60, and I was facing problems with it, so I decided to physically look at the signals b/w the master µC and the Ethernet chip using an oscilloscope. But ...
0
votes
0answers
103 views

3-wire SPI Interface between Arduino (Teensy 3.1) and Accelerometer (ADXL344 or ADXL345)

I'm having problems in interfacing and receiving data from the Accelerometer (ADXL344) to my Arduino (Teensy 3.1). I have connected the pins as shown in the attached schematic. Furthermore, I have ...
0
votes
0answers
35 views

SPI measurement on DSO nano V3

I am working building my own embedded web server made from ENC28J60 and ATmega16A. I am having lot of trouble to establish communication between the µC and the ehternet chip through SPI. I got a ...
0
votes
1answer
43 views

PIC:What is the difference of SPI module of PIC18F4685 and PIC18F66K22?

I want to configure SPI module in Slave mode for PIC18F66K22. Can we use common SPI library for both MCU?
0
votes
0answers
157 views

RFID RC522 with AVR

I'm trying to communicate with RC522 Rfid board with AVR Atmega32L. My mcu running at 3.3V, so, the signals are familiar with RC522 module. Is there a library with native C, (NOT arduino code) for ...
-2
votes
1answer
39 views

ADC ic's for SPI protocol [closed]

I want to know what are the ADC Ic's is suitable for SPI protocol? because i cant find MCP3008 ic in shops? No one having this IC. Thanks.
0
votes
0answers
23 views

PIC18F66K22:How to configure SPI in slave mode?

I have PIC18F66K22 microcontroller.I want to use SPI in slave mode. How to configure SPI in slave mode? If any demo code is available then it is better for me. Thank you.
0
votes
0answers
55 views

AVR communication using SPI

I'm trying to learn SPI interfacing in AVR. I Have two ATmega16 µCs and I'm configuring the one with the push buttons as master and the other with LEDs as slave. Based on the button pressed the ...
0
votes
0answers
153 views

Increase SPI transaction speed?

I am using SPI to write and read the data from slave board. I have two questions regarding this process: Question 1. Why when I am trying to read 1.000.000 bytes through SPI using 1 message, it works ...
0
votes
2answers
155 views

SPI Troubleshooting, Teensy, Arduino, and tri-state

I'm trying to get my SPI bus devices up and running on a custom circuit board that I've soldered together. Unfortunately, I neglected to add probe testing spots on this particular circuit board, and ...
0
votes
0answers
65 views

Trouble with communication between two nRF24L01+ transceiver

I have worked with the nRF24L01+ (Single Chip 2.4GHz Transceiver) for a couple of days now without getting it to work. The setup of the chip is done as described below, without any luck of getting a ...
0
votes
2answers
131 views

MCP3008 alternative

I have some analog devices like LDR, temperature sensors, and other sensors and I want to use the readings of these sensors in my raspberry pi B+ , for that I need an ADC , to convert the analog ...
0
votes
0answers
18 views

BMA150 acceleration sensor for SAMD20 SPI connection

I'm trying to get BMA150 acceleration sensor working with my user board which has SAMD20J16 connected to the correct pins. (I'm sure, I've quadruple-checked) I've been stuck for several days trying ...
2
votes
1answer
135 views

Understanding a SPI command sheet

I am interested in learning more about how SPI works in general, but with the raspberry pi and py-spidev library in mind. I am very technically savvy, although not so much on the EE side of things. I ...
0
votes
0answers
36 views

turn on led using external light dependent resistor (LDR) with nios ii and qsys design

I want to use qsys and nios ii to design a system that uses an external ldr to turn on led on an altera fpga.how can i go about this, what are the components i need in my qsys design and how to ...
2
votes
0answers
68 views

Can't seem to write to spi flash

Well I've been stuck on this for a while, maybe 2-3 weeks at this point. I'm just not sure what I'm doing wrong. I'm trying to write to this spi flash part, and now I'm just running routines to ...