Quick test program to check LPC1768 SPI interface to 25AA080A Microchip SPI 8k EEPROM

Dependencies:   mbed

Fork of SPI_HelloWorld_Mbed by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mcei
Date:
Thu Nov 19 17:08:41 2015 +0000
Parent:
1:d1403e3aa88b
Commit message:
Added comments

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d1403e3aa88b -r 853d24908e9f main.cpp
--- a/main.cpp	Thu Nov 19 17:07:34 2015 +0000
+++ b/main.cpp	Thu Nov 19 17:08:41 2015 +0000
@@ -51,7 +51,7 @@
     spi.write(0x00);
     for (int i=0; i<32; i++)
         {
-            ret_val = spi.write(0x01);
+            ret_val = spi.write(0x01); // The address will increment on each read from here
             pc.printf("Reading = 0x%X \t %d\n\r", ret_val, ret_val);
             wait(0.2);
         }