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

3 wire spi communication [migrated]

I have an lcd which work on 3 wire SPI communication.What is 3 wire SPI communication? How to make a 3 wire SPI communication using normal 4 wire SPI communication? How to impliment 3 wire SPI in ...
-3
votes
3answers
64 views

SPI- how does it work? [on hold]

I am new to SPI. I am little bit confused about its working. I know that it is synchronous. Let's say I want to read a value at address. So the process would be: First master will send address byte. ...
1
vote
0answers
60 views

Send a file to an SD card over SPI

I am using a pic18f4620 and an XC8 compiler. I am trying to create a file and send it to the SD card. I am using the MDD library from the MLA Legacy. My main is: ...
-3
votes
1answer
56 views

SPI - latch on trailing edge detail

I am asking in general about SPI. What does "Shift transmit data on the leading clock edge, latch on trailing edge" means? Does this means that data changes when Clock goes from High To Low. (This is ...
0
votes
2answers
66 views

Connect the Sparkfun CAN bus shield with an RFduino

I have a problem which I am working on for some days now. I do have knowledge in electronics, but not extensively. I also posted this question in the RFduino Forum but couldn't get any good answers. ...
0
votes
1answer
40 views

Contiki: Serial Line IP via SPI

I am working on Contiki's cc2530 port (customizing for my custom radio). I do not unserstand how can i make SLIP work with SPI? I understand that SLIP is similar to UART (it is UART without parity, ...
0
votes
0answers
23 views

FSIO.c:8344: error: (1089) recursive function call to “_WriteFAT”

I am using a PIC18F25K80 and an XC8 compiler. I am currently trying to use the MDD library from the MLA legacy version (http://www.microchip.com/pagehandler/en-us/devtools/mla/legacy-mla.html). It was ...
0
votes
0answers
47 views

How to properly connect LCD 128x64 via SPI?

I'd like to share here some experience working with 186x64 graphic LCD while work in multiple-SPI device environment. I bought a 128x64 LCD on eBay. Manufacturer is unknown and it could be like ...
0
votes
0answers
52 views

SD card SPI interface for PIC18F25k80

I am using a PIC18f25k80 microprocessor and I want to transfer data on an SD card over SPI. The compiler I am using is MPLAB X XC8. Could you please provide an example of how I can initialise the SD ...
3
votes
3answers
142 views

Using I2C and SPI communication on the same same clock and data lines

I am using a PIC18F25K80 with multiple slave devices. All of them uses I2C except one. What i want to know is that can i first use I2C with the devives that uses I2C and then close I2C, change clock ...
0
votes
1answer
50 views

I2C-to-SPI bridge and SD card

I am using a PIC18F25k80 microprocessor, which is communicating by using I2C protocol with peripheral ICs. After collecting the data from the ICs I want to store them in an SD card. However for the SD ...
0
votes
2answers
87 views

How to correctly wire an interrupt pin, clock pin, PWM pin, SPI pin

I've a question about how to correctly wire some microcontrollers pins. In particular: Interrupt pin on microcontroller (pull up/pull down resistor and with which value) Output clock pin from a ...
0
votes
0answers
71 views

SPI Communication fails with ISO7241C but works with ISO7641FC, same circuit?

Objective: To interface DAC161S997, with Microcontroller C8051F350 through ISO7641FC using SPI Protocol, Which works fine and DAC output is achievable. Now here is the problem, I have changed ...
0
votes
1answer
47 views

Why does SPI flash has HOLD# pin, as opposed to stopping the clock?

A SPI flash like Micron M25P16 (shown below) has a HOLD# pin, and any input data is ignored if HOLD# is asserted at a rising clock edge. But can't the clock just be stopped instead ?
0
votes
0answers
15 views

Unable to access clock while interfacing AT32UC3C2512C with Flash Atmel Studio

I'm trying to interface the controller (AT32UC3C2512C) with flash using SPI protocol. The IDE that I'm using was Atmel Studio. I have written a simple code in which I'm trying to read the manufacturer ...
2
votes
0answers
80 views

SPI / SD Card communication issues

I am working with a PIC18F67K22 and am seeing some bizarre things in the SPI data stream. I am trying to interact with a FAT32 partition using FatFs and a custom built diskio.c file. I am able to ...
0
votes
0answers
16 views

Max RF Chip SPI speed LT8900

I'm using an LT8900 chip for RF communication. I can not use the chip on a high speed and only on Maximum of 2Mhz. The datasheets say "CLK frequency range (SPI) FSPI 12 MHz" so why don't I see ...
-1
votes
0answers
50 views

microcontroller communication with pc using SPI

I generally use Atmega series microcontroller for my projects. I wanted to have communication between my microcontroller and PC. I want use SPI protocol for that. I program these microcontollers using ...
1
vote
1answer
162 views

How to write 4 bytes continuous data without any SCK delay through SPI with Pic18f45k20

In pic18f45k20, I have to write 4byte data at once without any setup SCK delay through SPI. Is there any way to cancel the SCK delay while sending 4 bytes together?(like Assembly)I am using MPLAB-XC8 ...
1
vote
2answers
60 views

Problem with SPI communication when Silabs Si86xx digital isolator is used

I'm trying to establish communication between Atmel Atmega32U4 (used in Arduino Leonardo) on MCU PCB and TI DAC8552 on PSU PCB via isolated SPI link. For isolation I'm using Silicon Labs Si86xx ...
0
votes
1answer
46 views

Informations about FT2232H as programmer

I was looking on a EVB that use FT2232H chip to program an SPI ram used in second time to programm another device. My question is, if I copy the circuit that programm this SPI ram and use the same ...
0
votes
1answer
102 views

MISO/MOSI vs DI/DO

Is there a difference between the MISO/MOSI pins and the DI/DO pins? Is it true that MISO/MOSI is for SPI communication where DI/DO is for USI communication? What is the difference exactly?
0
votes
0answers
35 views

Using SPORT for SPI

I'm using Analog's Blackfin (BF-532) for sensing and wireless transmission. Both my sensors and radios use the SPI interface. However, since I need the two devices operate at different frequency, I ...
0
votes
1answer
65 views

In a Lattice MachXO2, how can I use the EFB SPI slave and configuration SSPI (multiplexing)?

I am using a Lattice MachXO2 FPGA eval board and Lattice Diamond 3.4.0.80 on Linux. I want to use the configuration SSPI to update the FPGA configuration. During user mode, I want to use the same ...
1
vote
2answers
50 views

does SPI master always receive data in same time he send data

I try to communicate with EPPROM using SPI. the image illustrate the read status register sequence. the program I'm using checks the receive data register each time SPI finish sending (send data ...
0
votes
1answer
35 views

What does Limit at Min to Max values in datasheet means?

I have doubt while implementing I/O SPI interface for the ADF4158 PLL Synthesizer. I planned to use a simple I/O model to send bytes (using only 3 bits for 3 lines) using RS232 at 115200 BPS. I didn't ...
0
votes
1answer
55 views

SPI Communication during Programming

I am using the ATtiny861a and have made it so that the SPI connects to a Radio and an external memory source VIA two different chip select pins but sharing the same MISO/MOSI/CLK line. Correct me if ...
2
votes
2answers
117 views

read sd without filesystem [closed]

I design a DAQ to collect data from different sensor. The data are write in an SD Card by a microcontroller dsPIC33FJ256GP710A. The data are stored without a file system for speed reason. Now I need ...
0
votes
1answer
82 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
56 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
50 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
68 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
1answer
34 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
35 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 ...
2
votes
3answers
115 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
185 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
1answer
64 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 ...
0
votes
0answers
112 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
94 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
70 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
283 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
100 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
30 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
70 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
104 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
87 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
39 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
46 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 ...