Parsing the CSV is trivial, getting a logic level from it is also fairly easy. I realise that this is terribly quick & dirty but it worked 100% for what I needed. Here is the high level process
- Ignore timings - SPI is clocked so actual timing is irrelevant for this analysis
- Parse X and Y channels
- Convert clock channel voltage into logic level 1 or 0
- Discard all rows apart from rows where the clock goes high
- Convert data channel to logic level
- Group into bytes
- Display hex value
As I said, very simple but it worked well and I was able to see exactly what was going on. Obviously this only works for synchronous (clocked) protocols like SPI/I2C but that is all I needed.
Here is the full F# script (also see the gist)
No comments:
Post a Comment