Ok, So I just trashed the zener diodes and fuses (those are now shorts) that where attached to the connector and tested it again.
Somehow it now works without issues.
@sicco, Assuming you are on the correct path. Somehow the capacitance of the...
In post 15 I did share the connector part (that is currently all there is connected to the pins). Today I am going to remove all the protection circuits as well and see if that brings any improvement.
Since I didn't make the PCB design myself...
Thanks for the test. The current signal is just a test to see if the SPI buffer is being transmitted ok. Your scope confirms my findings on the breadboard so that part is good.
Something must be really really wrong with my PCB. I'll try a 3rd...
🤦♂️Facepalm moment. I updated that part to the following. However it doesn't change the output pattern.
case 2:
if(_spiDone)
{
state++;
_spiDone = false;
}
To make sure...
Well, it keeps on getting stranger and stranger. Today I decided to grab a different scope (Rigol DS1042CD, 40MHz) and to also get the CS1 pin.
So what we have:
1 (Yellow): CS1
2 (blue/green): MOSI
D0 (red): CLK
Note that the overall pattern...
Seems like an interesting idea. (And you are correct in the fact that I have a low bandwidth scope, 25MHz, Picotech 2205A).
Please correct me if I'm wrong here. But since the Teensy is the master (e.g. it determines the speed of the SPI bus)...
As far as I know, no additional hardware is required. So, as requested, an Arduino Sketch. I'm using IDE version 2.3.8 and Teensy version 1.60.0.
#include <Arduino.h>
#include <SPI.h>
#include <atomic>
#define LOOP_DELAY 100
#define CS1_PIN 0...
Yes, I use the exact same code. In VSCode I just hit "upload" while connected to the test setup and to the PCB (not at the same time, I do swap cables).
Unfortunately I can't use UART since there are shift registers connected to the SPI bus...
The issue is that there is a clear difference in the signals SPI coming from the Teensy that is mounted on the PCB vs the one I have on the breadboard. Both teensy IC's are running the same code. (Also, sorry for being unclear. I have spend all...
It's exactly the same chip. They just changed the logo.
NXP acquired Freescale Semiconductor in 2015. But they waited 10 years to finally change the logo on the chips Freescale made, even ones that were released a few years after the merger...
I didn't pay attention to this at first but since I have so many issues, I wanted to rule out everything. When I took a closer look at the PCB I noticed something strange. Somehow the 2 versions are different!?!?
My original on the breadboard...
So, just to check if I'm not crazy I switched back to my old breadboard and the results are interesting. On my PCB version the SPI always outputs 6 bytes with no consistency. On my breadboard it behaves as intended with the same code.
Breadboard...
Since it's work related I have to be a bit careful here. But there haven't been any changes in the pinout. Only hardware was added.
Now that I read my message back I also realize that I forgot to add that I'm using a teensy 4.1 🤦♂️.
Edit: The...
For my current project I want to send out data via the SPI bus using DMA. In my original tests on a prototyping board everything seemed fine. Now I switched to a PCB and somehow everything started breaking.
I attached the full code to the post...