No, there is no problem with SPI on the Mega. If there were it would have been noticed by now.
Instead it's either the way you are measuring it or your method of generating the SPI signals that are at fault (and since you won't show us your real code we can't help you with that).
This is a trace of your provided "code" with the delays reduced to allow easier fitting on a single trace:
[![enter image description here][1]][1]enter image description here
Clock goes low when SPI.begin()
is called. Then there are the successive transfers - the first being in setup()
and the rest in loop()
. As you can see they are all identical.
[1]: https://i.sstatic.net/TxFfA.png
No, there is no problem with SPI on the Mega. If there were it would have been noticed by now.
Instead it's either the way you are measuring it or your method of generating the SPI signals that are at fault (and since you won't show us your real code we can't help you with that).
This is a trace of your provided "code" with the delays reduced to allow easier fitting on a single trace:
[![enter image description here][1]][1]
Clock goes low when SPI.begin()
is called. Then there are the successive transfers - the first being in setup()
and the rest in loop()
. As you can see they are all identical.
[1]: https://i.sstatic.net/TxFfA.png
No, there is no problem with SPI on the Mega. If there were it would have been noticed by now.
Instead it's either the way you are measuring it or your method of generating the SPI signals that are at fault (and since you won't show us your real code we can't help you with that).
This is a trace of your provided "code" with the delays reduced to allow easier fitting on a single trace:
Clock goes low when SPI.begin()
is called. Then there are the successive transfers - the first being in setup()
and the rest in loop()
. As you can see they are all identical.
No, there is no problem with SPI on the Mega. If there were it would have been noticed by now.
Instead it's either the way you are measuring it or your method of generating the SPI signals that are at fault (and since you won't show us your real code we can't help you with that).
This is a trace of your provided "code" with the delays reduced to allow easier fitting on a single trace:
[![enter image description here][1]][1]
Clock goes low when SPI.begin()
is called. Then there are the successive transfers - the first being in setup()
and the rest in loop()
. As you can see they are all identical.
[1]: https://i.sstatic.net/TxFfA.png