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 ...
0
votes
1answer
32 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
31 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
53 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:
...
-3
votes
2answers
57 views
MicroSD communication problem with microcontroller [on hold]
I'm trying to drive a microSD flash memory by microcontroller (STM32f1x),
I've done it easier by AVR and oldest microSDs, but now it has some troubles.
I've tried some codes on the internet and ...
1
vote
3answers
124 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 ...
-3
votes
0answers
43 views
Hack a USB flash drive while connected to PC [on hold]
How do I best hack a USB flash drive while it is connected to a host? I'm constrained with not having to interact with the host directly. So do I hack the flash drive's microcontroller? Interface with ...
1
vote
0answers
49 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
24 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
39 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
50 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
25 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
32 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
68 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
51 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
54 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
48 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
44 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
63 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
27 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
56 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
163 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
41 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
64 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
77 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
1answer
56 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 ...
1
vote
1answer
105 views
FatFs: Why am I not able to properly read sector 0?
Background: I am using an nRF52832 Development Kit with this microSD card in this breakout board. The card is powered at 3 V (I've tested running off the dev kit regulator and an external power ...
1
vote
1answer
68 views
Programming MSP430G2553 with Raspberry Pi 2
So, i want to program a msp430g2553 microcontroller with raspberry pi 2.
Since i don't want to use any IDE i would like to do it with clean C and terminal, without any external libraries like ...
0
votes
2answers
46 views
Zynq - Configuring SPI clock to idle high
I am trying to use the SPI0 component of a Zynq XC7Z010 to read data from a 12-bit rotary encoder which uses an SSI protocol.
I have a small example project set up in Vivado which enables the SPI0 ...
2
votes
0answers
49 views
AT89LP51ED2 SPI ISP — First attempt to enter ISP mode after reset yields wrong data back, but second attempt works
I have a board using an AT89LP51ED2 from Atmel -- this is an 8051-derivative with on-board Flash program memory and a SPI ISP interface, which I am using my Bus Pirate to drive (30kHz speed, pullups ...
1
vote
0answers
40 views
How to interface a BQ76PL536EVM with a MSP430 uC using the sample code?
I am trying to follow the application report : http://www.ti.com/lit/an/slaa478/slaa478.pdf to setup communication between a BQ76PL536-EVM (TI battery monitor) with a MSP430 uC board (I am using a ...
0
votes
0answers
21 views
Reading Bits of the ICE SN65HVS882 Only Bits 0, 1 , 3 Can Be Read
Folks,
I have an AM335X_BOARD_TYPE_ICE (ICE v1 board), and I am trying to read the digital pins from the SN65HVS882 (8 digital input serializer). I can read bits 0, 1, and 3 successfully, but when I ...
0
votes
1answer
46 views
Calculating SPI clock speed
I am new to the forum and the EE world so forgive me if technical terminology is a bit off.
I may be thinking about this too much, but what is the procedure for calculating SPI clock speed for a bus ...
0
votes
2answers
48 views
Using SPI Nor Flash as storage memory in Vehical tracker device
I am designing a Vehicle Tracking device. I need a storage memory of 2Mb to 8Mb to store data from MCU. Based on what my MCU supports, I am planning to use SPI NOR Flash as a storage Device. As I know ...
1
vote
1answer
61 views
Verilog SPI module functioning in unpredicted ways
I am currently trying to implement a simple SPI Master module in Verilog using Quartus Prime Lite V15.1.0 Build 185 for compilation and Simulation Waveform Editor as my simulation tool. The module has ...
1
vote
1answer
54 views
Using Logic Analyzer for SPI
I started my project of interfacing MicroSD Card with PIC32MX795F512L. To start with this first I made a program to test ...
3
votes
0answers
101 views
SPI loopback with DMA
I am using STM32F4 discovery board and I am attempting to get SPI loopback with DMA.
I have successfully got an "SPI-only" loopback running, but now I want use DMA in addition with the SPI, here are ...
0
votes
1answer
30 views
SD Card Reset Issue
I've got an issue where I'm playing around with the SPI commands to get SD card comms working but it seems that if I send something the card doesn't like I get in a condition where it can't reset. ...
2
votes
2answers
171 views
How can I write high-speed A/D data to an SD card?
I want to use a microcontroller and A/D converter to do some high-frequency (~100 kHz) long-term (minimum of five second buffer, looping until triggered) data logging. It looks like a good way to do ...
0
votes
0answers
47 views
Is horting SPI to test PIC24 communication damaging in any way?
I have a question concerning SPI (don't we all) and I was hoping that someone can help me out before I do something stupid (which is usually my favourite way of learning, but I only have one board so ...
0
votes
1answer
60 views
Is using SPI communication for 3 meters length still tolerable?
I'm trying to communicate my master board to slave, with SPI port.
Our mechanical team says that it will be 3 meters long.
Is it still tolerable? how about its noise?
Thanks
0
votes
1answer
74 views
SPI and ADC timing diagram
I am working with ADC 11040K with 1 kHz (1/1kHz = 1ms conversion time) sampling frequency. I am confused with timing diagram of its data conversion. As you can see the image, which duration is equal ...
2
votes
1answer
67 views
Options for video development [closed]
What are my options for video development? I am talking buying a development board, then translate that to custom pcbs and hardware.
With the rise of smart phones we have seen a plethora of hardware ...
0
votes
3answers
128 views
SPI using one wire
I need to communicate between a transmitter and a receiver using visible light therefore i have only one communication channel. so i was wondering if SPI interface can be implemented using one-wire ...
1
vote
2answers
74 views
Cannot enter programming mode ATMega328p
I'm using an ATMega328p Xplained Mini development board. I was able to program it using Atmel Studio 7, being new to AVR programming I accidentally set the RSTDISBL fuse to 0 (has a default value of ...
0
votes
2answers
127 views
STM32F407ZET6 and nordic nrf24l01+ communication with interrupt driven SPI
Currently working on STM32F407ZET6 MCU. I am trying to generate an interrupt based SPI communication with nordic nrf24l01+ chipset. The MCU is in Master mode. I am able to establish an SPI ...
0
votes
3answers
246 views
Optocouplers with non-inverting logic
Here is the setup:
I'm using the Arduino Mega's SPI functionality to send signals to multiple DACs. For digital isolation, I am considering the HCPL-2631 or the ACPL-064L. The problem with these two ...
0
votes
2answers
145 views
Error initiating microSD card in SPI mode
I am trying to interface a 32 GB microSD card with PIC32MX795F512L using SPI communication. SPI communication is working fine as I have tested it by shorting the Data Input and Output line and ...
0
votes
0answers
45 views
SPI using PIC32MX360F512L
I am using SPI channel 1 as the mater and channel 2 as the slave for SPI on PIC32MX360F512L on explorer 16 board. I have made the connections between SDO1 and SDI2, SDI1 and SDO2 , SCK1 and SCK2 , SS1 ...
0
votes
1answer
107 views
wireless I2C/SPI communication over XBEE with multiple slaves
Designing a device for vibration condition monitoring, using multiple wireless accelerometers. Intending to have an arduino as the main controller and peripheral accelerometers sending the vibration ...
1
vote
2answers
81 views
How FPGA firmware writes in flash?
In some boards, like Papilio, spi flash connected only to fpga. As I can understand the firmware writes to flash through fpga. How does it works? Doesnt fpga need firmware first to work? If so, how it ...