a test program for my SPI_IS25LQ032B library. please set local-echo on for the terminal program.

Dependencies:   SPI_IS25LQ032B mbed vt100

At start up the program show the list of available commands

起動すると、使用出来るコマンドの一覧が表示されます。

/media/uploads/Rhyme/000_is25_startup.jpg

To see the contents of the first 256 bytes of memory, type

dump 0x00

最初の256バイトを表示させるのには dump 0x00 と入力してください。

/media/uploads/Rhyme/001_is25_dump_0x00.jpg

Let's write a value 0xA5 to address 0x10

write 0x10 0xA5

Then see the result with

dump 0x00

先ず、アドレス 0x10 に 0xA5 を書き込みます。 write 0x10 0xA5

その結果を再度 dump 0x00 コマンドで表示させると

/media/uploads/Rhyme/002_is25_write_read_dump.jpg

To erase the entire memory, use command

cer

メモリ全体を初期化するのには cer コマンドを使用してください。

/media/uploads/Rhyme/003_is25_cer_dump.jpg

Revision:
1:c92b1fb10573
Parent:
0:a9c975f17ca4
Child:
2:05ddb1d95e2a
diff -r a9c975f17ca4 -r c92b1fb10573 main.cpp
--- a/main.cpp	Thu Dec 25 00:48:33 2014 +0000
+++ b/main.cpp	Tue Mar 28 00:48:14 2017 +0000
@@ -9,7 +9,12 @@
 // D12 SPI0_MISO (PTD3) 
 // D11 SPI0_MOSI (PTD2)
 // D10 SPI0_PCS0 (PTD0)
+#if FRDM_KL25Z
 SPI_IS25LQ032B spi_mem(PTD2, PTD3, PTD1, PTD0) ;
+#endif
+#if FSHAFT_II
+SPI_IS25LQ032B spi_mem(PTD5, PTD7, PTD6, PTC0) ;
+#endif
 
 void usage(void)
 {