Tagged Questions

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

1
vote
0answers
131 views

How do I transfer more than 1 byte at once via SPI bus? [migrated]

I have an AD5685R DAC that I am trying to communicate with over SPI. Per the datasheet, ...These [24] bits are transferred to the input register on the 24 falling edges of ...
0
votes
0answers
33 views

Accelerometer gyrometer for radxa board - i2c configurable addresses vs spi

I am looking for an accelerometer/gyrometer that has configurable address. It should run on a radxa rock board using i2c, or some spi solution. I am using that board (PRO) ...
5
votes
3answers
869 views

Is the SPI Interface just a protocol or actual hardware?

I want to use the SPI interface between a PIC and an ENC28J60. However, there are no pins on the PIC called MISO or MOSI that I can use for SPI. So is SPI just a protocol, which I can use with any ...
0
votes
0answers
29 views

Getting to work RFID-RC522 reader / writer with Teensy 3.1

I am trying to use the RFID-RC522 reader / writer together with a Teensy 3.1. I cannot get it to work. I always get the error: MFRC522 Software Version: 0x0 (unknown) WARNING: Communication ...
1
vote
0answers
66 views

Missing clock edges when using SPI on the CC430

I'm currently using the CC430F5137 and I'm having an issue with using SPI to communicate with an external flash. I'm currently using DMA to send out SPI comms using the UCSI_B module. Most of the ...
0
votes
0answers
29 views

Anyone familiar with TI's ADS1210

I'm trying the build a two-channel thermometer using an ATMEGA328 and two ADS1210. I've connected both ADS1210 via the common SPI lines (SCLK, MOSI, MISO) to the ATMEGA328, for DRDY and CS I'm using ...
1
vote
1answer
67 views

ATMEGA328P SPI MMC/SDIO

I want to connect an ATMEGA328P to a mobile phone, a Samsung Galaxy S3 to interface some data. I need to use the microSD port behind the battery cover for this purpose, so here is the question, Is it ...
0
votes
1answer
53 views

Wiznet Wiz820io (W5200) Module - No data on MISO Line

I had a working circuit with Wiznet W5100, but to get better performance I switched over to Wiznet W5200 (in Wiz820io module). This involved rewiring the pins, changing the register address and also ...
0
votes
0answers
34 views

Serial SPI EEPROM multiplex DI/DO line

Just want to make sure I didn't miss something: according to the data sheet of 25xx010 the DO pin is strictly high-impedance during addressing and writing and only driven when reading. In my ...
0
votes
1answer
63 views

What is the difference between 1-bit SDIO vs SPI?

What exactly is the between 1-bit SDIO vs SPI? Does one have advantages/disadvantages over the other?
0
votes
0answers
64 views

SPI LCD Screen on OpenWrt based hardware using Atheros AR9331

I'd like to connect a graphics lcd 240x64px to my OpenWrt based hardware, which is based on Atheros AR9331 MIPS architecture. The development board I'm using has SPI outputs... I've been using the ...
0
votes
0answers
48 views

Off board SPI communication over 2 meter Lenght Bus

I have few queries on my SPI interface application. Specifications: Sensor: LDC1000. Data Out: Over SPI bus, f = 4MHz. SPI Bus Length = 2 meters. Raising edge= Data out, Falling edge= Data In. I want ...
0
votes
1answer
46 views

AVR SPI slower than expected

I'm running an ATMega88A at 8MHz and have the SPI configured to run at Fosc/2 = 4MHz. In theory, shifting out 5000 bytes over SPI should take 1/4000000 * 8 * 5000 = 10ms. But according to the ...
1
vote
0answers
29 views

Can't drive adafruit display with Arduino DUE

I'm currently trying to write a library for the Adafruit ST7565 graphic display. (see links below) The current one is entirely AVR specific and the code is generally pretty unreadable given the ...
1
vote
1answer
31 views

AVR SPI2X has no effect

I've got an ATMega88A configured to run on internal 8MHz clock: lfuse = 0xE2 hfuse = 0xDF efuse = 0x01 F_CPU defined as 8000000 This in confirmed in the 'real ...
3
votes
3answers
175 views

AVR SRAM limitation

I'm just an enthusiast looking for some advice. I'd like to use a microcontroller to read frames from a camera and write those frames to a small LCD screen. The camera and screen are on the same SPI ...
1
vote
2answers
226 views

