demo sample to drive PCU9955 and PCA9629

Dependencies:   mbed I2C_slaves PCU9669 parallel_bus

Fork of mini_board_PCU9669 by InetrfaceProducts NXP

What is this?

This is a sample code to operate PCU9955 (16ch constant-current LED controller) and PCA9629 (intelligent stepper motor controller) through PCU9669 (3 channels (UltraFast mode * 2ch, FastModePlus *1ch) I2C bus controller).

This demo is written based on mini_board_PCU9669 sample code library and its API.
http://mbed.org/users/nxp_ip/code/mini_board_PCU9669/

Demo will shows how the LED controllers and stepper motor controllers works.
It uses a mini_board_PCU9669 board with mbed, 8 of PCU9955s and 5 PCA9629s.

/media/uploads/nxp_ip/dsc_0414ss.png
Demo setup
(left-top: PCU9955 boards, left-bottom: mini-board PCU9669 with mbed, right: PCA9629 x5 board)

/media/uploads/nxp_ip/demo-config-ss.png
Board connections and device addresses

Reference:

User manual of PCU9669 demo board: Mini board PCU9669

http://www.nxp.com/documents/user_manual/UM10580.pdf

sample code : mbed programs

Import programmini_board_PCU9669

mini board PCU9669 (and PCA9665) sample code

Import programPCA9955_Hello

PCA9955 16 channel current drive(sink) LED driver sample code

Import programPCA9955_simple

very simple sample code for PCA9955 (16 channel current control LED driver)

Import programPCA9629_Hello

Sample code for PCA9629 operation

device infomation

PCU9669 (Parallel bus to 1 channel Fm+ and 2 channel UFm I2C-bus controller)
PCU9955 (16-channel UFm I²C-bus 57 mA constant current LED driver)
PCA9955 (16-channel Fm+ I²C-bus 57 mA constant current LED driver)
PCU9629 (Fm+ I2C-bus stepper motor controller)

Revision:
4:c50d5596cb47
Parent:
2:401c24301f60
Child:
5:57c345099873
--- a/main_PCU9669.c	Wed Mar 21 05:44:39 2012 +0000
+++ b/main_PCU9669.c	Wed Mar 21 05:47:54 2012 +0000
@@ -76,17 +76,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;
 
@@ -100,7 +89,6 @@
     { PCx9955_ADDR0, PCx9955_reg_data, sizeof( PCx9955_reg_data ) },
     { PCx9955_ADDR0, &PCx9955_reg_read_start_address, 1 },
     { PCx9955_ADDR0 | 0x01, read_buffer, sizeof( read_buffer ) }
-//    { 0x4A, PCx9629_reg_data, sizeof( PCx9629_reg_data ) }
 };
 
 char    read_done   = 0;