Logic

From Attie's Wiki
Jump to: navigation, search

This page has useful information for use with the Saleae Logic software

SPI Export

When you export SPI data, it comes in very unhelpful two line format... The following will de-munge the data:

cat spi.csv | awk -F , 'BEGIN{prev=0;print "Time,MOSI,MISO"}{if ($2 == "MISO Data") {printf "%s,%s,%s\n", $1, prev, $3} else {prev = $3}}' > spi.done.csv
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox