mini board PCU9669 (and PCA9665) sample code

Dependencies:   mbed PCU9669 utility PCA9665 I2C_slaves parallel_bus

Fork of mini_board_PCU9669_old by InetrfaceProducts NXP

Sample code for PCU9669 (PCU9661, PCA9663, PCA9661 and PCA9665) evaluation board.

PCU9669 evaluation board: Mini board PCU9669
User manual is available -> http://www.nxp.com/documents/user_manual/UM10580.pdf

Revision:
4:c50d5596cb47
Parent:
3:42f933bd12b3
Child:
5:57c345099873
diff -r 42f933bd12b3 -r c50d5596cb47 main_PCA9665.c
--- a/main_PCA9665.c	Wed Mar 21 05:44:39 2012 +0000
+++ b/main_PCA9665.c	Wed Mar 21 05:47:54 2012 +0000
@@ -55,17 +55,6 @@
     0x08                                        //  OFFSET: 1uS offsets
 };
 
-char  PCx9629_reg_data[] = {  //  This sample data performs ramp-up/down with rotation=2 in 1 second
-    0x80,                                                 //  Strat register address with AutoIncrement bit
-    0x20, 0xE2, 0xE4, 0xE6, 0xE0, 0xFF, 0x10,             //  for registers MODE - WDCNTL (0x00 - 0x06
-    0x00, 0x00,                                           //  for registers IP and INTSTAT (0x07, 0x08)
-    0x0F, 0x03, 0x0C, 0x0F, 0x03, 0x00, 0x03, 0x03, 0x01, //  for registers OP - INT_AUTO_CLR (0x09 - 0x11)
-    0x03, 0x00, 0x30, 0x00, 0x1D, 0x07, 0x1D, 0x07,       //  for registers SETMODE - CCWPWH (0x12 - 0x19)
-    0x2F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,       //  for registers CWSCOUNTL - CCWRCOUNTH (0x1A - 0x21)
-    0x08, 0x08,                                           //  for registers EXTRASTEPS0 and EXTRASTEPS1 (0x22, 0x23)
-    0x38, 0x00, 0x80                                      //  for registers RMPCNTL - MCNTL (0x24 - 0x26)
-};
-
 char    PCx9955_reg_read_start_address  = 0x80;
 
 char    read_buffer[ 46 ];
@@ -99,14 +88,10 @@
                 else
                     set_buffer_mode( DISABLE );
 
-
                 i2c_write( PCx9955_ADDR0, PCx9955_reg_data, sizeof( PCx9955_reg_data ), NEXT_RESTART );
                 i2c_write( PCx9955_ADDR0, &PCx9955_reg_read_start_address, sizeof( PCx9955_reg_read_start_address ), NEXT_RESTART );
                 i2c_read( PCx9955_ADDR0, read_buffer, sizeof( read_buffer ), STOP );
 
-//                if ( !(count % 256) )
-//                    i2c_write( PCA9629_ADDR5, PCx9629_reg_data, sizeof( PCx9629_reg_data ), STOP );
-
 //                dump_read_data( read_buffer, sizeof( read_buffer ) );
 
                 wait( 0.01 );