Another short time hack. This one is for test the behavior of the spi module. Probably an Oscilloscope is required to check the wave.

Dependencies:   mbed

/media/uploads/Rhyme/test_spi.jpg

Another short time hack of mine. To check Mr. J's problem, I needed a way to control SPI in a short time. This is an aid for testing SPI module with an Oscilloscope.

You can specify, frequency, bits, mode and number of loops to let the spi write or read.

For FRDM-KL25Z MOSI: PTD2 MISO: PTD3 SCLK:PTD1

Please set "local echo on" in your terminal program.

某JさんのSPIトラブルの様子を確認するのに、作った簡単なSPIテストプログラムです。 オシロスコープでSPIの挙動を見るためのユティリティです。

FRDM-KL25Zの場合、MOSI(PTD2), MISO(PTD3), SCLK(PTD1) で使っています。

ターミナルプログラムのローカルエコーを有効にしてご使用ください。

SPIモジュールの設定(周波数、ビット、モード、そして読み書きのループ回数を設定できます。)

History

MSS supported platforms added. Tested with FRDM-K64F with mbed lib 119 default tip

2016-06-01, by Rhyme [Wed, 01 Jun 2016 07:42:55 +0000] rev 3

MSS supported platforms added. Tested with FRDM-K64F with mbed lib 119


Chip select (D10) added

2016-05-16, by Rhyme [Mon, 16 May 2016 06:28:42 +0000] rev 2

Chip select (D10) added


commit before publish

2014-12-24, by Rhyme [Wed, 24 Dec 2014 12:05:06 +0000] rev 1

commit before publish


First anyway working version;

2014-12-24, by Rhyme [Wed, 24 Dec 2014 11:56:34 +0000] rev 0

First anyway working version;