Timeline for Mega SPI communication changing between setup and loop
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 30, 2017 at 19:08 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 30, 2017 at 4:27 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 31, 2017 at 4:21 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 30, 2017 at 21:28 | answer | added | Majenko | timeline score: 1 | |
Apr 30, 2017 at 21:09 | comment | added | Majenko | Oh, and how are you determining that the output is wrong? | |
Apr 30, 2017 at 21:07 | comment | added | Majenko | Well, as it stands that code is invalid and doesn't demonstrate anything at all. With no synchronisation there is no clue what the different clock pulses mean. | |
Apr 30, 2017 at 21:05 | comment | added | john g. | In my actual code, I pull the SS low, send the pin address and the resistor value (2x8 bit signals). The code that I have posted is the most concise script that I can post that creates the issue that I am asking about. I am not concerned with the serial formatting for communicating with the AD5206. My question here is purely concerned with the Arduino serial signal being shifted by -5V in the loop. | |
Apr 29, 2017 at 20:45 | comment | added | Majenko | Except where is the start of the 8 bit SPI signal? Where is your chip select control that frames each transaction and tells the chip where the start of communication is? | |
Apr 29, 2017 at 20:38 | comment | added | john g. | I realize that the above code is not sufficient to control the AD5206. I have only posted a small piece of code that demonstrates the issue that I am seeing. The problem is that the 8bit spi signal is being shifted by -5V in the loop (but not in the setup). | |
Apr 28, 2017 at 19:43 | comment | added | Majenko | You are not controlling the chip properly. Read the datasheet, and learn how SPI communication works, then you will know what is blatantly missing from your code. | |
Apr 28, 2017 at 19:40 | review | First posts | |||
Apr 28, 2017 at 20:12 | |||||
Apr 28, 2017 at 19:35 | history | asked | john g. | CC BY-SA 3.0 |