Click here to Skip to main content
15,891,316 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: SPI Debugging - a question for hardware hackers Pin
jrgrobinson26-May-21 3:07
jrgrobinson26-May-21 3:07 
GeneralRe: SPI Debugging - a question for hardware hackers Pin
honey the codewitch26-May-21 3:48
mvahoney the codewitch26-May-21 3:48 
GeneralRe: SPI Debugging - a question for hardware hackers Pin
Member 1419238226-May-21 4:53
Member 1419238226-May-21 4:53 
GeneralRe: SPI Debugging - a question for hardware hackers Pin
honey the codewitch26-May-21 5:47
mvahoney the codewitch26-May-21 5:47 
GeneralRe: SPI Debugging - a question for hardware hackers Pin
Member 1419238226-May-21 9:05
Member 1419238226-May-21 9:05 
AnswerRe: SPI Debugging - a question for hardware hackers Pin
Owen Lawrence26-May-21 5:32
Owen Lawrence26-May-21 5:32 
GeneralRe: SPI Debugging - a question for hardware hackers Pin
honey the codewitch26-May-21 5:46
mvahoney the codewitch26-May-21 5:46 
AnswerRe: SPI Debugging - a question for hardware hackers Pin
Member 1064287227-May-21 8:50
Member 1064287227-May-21 8:50 
You say you are having trouble reading the data from SPI. DO you have a basic understanding of SPI?

To shorten the process in case the answer is no, I am going to take a wild guess that you may not be aware that in order to read 16 bits of data, you first have to clear your input buffer (may or may not be necessary), write 16 bits of either good data or just 16 bits of zeros. That write of 16 bits will force your device to spit out 16 bits of data onto MISO. Only *then* you can read the 16 bits of real data from your device. Same applies whether you are reading 16 bits of data, or 8 bits, or 24 bits, etc.

There is another issue with SPI. It comes in 4 flavors. It depends on the device you are trying to read/write. I once had an issue where the HW engineer didn't realize he had put a type 1 and a type 3 device on the same SPI bus. It has to do with when the data is valid and the edge of the clock where the data is valid. You can't put a type one and a type 3 on the same bus unless you change the mode at the Master for *every* transaction Frown | :(

Just trying to preemptively point you at possible problems based on not enough information in your post. Hope this helps. Feel free to IM me. I am one of those weird HW guys who also is a heavy duty embedded SW guy.

You could build your own logic analyser given enough time using a TI MSP432E launchpad or a Tiva 1294 Launchpad. Then you could transfer the data to a PC logger that would gather the data and store it. A lot of work but it would let you control what gets stored. A real logic analyser is a better bet though in terms of the time spent.
GeneralRe: SPI Debugging - a question for hardware hackers Pin
honey the codewitch27-May-21 9:15
mvahoney the codewitch27-May-21 9:15 
AnswerRe: SPI Debugging - a question for hardware hackers Pin
Member 1064287227-May-21 8:59
Member 1064287227-May-21 8:59 
GeneralRe: SPI Debugging - a question for hardware hackers Pin
honey the codewitch27-May-21 9:16
mvahoney the codewitch27-May-21 9:16 
GeneralAmazon just aren't computer literate, are they? Pin
OriginalGriff24-May-21 8:44
mveOriginalGriff24-May-21 8:44 
GeneralRe: Amazon just aren't computer literate, are they? Pin
raddevus24-May-21 9:01
mvaraddevus24-May-21 9:01 
GeneralRe: Amazon just aren't computer literate, are they? Pin
David Crow24-May-21 16:15
David Crow24-May-21 16:15 
GeneralRe: Amazon just aren't computer literate, are they? Pin
User 4041124-May-21 18:57
User 4041124-May-21 18:57 
GeneralRe: Amazon just aren't computer literate, are they? Pin
megaadam24-May-21 22:15
professionalmegaadam24-May-21 22:15 
RantStupid recruiters Pin
Dan Neely24-May-21 7:47
Dan Neely24-May-21 7:47 
GeneralRe: Stupid recruiters Pin
Mike Hankey24-May-21 7:57
mveMike Hankey24-May-21 7:57 
GeneralRe: Stupid recruiters Pin
Dan Neely24-May-21 8:16
Dan Neely24-May-21 8:16 
GeneralRe: Stupid recruiters Pin
OriginalGriff24-May-21 8:10
mveOriginalGriff24-May-21 8:10 
GeneralRe: Stupid recruiters Pin
Daniel Pfeffer24-May-21 8:19
professionalDaniel Pfeffer24-May-21 8:19 
GeneralRe: Stupid recruiters Pin
Gerry Schmitz24-May-21 13:46
mveGerry Schmitz24-May-21 13:46 
GeneralRe: Stupid recruiters Pin
Jacquers24-May-21 19:17
Jacquers24-May-21 19:17 
GeneralRe: Stupid recruiters Pin
obermd26-May-21 9:02
obermd26-May-21 9:02 
GeneralHappy 80th. b'day, Bob Dylan ! Pin
BillWoodruff24-May-21 7:13
professionalBillWoodruff24-May-21 7:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.