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

What LCD is this and how to connect it? [on hold]

A friend of mine asked me which LCD is this and how can he connect it? It has 7 chars plus a battery symbol and a few other words.
1
vote
1answer
57 views

AVR SPI slave with interrupt

For a project I want to have two microcontrollers talk to each other via an SPI interface. I wrote the following code for the slave: ...
0
votes
4answers
81 views

Resistors on SPI [closed]

I need to read several variable resistors (max 5 Mega Ohm) through SPI interface into MCU. Can anyone help me to find the right SPI IC usable? I considered the MCP41xxx but it says the largest ...
0
votes
1answer
39 views

ATMega328p SPI with MCP41100 digital pot

I'm trying to communicate with a MCP41100 over SPI using an ATMega328p and can't seem to get it to work. Here is the code I found, can anybody see what I'm doing wrong? ...
2
votes
2answers
50 views

Unpowered devices on I2C/SPI bus

I'm trying to develop a board that includes I2C and SPI devices that are unpowered for the majority of the time to save power. I found that for these particular devices (Honeywell HSC pressure ...
0
votes
1answer
25 views

AVR reprogramming in circuit wirelessly

What are my options when it comes to reprogramming an AVR in-circuit? The new program will be received via a wireless connection, so it will need to be stored in some temporary memory container. I ...
-3
votes
0answers
48 views

Arduino SPI TFT module not working - Module TM022HDH26

