Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mr11451
Date:
Fri Jun 17 08:40:35 2011 +0000
Parent:
3:3760a4a0b1e9
Commit message:
pin connection comment.

Changed in this revision

KXP84.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/KXP84.h	Tue Jan 25 04:06:21 2011 +0000
+++ b/KXP84.h	Fri Jun 17 08:40:35 2011 +0000
@@ -3,12 +3,12 @@
 #define SAMPLES (26)
 #define _DEBUG
 
-typedef void (*func)(void);
-
 namespace mbed {
 
 class KXX
 {
+    typedef void (*func)(void);
+
     typedef struct {
         int    sample;
         int    buffer;
--- a/main.cpp	Tue Jan 25 04:06:21 2011 +0000
+++ b/main.cpp	Fri Jun 17 08:40:35 2011 +0000
@@ -13,7 +13,23 @@
 void tickproc();
 
 KXP84_2050 kxp84(p11,p12,p13,p14,p10);  /* KXP84 compatible digital SPI input (PinName mosi, PinName miso, PinName sclk, PinName cs, PinName rst) */
+/* SPI mode OUTPUT:
+ * mbed     KXP84-2050        or AE-KXP84 module
+ *  10 ------  8(RESET)           8(RESET)
+ *  11 ------ 10(ADDRO/SDI)       9(ADDRO/SDI)
+ *  12 ------ 11(SDA_SDO)         7(SDA_SDO)
+ *  13 ------ 12(SCL/SCLK)        5(SCL/SCLK)
+ *  14 ------  9(CS)             10(CS)
+ */
+
 //KXM52_1050 kxm52(p10,p15,p16,p17);    /* KXM52 compatible analog input (PinName power, PinName ix, PinName iy, PinName iz) */
+/* ANALOG OUTOUT:
+ * mbed     KXM52-1050(or KXP84-2050 analog output)
+ *  10 ------  2(VDD)
+ *  15 ------  5(X_OUT)
+ *  16 ------  6(Y_OUT)
+ *  17 ------  7(Z_OUT)
+ */
 
 int main() {
     dbg("\rKXP84-2050 Test Program %d.%03d\r\n", VERSION, REVISION);