Communication between micro controllers - I2C, SPI, UART?

Basically I have two microcontrollers that I need to communicate with each other. Both controllers send and receive data. Basic idea that I have: I2C, SPI - What I think we can NOT use these ...
1
vote
1answer
50 views

SPI reading from slave

I have small question about how bytes move around during SPI reading. I have a flash memory chip and microcontroller. Suppose I want to know jedec data from the chip(although it can be any data, this ...
0
votes
2answers
64 views

Raspberry Pi and TLC5615 DAC

Currently I'm working in a project in which I need to programmatically control 2 currents from 0 to 1 Amp. My plan is to use two DACs controlled by a Raspberry Pi. My idea was to use the MCP4725 but ...
1
vote
2answers
74 views

Multiple out signals with single clock

Here is the deal.. I need to transmit data to 8 identical components. Each component has a clock and an input signal. MCU only sends data. Components only receive data. All 8 components are the ...
0
votes
1answer
81 views

SD Card Access Library

I am accessing my SD card using SPI. But I've found this to be slow and I am also sad that when there is a faster protocol already supported by my SD card I am using a slower version. Is there a C ...
1
vote
1answer
99 views

SPI not working, ATmega328 only sending 1 byte

I am trying to get SPI working on an ATmega328. This is my code: ...
0
votes
0answers
72 views

How long of a wire and how big of a load can I have for SPI bus?

I have a system where I will connect up to 128 identical magnometer ICs up to an FPGA. I am trying to decide between SPI and I2C for comms. If I use SPI the setup will require 128 + 3 wires IF all ...
1
vote
1answer
51 views

Cable for transmitting 4MHz 3V3 signal

I am building a device on breadboard where there are 2 ICs: a microcontroller and some auxillary IC, they should communicate via SPI with a 4 MHz clock. Because I don't have enough place on my ...
0
votes
0answers
65 views

Canon EF SPI data protocol and IS activation

I have been trying to find information about Canon EF data protocol between lens and body. So far I have seen examples how to control focus or aperture but I would like to know how IS is activated. Is ...
2
votes
2answers
207 views

Erratic ADC output

I'm using a 12 bit ADC (MAX1270), SRAM (23LC1024) and PIC18f4550 to measure temperature transient at the output of an RTD. The communication protocol is SPI. The voltage is sampled and sent to PIC, ...
1
vote
2answers
318 views

Porting SPI code from (Intel) Galileo to Edison - Arduino

I'm currently working to port some Arduino sketches from Intel Galileo that use SPI (using a prototype Arduino Breakout board). I haven't been able to get it to work so far - but I have used an ...
0
votes
2answers
98 views

Two different SPI modes in one microcontroller

I am interfacing two chips with SPI communication with atmega328. One chip uses SPI mode 0 and other one SPI mode 1. Is it advisable to toggle modes in micro each time interrupt request is received ...
2
votes
1answer
209 views

STM32 SPI half duplex (1-wire Bidirectional) problem

I'm trying to read 4 byte from a SPI-compatible slave (MAX31855) in 1-wire bidirectonal SPI half-duplex. Here is my code [SW Controlled SS] [SO->MOSI] ...
0
votes
1answer
38 views

Connecting GPIO and SPI signals via cable

There is a requirement in one of our systems to transfer signals from one board to another board in the same system. The signals are GPIOs and SPI lines from I.MX6 processor and it is in 3.3V ...
0
votes
1answer
71 views

Hy28B display with STM32

I'm trying to get this Hy28b display work with my stm32f103 MCU. Somehow the display doesn't respond. I've found out I cannot communicate with it, my SPI setup is the following: ...
0
votes
0answers
81 views

SPI always returns null while reading

We need some help in SPI protocol. We've been using an AVR microcontroller ATMega324PA (DIP) and an ADXL344 accelerometer (QFN Breakout). Both chip operates at 1.8V and supports I2C & SPI. Lately ...
0
votes
0answers
80 views

SPI interface using pic with cc2500

Datasheet of cc2500 is here: http://www.ti.com/lit/ds/symlink/cc2500.pdf . I looked at the SPI timing diagram on page 22. I have gone through the datasheet of cc2500 and understood that. idle state ...
2
votes
1answer
97 views

SPI Interrupt Handler delay in STM32F303?

I'm working with an STM32F303 microcontroller configured in slave mode running at 72 MHz, and I've come across some strange behavior that I'm trying to track the origin of. The master first sends ...
2
votes
2answers
153 views

Writing to SD Card cheaply

So, here's the scenario: I have an Arduino and an SD card. Unfortunately, I don't have one of the fancy shields, and I don't have the time to order one. As we know, Arduinos run on 5V, and SD cards ...
0
votes
1answer
119 views

Daisy Chaining ADC Sensors

I'm creating a grid of 200+ pressure sensors and need a clean way to get their values back to the master controller without a mess of wires. To me it seems like daisy chaining all the sensors ...
1
vote
1answer
79 views

STM32F2xx: Data from SPI Slave to Master

I have a STM32F2xx connected to a FTDI UM232H using SPI, STM32F2xx will be configured as SLAVE and FTDI will be configured as MASTER My scenario is this, I am getting data in STM32F2xx, and when I ...
2
votes
2answers
164 views

Understanding SPI

I have some problems understanding SPI: I am currently using STMF2xx to connect with FTDI UM232H, I will configure my STMF2xx into slave and FTDI into master. But, I am having problem getting the ...
0
votes
0answers
53 views

AT86RF212b connections

I'm trying to communicate at86rf212b with atmega328 , I have connected all SPI connections( MISO, MOSI, SCk, SS), IRQ, SLP_TR and RST with suitable 5v/3.3v conversion (74hc4050) and trying to read ...
0
votes
2answers
53 views

Atmega16 SPI to clock out 32bit data

I am very new to AVR and even for coding of micro-controllers. I wanted to shift out 32 bit data on SPI from a Atmega16 to a 32 bit shift register. The shift register in not an SPI compatible device. ...
0
votes
0answers
77 views

Is a file system something that is implemented in hardware or software?

The context of this question is that I would like to be able to take an SPI flash IC and store audio files on it. The reason I need a file system, specifically FAT, is because I'm using an OGG Decoder ...
0
votes
0answers
45 views

Computation capacity for a sound localization and tracking system

I'm working with Raspberry Pi and the Generalized Cross Correlation - Phase Transform (GCC-PHAT), i want to do synchronized sampling on 6 signals of 6 microphone amplifiers. The Raspberry Pi has no ...
0
votes
1answer
139 views

Raspberry PI's SPI over RS485

I'm trying to understand how to connect a SPI device (a mifare RC522 RFID board) over long distance to my RPi via SPI. I searched and find I could connect those via SPI over RS485 using a MAX490. ...
0
votes
0answers
36 views

smartcard and smartcard reader data transmission

I have a bunch of smartcards. I going to build a sniffer device that communicate with COM port to do MITM attack just for fun and for testing and upgrading my knowledge in this field. I appreciate if ...
0
votes
2answers
73 views

What is launchpad's I2C & SPI voltages?

Does anyone know what voltages TI Launchpad's I2C and SPI run at? I think it is 3V3 from a comment on a post, but can't be sure.
1
vote
1answer
242 views

Full duplex SPI Master using DMA - STM32F105

I'm trying to write a SPI driver for an STM32F105, using DMA functionality. I'm using ST's Standard Peripheral Library. I'm not using interrupts. I can talk to the destination device if I use standard ...
0
votes
1answer
110 views

Relation between SPI, clock rate and data bits in microcontroller

I am working on a project which requires a UHF RFID Reader IC AS3993 having an 8 bit Reader MCU. And an externally connected LaunchPad (SimpleLink LAUNCHXL CC3200) for data transfer which works at 16 ...
1
vote
2answers
42 views

Drive logic signals when power might be off

I'm designing a board that interfaces two systems with an SPI signal. Each system has a 5V power supply, and I have access to both supplies, but either supply may be turned off at any time. How should ...
1
vote
1answer
61 views

MSP430 USCI - Are the interrupt flags still active when interrupts are explicitly disabled

I am using an MSP430 USCI in SPI mode. I would like to confirm my understanding of this: If UCTXIE and UCRXIE are explicitly disabled when the interface is initialized after UCSWRST is cleared the ...
2
votes
1answer
129 views

STM32F10x SPI - No Clock

I'm trying to get basic SPI operation working on an STM32F107VC chip using the WaveShare Port107 development board. I'm trying to initialise SPI1 which resides on PA4-PA7. I'm attempting a simple ...