Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
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 sure to check the datasheet, though. The SPI bus is a *de facto* standard lacking the formal specification.
0
votes
Can any SPI device be daisy chained?
Some devices need different SPI modes (there are 4 possible modes) and probably some don't behave nicely when you give them "unnecessary" clock pulses. … If all your devices have an output pin that is tristated when /CS is de-asserted you can run them in parallel and just strobe the /CS pin for the active SPI target chip, re-configuring the SPI mode and …
1
vote
Accepted
SPI and word length
The closest thing to a standard that defines SPI is this (formerly Motorola) document.
There's no inherent limit in SPI as to word length. …
1
vote
Accepted
STM32 - While using SPI in write-only mode (MOSI), assign MISO pin to GPIO
The key is in SPI_CR1 bits 15 and 14, which, by my reading, you should set to 1 (bidirectional mode) and 1 (output enabled), respectively.
I'm not convinced it's correct (I think it isn't), but here i …
1
vote
Use one chip from multiple daisy-chained ADCs
The communication rate, of course, is not directly related to the sample rate, but it may limit it.
If you are only interested in the ADC or ADCs nearest to the data input of the MCU you can trigger a …
2
votes
Accepted
Confused about MAX6675 thermocouple sensor SPI protocol
Reading data over the SPI bus is a different (and potentially much faster) process than the measurement of a new data value. … Your problem is not the SPI protocol per se, but rather understanding how the system works. …
3
votes
Accepted
Using SPI to get higher sampling rate from ADC module vs using ADC on microcontroller
You could use an "Arduino" compatible module such as the STM32F103C8T6-based ones, which have claimed "12-bit" and "1us" ADC peripherals. Read the datasheet with a jaundiced eye to determine the actua …
2
votes
Diodes on SPI bus data lines and pull-up resistors
If your MCU is powered from 5V you can consider using a proper level translator chip with dual Vdd lines which will give more noise margin, better waveforms at high SPI clock rates, and lower parts count …
2
votes
Accepted
SPI communication over different voltage
My preference is to use commercial voltage translators (the kind with two supplies and a direction pin) if you can't operate everything from 3.3V (the preferable solution) because SPI generally calls for …
0
votes
Need to map 0-5V DAC output to 0-10V output
A simple non-inverting amplifier with a single-supply or RR I/O precision (low Vos TCVos and high gain) op-amp will meet that requirement, at least in theory. The low output offset is not a problem if …
2
votes
MAX31855 and Type K sensor seem to top down at -60°C (should be measuring -80°C)
The MAX31855 applies no linearization, the equation:
VOUT = (41.276µV/°C) x (TR - TAMB)
is used.
Thermocouples such as K are more-or-less linear so it's good enough for narrow ranges near where t …
2
votes
why is a crystal needed to program microcontrollers
It depends on the programming hardware the designers built into the chip.
Usually they want to be to program it (in some mode) without external components so they can be supplied pre-programmed.
B …
11
votes
Accepted
Can SPI and I2C be implemented using GPIO pins?
For example, SPI master can easily be bit-banged but SPI slave at 10MHz is probably impossible on a slow micro, and even at much lower speeds you would likely have to block interrupts. …
3
votes
Accepted
How do I calculate to get the correct timing for SPI
SPI usually cares little of clock speed (or jitter) provided the clock frequency is not too high and other timing is respected.
However you do need to get the SPI mode correct. …
4
votes
Accepted
How can I write high-speed A/D data to an SD card?
You may not be able to do this with a PIC33, and almost certainly not just any PIC33. Some flash cards 'go away' for long periods of time (tens of milliseconds or more) despite the high throughput thi …
2
votes
Is using SPI communication for 3 meters length still tolerable?
I would expect problems if you try to use SPI directly- clock reflections as well as when you try to operate at higher speeds. … You can use SPI with a minor modification though- insert some LVDS drivers and receivers and drive balanced twisted-pair lines differentially in each direction. …