I have bought SPI TFT module from ebay (Model # : tm022hdh26), and I wired up the module with my Arduino UNO, After uploading Arduino TFT examples, only i can see is blank white screen. Also i must ...
0
votes
0answers
24 views

Can't read the SPI buffer of a PIC32MX

I have some problems with my SPI communication. Indeed, I have configurated the PIC32 as master, and it communicates with a slave which is a memory. The communication works perfectly. LEGEND : In ...
4
votes
2answers
117 views

SPI Flash device selection using SCLK, MOSI as well as SS?

In a system with N SPI devices it would normally take N+3 pins on the master to communicate with them all (NxSS, SCLK, MOSI, MISO). With N being large and the master device (FPGA) is pin limited, I'm ...
0
votes
0answers
60 views

PIC16F767 as SPI Slave: Can't clock out data

I have a Raspberry Pi and a PIC16F767 connected via SPI. The rPi is the master, the PIC is the slave. I can write data to the PIC just fine and dandy, but I can't seem to get the PIC to clock data ...
1
vote
0answers
73 views

Few SPIs at the same time as a bus?

According to http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1031/LN775/PF216846, All STM32F1xx-series MCUs (and up) "offer standard communication interfaces (up to two I2Cs, three SPIs, one HDMI ...
0
votes
0answers
46 views

Controlling a TLC5927 LED Driver

I am trying to control TLC5927, with no success. I have read the whole datasheet, but I still can't figure it out. I tried to simulate it, with no success too. Can someone draw me a timing diagram ...
1
vote
1answer
87 views

What is wrong with this SPI implementation

I designed a system with RaspberryPi and STM32F407's, communicating with each other via SPI interfaces. For the last 3 months, tests were OK but yesterday a RaspberryPi and 2 of STM32F407's SPI ...
3
votes
2answers
73 views

Will an SPI EEPROM chip have the same issues with non-atomic write operations as a dsPIC's internal EEPROM? [duplicate]

A while back I had some intermittent trouble with the internal EEPROM of a dsPIC. Every so often, some value in the EEPROM would be found zeroed out on power-on. I tracked the problem down to when the ...
6
votes
4answers
221 views

Will an SPI flash memory chip have the same issues with non-atomic write operations as a dsPIC's internal EEPROM?

A while back I had some intermittent trouble with the internal EEPROM of a dsPIC. Every so often, some value in the EEPROM would be found zeroed out on power-on. I tracked the problem down to when the ...
0
votes
0answers
74 views

Arduino UNO and ADXL345 getting 0 0 0 OR -1 -1 -1 outputs with SPI communication

I have EVAL-ADXL345Z evaluation board from Analog Device hooked up to the Arduino UNO R3, the code complies and runs fine. At first I could still get the output values, but after sometime the output ...
0
votes
1answer
95 views

Button to start LED, release jump again

I am trying to do the following small project: Master MCU have 2 buttons - PINC0 and PINC1 PINC0 will count the clicks PINC1 will blink the LED n times (n=counter) and send n to the SLAVE MCU The ...
1
vote
2answers
84 views

SPI and pullups. Is it ever used in open collector configuration

Is SPI ever wired as open collector in devices calling for the use of pullup resistors? Everything seems to point to it usually being totem pole but I wonder if there are exceptions. The only pullup ...
-2
votes
2answers
58 views

Calculates the volts from CS5530 24-bit AD converter

I have this circuit (Power supply is 5V): The problem is: How to convert the values to Volts? I get the digital value in 24-bit from spi interface, but I don't know the minimum and maximun voltages ...
1
vote
1answer
126 views

How many LED lights can 1 Raspi control

I asked a question on Raspberry Pi Beta regarding Using one Raspi to control long (>100ft) of 5V LED strip, one answer in particular I found this answer useful, with a further comment which advised me ...
3
votes
2answers
60 views

SPI SS polarity

I got the impression from answers like this one that the the SS line for SPI is active low. Also from the wikipedia page. However, I have a DS1305 real time clock. Pages 11, 12 indicate that the CE ...
2
votes
1answer
108 views

Problem with SPI communication (PIC24H)

I'm trying to communicate with a NRF24L01 transceiver module with a PIC24HJ128GP202. Besides all the code, here is the important part: ...
0
votes
4answers
179 views

How to find out how many sensor you can add to a I2C or SPI protocol?

I am having problems to find out exactly how to connect sensors to make a project. The main issue is that I cannot find a device that can drive enough analog sensor, so I need to use either SPI or ...
1
vote
0answers
56 views

PIC18F SPI SDI line affecting/distorting data from slave device?

I have a PIC18F14K22 connected to a flash memory chip (Winbond W25Q80BV) via SPI and am having trouble reading the output from the chip. Specifically, the flash data output becomes distorted when I ...
2
votes
1answer
87 views

SPI slave unreliable on PIC18LF2550

I'm attempting to set up SPI communications on a breadboard between two PIC18LF2550 microcontrollers. I'm using a fairly slow clock of ~750kHz, waiting ~300us between bytes, and signal integrity on ...
0
votes
0answers
34 views

LPC17*, SSP, Half Duplex problem

I have a device connected to LPC1788 by SPI. The device responds to the given commands, that if I transmit some data to it it transmits back the response. The size of the commands is not fixed, can ...
0
votes
0answers
48 views

SPI SBC communication

I am using MPC5748G controller, in that i want to communicate my SPI with the SBC chip on board i.e MC33905, By going through the data sheet I am sending the proper commands to SBC through SPI API's ...
1
vote
2answers
68 views

Off-board SPI communication issue with ADC128S052

I seem to be having trouble with my board when it is not powered. I have a TI ADC128S02 (datasheet) acting as a slave and communicating with another master board via SPI. There are buffers on the ...
2
votes
2answers
131 views

Flash memory SPI MISO line unresponsive, using PIC

I am interfacing a flash memory component (M25P16) to a PIC microcontroller (PIC18F14K22) using SPI. However, I am unable to see any data come through on the slave output line at all (literally ...
0
votes
0answers
51 views

SPI - Circuit works or doesn't depending on wire type?

I have a circuit that has two SPI devices. The controller is a netduino (an arduino clone). My problem is that, when I have two spi devices attached, the shift register doesn't work, while the ...
0
votes
1answer
252 views

Using Arduino to program at89s51

I want to program at89s52, and on the internet there are many tutorials on how it is usually done, but almost all of them use the RS232 output from the computer, which I don't have. The only resource ...
1
vote
3answers
122 views

Arduino SPI not transmitting

I am trying to drive a MAX7219 LED controller and 8x8 LED Matrix via SPI from my Arduino MEGA 2560. I can control the MAX7219 via SPI using my Bus Pirate, but for whatever reason, when I try to ...
0
votes
1answer
424 views

DMA completion interrupt not working for slave STM32 SPI

I am using stm32f103 to transmit some data over SPI while stm32 acts as slave. I need to use DMA for sending data to the SPI but the corresponding interrupt handler is never called. The ...
2
votes
1answer
122 views

Is there a difference between TI brand of the 74HC595 and the NXP brand?

I have been trying to figure out the functional differences between TI's version of 74HC595 and NXP's version. I've been looking at the function tables in the datasheet for TI and the datasheet for ...
0
votes
2answers
51 views

SPI Slave Flash programming with two masters question

I'm looking to make a system that can be upgraded by a customer in the field and I need to know some conceptual thing before I try implementing my current strategy. Say I have a USB to SPI bridge, ...
0
votes
0answers
42 views

Connect MOD-Wifi utext ZG2100 to Arduino Duemilanove

I have a MOD-Wifi Olimex Module and I would like to used it with an Arduino Duemilanove board. The module has a Uext connetor and I connected the module to the board in order to use the SPI serial ...
0
votes
1answer
61 views

SmartFusion debug problems

I am using an Actel SmartFusion system-on-a-chip, running a bare-board application that uses the MSS with SPI, ACE and GPIO. (I am developing in Libero IDE 11.1 and SoftConsole.) My program ...
1
vote
2answers
95 views

Programming ATMega328 from arduino with separated power supply

I actually need to update the code on a project who use an ATMega328. I'm using an arduino as a SPI programmer. So, I need TX/RX and RESET pins to program the external ATMega328. My problem is, the ...
2
votes
1answer
295 views

Getting ADXL345 accelerometer to work over SPI with Arduino Uno

I'm using this cheap ADXL chip with Arduino Uno. When I read the sensor with I2C - it works fine. However I have some servo motors as well which generate a lot of noise and when I turn the motors on, ...
0
votes
0answers
409 views

Digital Potentiometer (MCP4131) with Raspberry Pi

I'm very new in electronic stuff. I'm used to develop for desktop and mobile applications not for hardware products. I try to wire up my Raspberry Pi board with a MCP4131 Potentiometer. But it's not ...
2
votes
1answer
154 views

Capacitor charging-like signal on SPI port's MOSI line

I'm using Texas Instruments Tiva C Launchpad to communicate with a micro SD and micro SDHC cards. The development board uses TM4C123GH6PM chip and I'm using TI RTOS's FatFS example for the Launchpad ...
0
votes
1answer
145 views

Shift 0-1.8V logic to 0-5V logic

I'm using BeagleBoard-xM McSPI to drive an MCP42050 digital potentiometer. Before using the SPI chip itself I'll try bitbanging through 3 GPIOs (but my question relates to both configurations). BB ...
2
votes
1answer
161 views

Cyclone V FPGA SocKit - trying to use LCD from FPGA

I'm trying to use the LCD screen on a SocKit board with a Cyclone V FPGA. However, in the documentation I see that the chip is divided into an HPS and the FPGA and the LCD seems to be connected only ...
1
vote
1answer
487 views

Very sensitive PIC16F886 SPI with NRF24l01+

Firstly, it's been 2 years since I've touched anything but mbed or ardunio so there's a strong chance I've done something silly to cause the problems I'm seeing. I have a PIC16F886 on a breadboard ...
0
votes
2answers
132 views

Arduino pin 10 for PWM whilst SPI slave

I need to use my Arduino Uno (ATmega328) as an SPI slave and have still have access to at least 5 PWM pins. The only issue is that this means I will have to use pin 10 (Slave select / PB2) as the ...
2
votes
1answer
31 views

Missing SPI1 in Output Selection Table?

In Table 11-3, p180 of http://ww1.microchip.com/downloads/en/DeviceDoc/70000657H.pdf, there is no way to map any spi1 pins?! I've gotten spi2 pins to work, but I need two buses and the part was ...
0
votes
1answer
70 views

Microcontroller Evaluation board with SPI and 3.3V as logic high [closed]

Are there some microcontroller evaluation boards that support SPI, and use 3.3V logic? I am only familiar with the Arduino Uno, which uses 5 Volt logic. If such 3.3 Volt boards are available, which ...
1
vote
2answers
251 views

I2C and SPI Bus Routing

When routing an I2C (SDA, SCL) bus or SPI (SCLK, MOSI, MISO) bus to multiple slaves is it preferred to wire the slaves in parallel or series? Below are two diagrams with distances labeled to help with ...
1
vote
1answer
119 views

dsPIC33 SPI Tx as Master Woes

I'm using a dsPIC33 and want to just send basic SPI data out. No Rx, only Tx for now to control a digipot. Hardware does include slave at other end, and I'm sniffing the output with a logic ...
0
votes
0answers
62 views

Can't find a source file at “C:/DriverLib/build/DriverLib.test/driverlib/…” (TI LM3S2965)

I know this has been documented before at the e2e forums (and I've posted it here), but I have yet to find a good solution to the problem and I can't seem to get around it. Note I am using Code ...