Home
UM10580 Mini board PCU9669
Contents
1. UM10580 Mini board PCU9669 Rev 1 25 February 2014 User manual Document information nfo Content Keyvvords 12C I2C bus PCU9669 PCA9665 bus controllers mbed Ultra Fast mode UFm Abstract Mini board PCU9669 is a demonstration board for 12 controllers This demo board enables quick and easy evaluation of PCU9669 and PCA9665 with mbed NXP Semiconductors U M1 0580 Mini board PCU9669 Revision history Rev Date Description v 1 20140225 User manual initial release Contact information For more information please visit http www nxp com For sales office addresses please send an email to salesaddresses nxp com UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 2 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 1 Introduction The mini board PCU9669 is an evaluation board kit for 2 controllers the PCU9669 family and PCA9665 This evaluation board can demonstrate its advanced functionality with easy to use software development platform The PCU9669 is a new generation I2C bus controller that supports new Ultra Fast mode UFm which is defined in UM10204 FC bus specification and user manual Ref 1 The PCU9669 bridges the MCU parallel bus and 3 channel I2C buses UFm x 2 ch Fm x 1 c
2. 019aac760 Transfer executed with 10 ms interval Fig 19 I7C bus transfer of sample code PCA9665 10 MSamples fo 32MHz A Start 0 ms d 0 SDAO Fm q m 1 SCLO Fm uu 019aac761 VVaveform vvith different time span from Figure 19 Green dot shows START RESTART conditions Red square shows STOP conditions Fig 20 I7C bus transfer of sample code PCA9665 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 16 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 4 Hardware 4 1 Overview The mini board PCU9669 evaluation board kit is populated with the following three boards Mini board PCU9669 9669 board Mini board PCA9665 9665 board Mini board mbed MCU board Bus controller boards 9669 board and 9665 board work with the MCU board All of these boards have MCU interface port to connect each other For evaluation of PCU9669 use mini board PCU9669 and mini board mbed setup described in Section 3 6 1 For 9665 use mini board PCU9669 and mini board mbed see Section 3 6 2 for the setup 41 1 Power supply Mini board kit can work with single 5 V supply The power can be taken from MCU module DC connector on MCU board or 12C connector on bus controller board 3 3 V supply for the bus controller is provided
3. Type E ll mini board PCU9669 E mini board libs Program Folder 0 config h Header File LE main PCA9665 c Source File LE main PCU9669 c Source File mbed Library 019aac736 The list of files is shown after importing Fig 8 Program has been imported into compiler 3 6 1 4 Set the target and compile Open config h file click on config h icon in left column in mini board PCU9669 program and un comment the line of define CODE FOR PCU9669 All other lines should be commented out ini poard_pcus669 moe i mbed Compiler iin be c 3 https mbed org compiler z 3 Compile the program mbed Compiler mini board PCU9669 config h T Ey import EF Workspace Li see B Seal FH comple Commit 6 Revisions Program Workspace PCU9669 and PCA9665 codes are packed in a project 14 Before builidng tbe code please edit the file mini boad Uncomment the target name vhat you want to target J aefine CODE FOR PCA9663 ozine CODE FOR PCA9665 Er Un comment this line Leaveit as default 019aac737 Fig 9 Set the target and compile UM10580 All information provided in this document is subject to legal disclaimers O NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 10 of 57 NXP Semiconductors U M1 0580 UM10580 Mini
4. 3V3 pcu9669 mini mbed Sheet 1 1 019aac796 9 SINEWAYIS 6996Ndd pJeoq iui S10 INPU021W3S AXN 08S0LINN jenuew s s 9102 ueniq q sz eu sieuirejosip eba o lqns si juawnoop siy ui pepioud uomeuuojui Iv 460 Zv 0890 LIAC pansasal syfu V 0 NG dXN aA a 5 31 MGU Parallel IF GND Fig 47 Mini board PCU9669 minil 5V 1 2 a aV 2 3 JP5 Pate VODIO sei Ra 18 for PCUS669 Do not m Sol ar m Fine port E CHO Mini board PCU9669 version 2 0 CONI pcu9669 mini 9669 2012 01 23 19 37 Sheet 1 1 ya 019aac797 6996NDd pJeoq iui S10 INPU021W3S AXN 08S0LINN jenuew asn 9102 ueniq q sz eu sieuirejosip eba o lqns si juawnoop siy ui papi road uomeuuojui Iv 46 JO 8t 0890 LAN pansasal Syu V 7102 NG dXN Fig 48 Mini board PCA9665 MS3V3 ON 1005 Ik2 ohm tor mA BABY TKk2 200 tor 20mA BS 6V for Fast mode 400kHz tor Fasi mode Plus 114Hz us PGA9665 RESET Bypass Mini board PCU9665 version 1 0 pca9665mini 2012 01 23 19 42 Sheet 1 1 019aac798 6996NDd pJeoq iui S10 INPU021W3S AXN 08S0LINN NXP Semiconductors U M1 0580 Mini board PCU9669 7 Appendix A Transfer management of PCU9669 UM10580 7 1 The PCU9669 has a unique feature for the transfers Each channel
5. NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 7 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 019aac733 RED jumper positions must be shorted Opened jumpers should be left open GREEN jumpers are optional Fig 5 Default jumper setting 3 6 1 2 Preparation software mbed This evaluation system uses the mbed software development environment Obtain an account and become familiarized with the mbed tools before using this kit The mbed guide is available on these pages http mbed org handbook Setup guide http mbed org handbook Dovvnloading a program http mbed org handbook Creating a program 3 6 1 3 Importing sample code A sample code for the mini board kit is available on mbed org site Go to this URL page and import the code into your compiler http mbed org users nxp ip code mini board PCU9669 To import the code click the import this program link After clicking the link the program a project package will appear on your on line IDE Figure 6 Figure 7 and Figure 8 UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 8 of 57 NXP Semiconductors U M1 0580 UM10580 Mini board PCU9669 O mbed org users nxp ip code mini board 9 TA El facebook HGoopie Inet l nevs wea
6. 9665 board Any connector in a channel can be used for I2C bus connections 019aac757 PCA9665 should have 12 address 0xCO Fig 16 Board connection for 9665 mini board mbed mini board PCA9665 019aac758 RED jumper positions must be shorted Opened jumpers should be left open GREEN jumpers are optional Fig 17 Default jumper settings 3 6 2 2 Preparation software Software setup is same as setup of 9669 Follow section Section 3 6 1 2 but be sure the configuration header file config h file has right target setting Un comment the line of define CODE FOR PCA9665 and comment out all other lines UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 15 of 57 NXP Semiconductors UM10580 UM10580 3 6 2 3 Mini board PCU9669 I7C bus transfer on PCA9665 I C bus transfer will be repeated with 10 ms interval on PCA9665 On the I2C 42 bytes write 1 byte write and 41 bytes read will be performed These transactions are doing the PCA9955 registers write from MODE1 to OFFSET and read back see Figure 11 The second and third transaction will be started with RESART condition PCA9955 Demo board 9665 board 019aac759 Fig 18 Sample code 12 transfer on PCA9665 0 SDAO Fm IM 1 SCLOFm4 an
7. ISR installed 25 26 27 8 Appendix B Performance of emulated parallel bus UM10580 As mentioned in an earlier part of this document this evaluation kit has GPIO emulated parallel bus This section describes its performance as a reference The bus access can be performed if MCU has parallel bus hardware Seconds div 1 000 us mm Delay 11 005 ms mu address all data all cs all or all 4rd all Zint all reset all 019aac790 Fig 49 Parallel bus access register access sample All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 51 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 8 1 Bus access cycle on parallel bus 8 1 1 Normal access The mbed GPIO performs parallel bus by software For the register accesses it has about 2 MHz bus cycle This access can be done in each register access function call 8 1 2 Burst access Bus access between an array in software and PCU9669 PCA9665 internal buffer can be optimized For this purpose hardware abs has burst access option interface With this interface the buffer access cycle can be 6 MHz This access can be done by call of write data burst and read data burst 9 Appendix C Known problem 9 1 Signal name label on CON2 of 9665 board The SDA and SCL are labeled incorrectly on CON2 of 9665
8. 1 UM10580 Mini board PCU9669 MCU module The mini board mbed this will be called MCU board in following sections is a baseboard for an MCU module The mini board kit uses an mbed NXP LPC1768 or LPCXpresso LPC1768 LPC1769 see Section 5 1 for how the LPCXpresso can be used The MCU board has MCU module socket 2 times 20 x 2 header sockets Inner rows of each of the 20 pins are used to connect the MCU module The outer side of this slot is available for probing the signal P Semiconductors Feb 2012 nBED 019aac766 Use inner row to connect the MCU module Fig 25 MCU module socket The MCU is powered from the USB connector on its module or from the DC connector on this MCU board The mini board kit can be operated by supply from the MCU module because the mbed can provide 5 V and 3 3 V supplies However those supply capacities are limited a few hundred mA for each so they are not capable of supplying directly high current LED slave boards If high current is required the supply should be taken from external DC supply through DC jack J1 or slave side through bus controller boards All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 20 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 4 2 2 Connectors The MCU board has several connectors to interface to the bus controller bo
9. Expecting transfer 5 0x50 0x80 N x S START condition P STOP condition 019aac782 Fig 41 4 byte transfer sample on PCU9669 channel 1 At beginning of the code tvvo header files should be included PCU9669 access h is a file to define the prototypes of PCU9669 register access transfer manager h defines abstraction interface of buffer operations include transfer manager h include PCU9669 access h In the main function three functions are required to call before 12 operation The hardware initialize function setups initializes the parallel bus reset function asserts RESET signal for the PCU9669 and also for the slaves if the jumper pin JP9 is set All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 41 of 57 NXP Semiconductors U M1 0580 UM10580 Mini board PCU9669 reset function takes two arguments First argument is RESET pulse width in micro seconds second argument is RESET recovery time wait time after RESET de assertion in micro seconds 4 and 650 are minimum values for PCU9669 start bus controller function checks and waits for the PCU9669 to be ready then checks the device ID If it fails the program may need to care for this error hardware initialize reset 4 650 if start bus co
10. INT signal is OFF short default Pull up resistor for INT signal is ON JP7 open Pull up resistor for EINT signal is OFF short default Pull up resistor for EINT signal is ON RESET INT signals RESET signals for PCU9669 can be shared with I C bus slave devices This setting can be done channel by channel on JP9 Table 8 9669 board jumper settings RESET and INT signals RESET and INT signals default all pins short Jumper Setting Description JP8 short pin 1 and pin 2 Connect RESET signal to slaves on channel short pin 3 and pin 4 Connect RESET signal to slaves on channel 1 short pin 5 and pin6 Connect RESET signal to slaves on channel 2 JP9 short pin 1 and pin 2 Connect INT EINT signal from slaves on channel 0 short pin 3 and pin 4 Connect NT EINT signal from slaves on channel 1 short pin 5 and pin6 Connect INT EINT signal from slaves on channel 2 Signals MCU bus signal levels The PCU9669 parallel interface logic level is 4 6 V maximum So make sure that the logic level is compatible if user going to use a different MCU interface to the 9669 board I2C bus UFm channels Since the UFm signals are push pull outputs those lines have no pull up resistor With PCU9669 the resisters R5 R6 R7 and R8 are left open because those resisters are pull ups for channel 1 and channel 2 I2C bus lines All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights
11. access cycle on parallel bus 52 Normal access 52 Burst access 52 Appendix C Known problem 52 Signal name label on CON2 of 9665 board 52 Appendix D Setup sample with PCU9955 and PCA9955 boards 53 Abbreviations 55 References Rr rh m s ma 55 Legal information 56 Definitions soceri earan dee E does Rasen 56 Disclaimers 56 Trademarks 56 Contenls 57 Please be aware that important notices concerning this document and the product s described herein have been included in section Legal information NXP B V 2014 All rights reserved For more information please visit http www nxp com For sales office addresses please send an email to salesaddresses nxp com Date of release 25 February 2014 Document identifier UM10580
12. available on two types of connectors with supply lines Each channel has 5 pins JST PH type and 14 pins JST PHD type connectors The 5 pin connectors have I C bus signals SDA and SCL with GND 5 V and 24 V supply lines 14 pin connectors have I2C bus signals with GND 5 V 3 3 V 12 V and 24 V supply lines as well as RESET and INT signals The 9669 board can provide 5 V and 3 3 V supplies to slave boards by jumper settings If user needs 12 V or 24 V at slave boards that needs to be managed by slave side These high voltage supply lines are connected to each other across the channels RESET and INT signals can be connected to the MCU side with jumper settings Fm 12 channels for channel of PCU9669 and all channels of PCA9663 have Fm board port E type connectors Those connectors can be used when trying to connect the Fm version 2 board UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 27 of 57 NXP Semiconductors UM10580 UM10580 4 3 1 3 Table 4 Signals on connector pins 5 pin I C bus connector Connector JST PH type B5B PH K S Mini board PCU9669 Pin number Signal name 1 24 V supply 2 5 V supply 3 SDA 4 SCL 5 GND Table 5 Signals on connector pins 14 pin I2C bus connector Connector JST PHD type S14B PHDSS Pin number Signal name 1
13. be used for forwarding slave s interrupts to MCU This is the EINT External INT signal The slave s interrupt signals can be connected to MCU via JP8 settings This is a limitation of this evaluation kit since the signal line is shared by TRIG and external interrupt 4 4 Mini board PCA9665 9665 board Mini board PCU9665 9665 board has a PCU9665 as a bus controller that bridges MCU interface parallel port to an Fm 12 5 Those I C bus are available in 5 pin or 14 pin connectors and 14 pin header with supply lines board v1 2 H 3U3 0N Sa NAYON o x 3 eno i INT PU TRIG NTSS Bypass JRZ a PCAS66S ZINTCS p RESET PU 5 v E73 wo k 50 INT RESET Sel N 954 ue Dm hun o NG 1 E i RESETCS 10 eH La o 2 P N AS BA s pull up Fm port E CON3 0 s NCU interface Mini board v2 pinning MCU Parallel IF Fm pull up 1 K 4 4 i P 12 b b s E ig ang Z 655 NXP bili cendur ters Feb 2e12 OND 4 019 775 Fig 34 Mini board PCA9665 9665 board UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 33 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 4 4 1 Connectors 14 pins I2C connector mins ANAY 1 CON2 5 pins I2C connect
14. board PCU9669 3 6 1 5 Copy the executable and let it run When the compilation has completed successfully the development tool will let you download an executable file mini board PCU9669 LPC1768 bin Download this file and copy into the mbed The mbed appears as a USB storage device on the PC Just save a file from web browser into mbed or save the file on local storage and copy the file by drag and drop into the mbed The demo is started after pressing the reset button on the mbed or MCU board 019aac738 Press one of these buttons to start the program Both buttons have the same function Fig 10 Reset buttons All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 11 of 57 NXP Semiconductors U M1 0580 UM10580 3 6 1 6 Mini board PCU9669 12C bus transfer on PCU9669 The sample code demonstrates 12 transfer on PCU9669 The I C bus transfers are repeated in every 10 ms period on each of the three channels On the Fm channel channel 42 bytes write 1 byte write and 41 bytes read are performed These transactions are doing the PCA9955 registers write from MODET to OFFSET and read back The second and third transactions are started with the RESART condition 0x80 0x80 Register address with Al flag Register address with Al flag Pointing write start register Poi
15. from MCU board mag 5 V from AC adaptor 2 x 5 V from slave boards EET M PCA9955 M Demo board PCU9955 Demo board m PCU9955 Demo board pa Na 5 ao 019aac762 Three sources from which the 5 V supply can be taken Fig 21 Single 5 V supply required The power supply configuration should be set properly by jumpers on MCU board and bus controller board 12 V and 24 V supplies on the I C bus connectors are not connected to the bus controller circuit Those high voltage lines are interconnected between the I C bus connectors UM10580 All information provided in this document is subject to legal disclaimers Rev 1 25 February 2014 NXP B V 2014 All rights reserved 17 of 57 User manual NXP Semiconductors UM10580 Mini board PCU9669 UM10580 43 J4 00 00 oooo J1 J2 5V Bus controller amp VDDIO supply 9669 board MCU board id 5V 3 3V regulator 5V line 3 3V line 019aac763 Fig 22 5 V 3 3 V lines and jumpers on MCU and 9669 boards 5V Bus controller supply 9665 board MCU board bed ox 5V 3 3V regulator VALI 3 3V line 019aac764 Fig 23 5 V 3 3 V lines and jumpers on MCU and 9665 boards All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved 18 of 57 User manua
16. illustrative purposes only NXP Semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification Customers are responsible for the design and operation of their applications and products using NXP Semiconductors products and NXP Semiconductors accepts no liability for any assistance with applications or customer product UM10580 All information provided in this document is subject to legal disclaimers design It is customer s sole responsibility to determine whether the NXP Semiconductors product is suitable and fit for the customer s applications and products planned as well as for the planned application and use of customer s third party customer s Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products NXP Semiconductors does not accept any liability related to any default damage costs or problem which is based on any weakness or default in the customer s applications or products or the application or use by customer s third party customer s Customer is responsible for doing all necessary testing for the customer s applications and products using NXP Semiconductors products in order to avoid a default of the applications and the products or of the application or use by customer s third party customer s NXP does not accept any liability in this respect Expor
17. main PCU9669 c The word coDE_FOR_PCA9665 enables the code in main PCA9665 c All libraries will be compiled together but un used code will be un linked All code except hardware abstraction layer is written in ANSI C standard format This helps to easily port the code Only the hardware abstraction layer has hardware and environment related operations The structure is shown in Figure 38 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 38 of 57 NXP Semiconductors U M1 0580 5 2 2 5 2 3 5 2 4 UM10580 Mini board PCU9669 C p M 4 v idefine CODE FOR PCU9669 define CODE FOR PCA9665 transfer manager c h PCU9669 access c h 019aac779 The program includes code for both targets The target is managed by word in config h switch by compile option Two different executable binaries can be built by this compile option Fig 38 Target switching and modules Hardware abstraction layer Hardware abstraction is done on parallel bus library This library emulates parallel bus Abstracting the GPIO access and interrupt service routines All mbed dependents are encapsulated in this library This module is the main part of the modification if the code is needed to be ported PCU9669 access layer The PCU9669 hardw
18. not compatible to the yellow mbed main chip LPC11U24 port configuration The following equipment is not mandatory but recommended to see the demo features Next boards can be used as I2C bus slave devices that enable seeing the PCU9669 working by LED blinks dimming If these boards are not available user can check the operation by checking the 12 signal with an oscilloscope or a logic analyzer PCA9955 and PCU9955 are constant current drive 16 channel LED controllers PCA9955 demo board constant current drive 16 channel LED controller Fm 12 PCU9955 demo boards 2 boards constant current drive 16 channel LED controller UFm 12C bus 5 V power supply is required to power those boards 5 V gt 1 5 A AC adapter is suitable The DC connector is a 2 1 mm 5 5 mm outside diameter standard type with inner 5 V and outer ground 019aac731 Fig 3 DC 5 V connector All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 6 of 57 NXP Semiconductors U M1 0580 UM10580 Mini board PCU9669 Connections 1 Make sure the all jumper settings are in default position see Figure 5 2 Connect MCU board mini board MCU and 9669 board mini board PCU9669 3 Put the mbed on MCU board 4 Connect a PCA9955 board and PCU9955 boards on each 12C channel Any connector on each channel can be used for sl
19. on this channel Channel 1 and channel 2 of PCU9669 are UFm channels Fig 1 Sample allocation diagram using Mini board PCU9669 UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 3 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 2 Features Complete evaluation platform for the PCU9669 and the PCA9665 e C connectors are compatible with 1 C bus slave device demo boards Easy software development capability powered by mbed org Complete sample code for PCU9669 and PCA9665 operation The sample code built in layers to abstract levels of the control The layered code structure makes code porting easy 00000006000000 00000000000000 00000000000090 00000000000000 00000000000000 AM 1 41 LED y LN g E LED am ard pr 7992156 PN K 2 8 019aac730 Upper PCA9665 board and MCU board vvith mbed Lower PCU9669 board and MCU board with mbed Fig 2 Mini board PCU9669 evaluation kit UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 4 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 3 Getting started 3 1 Assumptions Familiarity with the 12 is helpful but not required 3 2 Target version
20. replacement of any products or rework charges whether or not such damages are based on tort including negligence warranty breach of contract or any other legal theory Notwithstanding any damages that customer might incur for any reason whatsoever NXP Semiconductors aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the Terms and conditions of commercial sale of NXP Semiconductors Right to make changes NXP Semiconductors reserves the right to make changes to information published in this document including without limitation specifications and product descriptions at any time and without notice This document supersedes and replaces all information supplied prior to the publication hereof Suitability for use NXP Semiconductors products are not designed authorized or warranted to be suitable for use in life support life critical or safety critical systems or equipment nor in applications where failure or malfunction of an NXP Semiconductors product can reasonably be expected to result in personal injury death or severe property or environmental damage NXP Semiconductors and its suppliers accept no liability for inclusion and or use of NXP Semiconductors products in such equipment or applications and therefore such inclusion and or use is at the customer s own risk Applications Applications that are described herein for any of these products are for
21. 0580 Reset svvitch 019aac769 Fig 28 Jumpers and switch on the MCU board Supply configuration can be changed by jumper pins Table 3 Power setting summary is available in Table 1 in Section 4 1 1 Power supply Table 3 MCU board jumper settings MCU board power supply setting Jumper State Description JP1 open default 3 3 V is from MCU module short 3 3 V is from regulatorl JP2 short pin 1 and pin 2 Use 5 V supply from DC jack J1 or bus controller board default short pin 2 and pin 3 Use 5 V supply from MCU board 1 mbed and LPCXpresso with LPC Link have a 3 3 V regulator on that module but if the LPCXpresso as target itself without LPC Link short this JP1 to use regulator on MCU board 5 V supply Short pin 1 and pin 2 on JP2 when the 5 V supply is from the DC jack or bus controller board Shorting pin 2 and pin 3 is a setting to use 5 V supply from the MCU module supplied from the PC through USB When the 5 V supply is available LED1 green LED on the MCU board will be turned ON All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 24 of 57 NXP Semiconductors U M1 0580 UM10580 4 2 3 2 4 2 3 3 4 3 Mini board PCU9669 3 3 V supply The MCU board does not require 3 3 V supply MCU works with 5 V only but the bus controller boards req
22. 10580 NXP Semiconductors Mini board PCU9669 Series resistors Pull up resistors Fig 33 12 pull up and series resistors INT The INT signal from PCU9669 is connected to MCU with 4 7 kQ pull up resistor The 019aac774 pull up resistor can be disabled by JP6 open RESET RESET is given from MCU as open drain signal with MCU internal pull up So the signal can be driven from slave side too This RESET signal does not reset the PCU9669 only but the slaves also when those are connected by JP9 jumpers If the reset signal is shared with slave devices adjust the reset pulse width and reset recovery time in the software TRIG EINT TRIG is a trigger signal from MCU to PCU9669 This can start the I C bus transfer if the channel is set for TRIG signal The TRIG signal is an advanced feature of PCU9669 This enables the synchronization of the 12 transfer to external timing source like video sync signal The trigger function can be enabled disabled by PCU9669 s channel register setting The sample code software has function to drive this but disabled in default NXP B V 2014 All rights reserved 32 of 57 All information provided in this document is subject to legal disclaimers Rev 1 25 February 2014 UM10580 User manual NXP Semiconductors U M1 0580 Mini board PCU9669 While the TRIG signal is not used this line can
23. 12 iP 9669 9661 0M13328 PCA9663 9661 019aac770 Fig 29 Mini board PCU9669 9669 board All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 25 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 4 3 1 Connectors Fm board port E type connector pins I2C connector ini board PCU9669 Bus controller MCU interface connector Mini bogfd PCU9669 v2 0 Option connector PCU9669 14 pins I2C connector 019aac771 CONT is not available on PCU9669 Fig 30 9669 board connectors UM10580 All information provided in this document is subject to legal disclaimers O NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 26 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 Channel 0 Channel 1 Channel 2 019aac772 Channel 0 Fm Channel 1 and channel 2 UFm Fig 31 Channels on the 9669 board 4 3 1 1 Bus controller MCU interface connector The MCU interface connector is available as CONS This connector is intended to connect to the MCU board s CON1 or user MCU target board s parallel bus signals Pin list is shown on Table 2 in section Section 4 2 2 1 4 3 1 2 12 interface connectors All three channels of I2C bus signals are
24. 2014 All rights reserved User manual Rev 1 25 February 2014 53 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 019aac793 019aac794 a J3 connector b J5 connector Fig 52 J3 and J5 connectors can be used for mini board connection Both J3 and J5 connectors on the LED controller board can be used The LED boards can be connected in daisy chain using those connectors P 019aac795 With the default setting of mini board all power supply can be taken from DC connector The 5 wire connector including I C bus signals and power supply 5 V Two PCU9955 boards are connected in daisy chain Fig 53 PCU9955 boards are working UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 54 of 57 NXP Semiconductors UM10580 11 Abbreviations Mini board PCU9669 Table 12 Abbreviations Acronym Al Fm GPIO I2C bus IDE LA LED MCU PC SDK UFm USB Description Auto Increment Fast mode Plus General Purpose Input Output Inter Integrated Circuit bus Integrated Development Environment Logic Analyzer Light Emitting Diode MicroController Unit Personal Computer Software Development Kit Ultra Fast mode Universal Serial Bus 12 References 1 UM10204 I2C bus specification and user manual Rev 5 9 October 2012 NXP Semic
25. 24 V supply 2 24 V supply 3 GND 4 GND 5 5 V supply 6 3 3 V supply 7 SDA 8 SLAVE RESET 9 GND 10 SLAVE INT 11 SCL 12 GND 13 12 V supply 14 12 V supply Table 6 Signals on connector pins Fm board port E type header 14 pin header Pin number Pin number Signal name 1 8 SCL 2 9 SLAVE INT 3 10 5 V supply 4 11 GND 5 12 3 3 V supply 6 13 SLAVE RESET 7 14 SDA Optional connector CONS is a connector for a logic analyzer or oscilloscope probes This CONG can be used to connect JP3 or JP4 of MCU board see section Section 4 2 2 2 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 28 of 57 NXP Semiconductors U M1 0580 UM10580 Mini board PCU9669 4 3 2 Jumper settings 4 3 2 1 JP1 2 JP3 JP4 JP5 JP8 JP9 019aac773 Fig 32 Jumpers on 9669 board Power supply The PCU9669 board can get power supply from the MCU interface connector or 12 connector power setting summary is available in Table 1 in section Section 4 1 1 5 V JP1 and JP2 are setting for 5 V supply shorting JP1 connects the 5 V supply to MCU side Shorting JP2 connects 5 V to I2C bus connectors Default setting of this board is both JP1 and JP2 are shorted This means the MCU side and I2C bus connectors 5 V supplies are tied together This setting can be used when t
26. 3 channel status read ch register 0 CHSTATUS 14 15 if global status amp 0x02 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 42 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 16 channel status read ch register 1 CHSTATUS 17 18 if global status amp 0x04 19 channel status read ch register 2 CHSTATUS 20 21 22 23 int main 24 char data 4 0x80 N X P 25 transaction test transaction 0x50 data 4 26 transaction sequence test_transaction 27 28 hardware initialize initializing bit banging parallel port 29 reset 4 650 assert hardware RESET signal 30 31 wait the bus controller ready and check chip ID 32 if start bus controller PCU9669 ID 33 return 1 34 35 interrupt service routine install 36 install ISR amp interrupt handler 37 38 setup transfer 1 channel sequence 1 number of transactions 39 start 1 channel 40 41 while 1 42 43 Figure 42 shovvs the result of the program execution The transfer shovvs START condition address 0x50 P in ASCII character data128 0x80 N X P and STOP condition All byte transfers have NACK because it is a transfer on UFm channel IMSamples 3f SOMHZ 18 0 us 10 p 47 ys 8 ys 9 ws x _ tips 2 y
27. 665 hardware 019aac781 Fig 40 Software structure of PCA9665 program UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 40 of 57 NXP Semiconductors U M1 0580 UM10580 5 3 5 3 1 5 3 1 1 5 3 1 2 Mini board PCU9669 Code modifications This section vvill shovv about hovv to make ovvn transfer on PCU9669 and PCA9665 The transfer management will be discussed in Section 7 Try a transfer to another I C bus slave device Basic setup for 4 byte data transfer This sample shows 4 byte data transfer for a slave that has I C bus address of 0x50 To make transfer for the slave prepare an array that contains data for the slave This sample explains how to make a write transaction for a slave char datal 4 0x80 NV X First some headers needed to be included The hardware abs h is required to be included finclude hardware abs h PCU9669 I C bus transfer For the PCU9669 the sample code performs transfer with information of the transfer sequence The sequence means a group of transactions The transaction means single data transfer to from a slave from START or RESTART condition to STOP or next RESTART condition This code sample shows single transaction in a sequence UFm transfer on channel 1 MCU board 9669 board Transfer on UFm bus channel 1
28. Fig 37 mbec LPCXpresso LPC1769 on the MCU board UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 37 of 57 NXP Semiconductors U M1 0580 UM10580 Mini board PCU9669 5 2 Softvvare structure 5 2 1 Overvievv The sample code of this evaluation kit has been made to demonstrate functionality of PCU9669 and PCA9665 in a quick and easy way The mbed is used for an MCU to control the bus controllers because it has quite unique features to help in building sharing code Also the mbed gives advantage to the evaluation kit by povverful MCU LPC1768 ARM Cortex M8 running in 96 MHz 32KB SRAM 512K flash and libraries However unfortunately the mbed does not have parallel bus to connect the bus controllers On this evaluation kit GPIO is used to emulate the parallel bus The GPIO access is slow compared to normal parallel bus The emulated bus has about 1 MHz to 3 MHz cycle frequency It may be a fair speed to have bus controller evaluation Detailed information is available in Section 8 The program is composed from several modules files libraries in the program Each of the modules make software layers Layers are abstracting lower layers This program includes codes for both PCU9669 and PCA9665 Those modules are switched by compile switch in config h The word CODE FOR PCU9669 enables code in
29. NXP Semiconductors UM10580 Mini board PCU9669 When all JP9 to JP12 jumpers are shorted the pull up resistor will be 1 5 KQ 220 Q 192 Q This makes the I C bus signal current 17 mA at 3 3 V Pull up for RESET and INT Jumper pins are available to choose pull up resistors ON OFF for RESET and INT signals JP4 and JP5 can enable pull up resistors for INT and RESET signals All jumper settings and descriptions are available in Table 10 and Table 11 Table 10 Jumper setting for supplies and signals Jumper JP1 JP2 JP3 JP4 JP5 JP6 JP7 JP8 State open short default open short default open default short open short default open short default open short default open short default short pin left and middle default short pin middle and right Description Disconnect 5 V line between MCU and I C bus connectors Connect 5 V line between MCU and I2C bus connectors Disconnect 3 3 V of MCU side Connect 3 3 V of MCU side Disconnect 3 3 V of I C bus connectors Connect 3 3 V of I C bus connectors Pull up resistor for INT signal is OFF Pull up resistor for INT signal is ON Pull up resistor for RESET signal is OFF Pull up resistor for RESET signal is ON Disconnect INT signal to I C bus connectors Connect INT signal to I2C bus connectors Disconnect RESET signal to I2C bus connectors Connect RESET signal to I7C bus connectors CONG ping connect to IN
30. T signal CONG ping connect to RESET signal Table 11 Jumpers for I C bus pull up resistors Jumper JP9 JP10 JP11 JP12 Description Short to enable pull up 1 5 k for SDA Short to enable pull up 1 5 kO for SCL Short to enable pull up 220 Q for SDA Short to enable pull up 220 Q for SCL UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 36 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 5 Software sample code 5 1 Availability The latest version of the sample code is available on mbed org site http mbed org users nxp ip programs mini board PCU9669 latest This is a complete sample code All code can be browsed on this page Also the code can be imported to user compiler page by just a few clicks Code importing was explained in Section 3 6 1 3 The details of the library interface will not be discussed in this document If required please refer to comments in each header file Descriptions in the files are available in Doxygen format The sample code which is built by mbed compiler can run on LPCXpresso LPC1768 LPC1769 too Next URL explains how to program the mbed code into LPCXpresso http mbed org users nxpfan notebook mbed led blink code on lpcxpresso lpc1 768 019aac778 mbed code can run on both mbed and LPCXpresso LPC1768 LPC1769
31. ard PCU9669 4 4 1 3 Optional connectors CON5 and CONG are connectors for a logic analyzer 4 4 2 Jumper settings 4 4 2 1 JP6 JP7 JP8 JP9 JP10 JP11 JP12 019aac777 Fig 36 Jumpers on 9665 board Power supply The 9665 board can get power supply from the MCU interface connector or I2C bus connector Power setting summary is available in Table 1 in Section 4 1 1 5 V PCA9665 does not require 5 V supply To bypass the 5 V line between the MCU connector and I C bus connector short JP1 3 3 V JP2 and JP3 are setting for 3 3 V supply Shorting JP2 connects the 3 3 V supply to the MCU side Shorting JP3 connects 5 V to the I2C bus connectors Vppilo There is no Vpp oy available because PCA9665 does not support different I O voltages Pull up for 12 signals The I C bus Standard mode and Fm have different current driving capabilities For those differences the 9665 board can select pull up resistors by jumper pins JP9 and JP10 is ON OFF jumper for Standard mode pull up resistors 1 5 KQ resistors can be used as SDA and SCL signal lines on schematic those are shown as 1 2 kO JP11 and JP12 are for Fm 220 Q those are shown as 200 on the schematic resistors can be used when those jumpers are ON All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 35 of 57
32. ard and measurement equipment Option connectors DC5V supply connector mini bgord MCU module slot Bus controller MCU interface connector MCU module piri Logic analyzer connectors 019aac767 Fig 26 MCU board connectors UM10580 All information provided in this document is subject to legal disclaimers O NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 21 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 4 2 2 1 Bus controller MCU interface connector A MIL 50pin connector 1 is available to connect bus controller board This connector contains parallel bus reset interrupt trigger external interrupt signals and 5 V and 3 3 V supply lines All logic signals are at 3 3 V level Table 24 Bus controller MCU interface connector pinning Pin numberl11 Signal name Description Direction 1 A7 Address bus 8 bits From MCU to bus controller 3 A6 5 A5 7 A4 9 A3 11 A2 13 A1 15 AO 17 D7 Data bus 8 bits Bidirectional 19 D6 21 D5 23 D4 25 D3 27 D2 29 D1 31 DO 33 cs Chip select active LOW From MCU to bus controller 35 WR Write strobe active LOW From MCU to bus controller 37 RD Read strobe active LOW From MCU to bus controller 39 INT Interrupt active LOW From bus controller to MCU 41 RESET Reset active LOVV Bidirectional 43 TRIG Trigger signal output Bidirectional External interrupt EINT input 45 CS1 Auxiliary chip select sig
33. are access and transaction sequence can be managed in this library PCU9669 This library has two modules one is PCU9669 access that abstracts the access of the register and memory access Another is transfer manager to manage the transactions and sequence transfer PCA9665 access layer PCA9665 access c in PCA9665 library is an abstracting layer of the PCA9665 device operation this version supports I2C bus master operation only It provides register access abstraction and I2C bus transfer function which is similar to the mbed SDK I2C library functions All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 39 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 5 2 5 Main modules application layer Two main modules are available in the program One is for the PCU9669 and another is for the PCA9665 These files are switched by compile option which is defined in config h file Code of main PCU9669 c is enabled when CODE FOR PCU9669 and code of main PCA9665 c is enabled when CODE FOR PCA9665 Main module application PCU9669 library parallel bus library PCU9669 hardware 019aac780 Fig 39 Software structure of PCU9669 program 4 Main module application PCA9665 access c h PCA9665 library hardware abs c h parallel bus library PCA9
34. ave connections a Set all slave devices PCA9955 and PCU9955 I C address to 0xCO 5 Leave the channel open if no slave device is available The operation can be checked by oscilloscope or logic analyzer on 12 signals a The UFm bus does not care if the slaves are connected or not b But the Fm bus transfer will be terminated when NACK happened Just I2C bus address sending can be seen without slave device 6 Connect DC power supply to J1 on MCU board the LED1 and LED2 on both boards will be turned ON 7 Connect mbed to PC via USB cable This PC connection is not required after executable file is copied to mbed The mbed runs as standalone while it has the file inside The PC connection can be used for power supply via USB if the slave board does not require much current The mbed 5 V output VU pin can share a few hundred mA of USB bus supply Short pin2 and pin3 on JP2 of MCU board when the setup uses the mbed 5 V output See Section 10 Appendix D for the LED controller demo board connection sample DC supply PCA9955 Demo board MCU board 9669 board PCU9955 Demo board PCU9955 Channel 0 Fm channel Demo board Channels 1 and 2 UFm channels Any connector in a channel can be used for I7C bus connections 019aac732 All slave devices should have I2C bus address 0xCO Fig 4 Board connection for 9669 All information provided in this document is subject to legal disclaimers
35. board Q D mini A9665 a 3 PC 019aac791 Fig 50 9665 CON2 SDA and SCL labels should be swapped UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 52 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 10 Appendix D Setup sample vvith PCU9955 and PCA9955 boards The following is a guide for setup sample with PCA9955 and PCU9955 LED controller demo boards The PCA9955 demo board OM13330 and PCU9955 demo board OM13331 can be connected by CONO CON2 and CON4 connectors on the mini board PCU9669 The PCA9955 demo board OM13330 user manual is available at www nxp com documents user manual UM10572 pdf Examples of the interconnection of those boards follow Since the PCU9955 and PCA9955 demo boards have identical design there are a few components option differences here is a sample of the UFm connection For the PCA9955 use Fm channel for the connection 019aac792 Fig 51 Mini board PCU9669 connected to PCU9955 demo board UM10580 Figure 51 is a connection example of interconnection betvveen the mini board and the PCU9955 demo board using channel 1 of PCU9669 output channel 2 can be used also For PCA9955 use CONO which is Fm port All information provided in this document is subject to legal disclaimers NXP B V
36. called when it has been done In the PCU9669 interrupt handler it may need to find the interrupt cause by register information The registers can be read by functions read data and read ch data The read data is for reading global registers It takes single argument of register address The channel registers can be accessed by read ch data It takes two arguments as channel number and register offset The register addresses and register address offsets are defined as the register name same as data sheet in PCU9669 access h For register writing functions that are also available those prototype definitions can be found in PCU9669 access h All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 50 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 1 void interrupt_handler void 2 char global_status 3 char channel_status 4 5 global status read data CTRLSTATUS 6 7 if global status amp 0x01 cht 8 channel status read ch register 0 CHSTATUS 9 do something 0 1 if global status amp 0x02 2 channel status read ch register 1 CHSTATUS 3 do something 4 5 if global status amp 0x04 6 channel status read ch register 2 CHSTATUS 7 do something 8 9 20 21 main 22 23 ee 24 install_ISR amp interrupt_handler
37. ce executed on 10 ms period Fig 14 I7C bus transfer of sample code PCU9669 10 M Samples EE 32 MHz S 0 0 ms 6 ms 0 7 ms 40 8 ms 0 9 ms 40 1 ms 40 2 ms 40 3 ms 40 4 ms 40 5 ms 0 6 ms 40 7 ms 40 8 ms 2 0 SDAO Fm FT qn Ail 1 SCLO Fm 2 USDA1 UFm 3 USCLI UFm 4 USDA2 UFm 5 USCLZ UFm 019aac743 VVaveform vvith different time span from Figure 14 I2C bus transfers on three channels Green dot shows START RESTART conditions and red square shows STOP conditions on SDA lines Fig 15 12 transfer of sample code PCU9669 UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 13 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 3 6 2 PCU9665 demo setup 3 6 2 1 UM10580 Preparation hardvvare Requirements Prepare the following boards for the demo setup Mini board PCA9665 Mini board MCU mbed NXP LPC1768 The following equipment is not mandatory but recommended to see the demo features And next those boards are required as I C bus slaves If these are not available the user can check the operation by checking the 12 signal with an oscilloscope or a logic analyzer but the transfer will be terminated by NACK So only the address transfer can be observed without slave PCA9955 demo board A 5 V pow
38. ce connectors 34 4 4 1 3 4 4 2 4 4 2 1 5 5 1 5 2 5 2 1 5 2 2 5 2 3 5 2 4 5 2 5 5 3 5 3 1 5 8 1 1 5 3 1 2 5 3 1 3 5 3 2 8 1 8 1 1 8 1 2 9 1 10 11 12 13 13 1 13 2 13 3 14 Optional connectors 35 Jumper settings 35 Power supply 35 Software sample code 37 Availability 37 Software structure 38 olay n 38 Hardvvare abstraction layer 39 PCU9669 access layer 39 PCA9665 access layer 39 Main modules application layer 40 Code modifications 41 Try a transfer to another 12 slave oli 41 Basic setup for 4 byte data transfer 41 PCU9669 12C bus transfer 41 PCA9665 12 transfer 44 Modifying library 45 Schematics o lk be rex 46 Appendix A Transfer management of PCUS669 rms 49 Transfer data preparation 49 Data array mw RP a EE 49 Transaction 49 SEQUENCE RR RR 49 Defining the sequence with fewer steps 50 Setup the buffer and tables 50 Transfer start 50 When the transfer is done 50 Appendix B Performance of emulated parallel bus 51 Bus
39. epares the parallel bus reset generates pulse on the RESET line and 9665 init initializes PCA9665 After those initializations 12C write and 12C_read can be called to execute the transfer Those functions will block the execution of the code I2C write 0x50 data 4 STOP Complete sample will be like the following code include PCA9665 access h include hardware abs h int main char data 41 0x80 N X P hardware initialize initializing bit banging parallel port reset 10 10 PCA9665 init set speed mode SPEED FAST MODE PLUS set I2C as Fmt set buffer mode ENABLE use buffer mode of PCA9665 12C write 0x50 data 4 STOP execute transfer while 1 i UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 44 of 57 NXP Semiconductors UM10580 5 3 2 UM10580 Mini board PCU9669 Figure 44 shovvs a result of the program execution The transfer shovvs START condition address 0x50 P in ASCII character data128 0x80 N X P and STOP condition All byte transfers have ACK oxun END Sturt 0 us 80 ps 90 us 10 us 20 us Write TPT 30 us 40 5 50 Hs 7128 NFACK XFACK 60 Hs 70 ps 80 us PY ACK s 0 SDA ud 8 019 785 Fig 44 Not a figure but code sample Modifying library The c
40. er supply is required to power those boards 5 V gt 1 5 A AC adapter is suitable The DC connector is a 2 1 mm 5 5 mm outside diameter standard type with inner 5 V and outer ground Connections 1 Make sure the all jumper settings are in default position see Figure 17 2 Connect MCU board mini board MCU and 9665 board mini board PCA9665 3 Put the mbed on MCU board 4 Connect PCA9955 board to one of the IC connectors on 9665 board Any 2 connector can be used for slave connections a Set slave 12 address to 0xCO b Just IC address sending can be seen if no slave device is connected 5 Connect DC power supply to J1 on MCU board the LED1 and LED2 on the MCU board and LED1 on 9665 will be turned ON 6 Connect mbed to PC via USB cable This PC connection is not required after executable file copied to mbed The mbed runs as standalone while it has the file inside The PC connection USB can be used for power supply if the slave board does not require much current The mbed 5 V output VU pin can share a few hundred mA of USB bus supply Short pin2 and pin3 on JP2 of MCU board when the setup uses the mbed 5 V output All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 14 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 DC supply PCA9955 Demo board MCU board 12C Fm
41. ers and customer s exclusive remedy for all of the foregoing shall be limited to actual damages incurred by customer based on reasonable reliance up to the greater of the amount actually paid by customer for the product or five dollars US 5 00 The foregoing limitations exclusions and disclaimers shall apply to the maximum extent permitted by applicable law even if any remedy fails of its essential purpose Translations A non English translated version of a document is for reference only The English version shall prevail in case of any discrepancy between the translated and English versions 13 3 Trademarks Notice All referenced brands product names service names and trademarks are the property of their respective owners I C bus logo is a trademark of NXP B V NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 56 of 57 NXP Semiconductors UM10580 14 Contents Mini board PCU9669 1 ntroduction 3 Features clu RR Ree Rees 4 Getting started 5 Assumptions 5 Target versionS 5 Static handling requirements 5 Ordering ee eae een ER EIE RES 5 Minimum requirements 5 SETUP Er ECT 6 PCU9669 demo setup 6 Preparation hardware 6 Preparation software 8 Importi
42. h The PCU9669 and its family has a big 4 kB buffer to manage transfers with ultra low CPU load All I2C bus channels can be operated only as a master The PCA9665 is a 1 channel I2C bus controller that cam work in the multi master environment The PCA9665 can work as both I C roles of master and slave I2C bus transfer can be done byte by byte or by using internal buffer up to 68 bytes Sample codes are available for this evaluation board kit They work on an mbed microcontroller that uses NXP LPC1768 as the main MCU The mbed has an advanced software development environment for the microcontrollers The Mini board PCU9669 kit provides a quick and easy way to evaluate the I C bus controllers with mbed s cloud compiler and its powerful libraries The LPC1768 on the mbed board supports building a feature rich demo with its high capability ARM Cortex M3 core runs 96 MHz and 64K SRAM and 512K internal flash This evaluation board kit is populated with the following Mini board PCU9669 9669 board Mini board PCA9665 9665 board Mini board mbed MCU board Sample code Standard Fast mode Fm 12C bus devices PCU9669 I C bus controller 9669 board LED drivers GPIOs Stepper motor Sensors controllers MCU board Mini board PCU9669 Evaluation kit UFm I C bus devices LED drivers 019aac729 Channel of PCU9669 is a Fm channel Normal I7C bus devices can be connected
43. he MCU provides supply for 12C slaves or I C slave supplies 5 V to MCU 3 3 V JP1 and JP2 are setting for 3 3 V supply shorting JP1 connects the 3 3 V supply to MCU side Shorting JP2 connects 5 V to I2C bus Vppio PCU9669 can have 5 V or 3 3 V interface voltage by setting of its Vppo pin This interface voltage can be selected by JP5 Pull up For INT and TRIG EINT signals pull up resistors pull up to 3 3 V can be set by JP6 and JP7 See following section for INT and TRIG EINT signals For pull up resistors of I C bus signals see Section 4 3 3 2 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 29 of 57 NXP Semiconductors U M1 0580 UM10580 4 3 2 2 4 3 3 4 3 3 1 4 3 3 2 Mini board PCU9669 Table 7 9669 board jumper settings power supply and pull up Power supply and pull up settings Jumper Setting Description JP1 open Disconnect 5 V of MCU side short default Connect 5 V of MCU side JP2 open Disconnect 5 V of I C bus connectors short default Connect 5 V of I C bus connectors JP3 open Disconnect 3 3 V of MCU side short default Connect 3 3 V of MCU side JP4 open default Disconnect 3 3 V of I C bus connectors short Connect 3 3 V of I C bus connectors JP5 short pin 1 and pin 2 default Set Vpp io as 5 V short pin 2 and pin 3 Set Vppiio as 3 3 V JP6 open Pull up resistor for
44. ject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 49 of 57 NXP Semiconductors U M1 0580 UM10580 Mini board PCU9669 7 1 4 Defining the sequence with fewer steps 7 2 7 3 7 4 Or if the sequence has fixed data for each transaction it can be defined in this next way char data0 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 char datal 0x08 0x09 0x0A 0x0B char data2 0x0C 0 00 Ox0E x F 0x10 0x11 0x12 0x13 0x14 0x15 char data2 0x00 0x00 OxFF OxFF transaction test sequence xC data0 sizeof data0 0xC4 datal sizeof datal 0x50 data2 sizeof data2 0x5A data3 sizeof data3 dd h b b hi Setup the buffer and tables The buffer and tables can be set by function call of setup_transfer This function takes three arguments of I2C bus channel pointer to sequence that is the pointer to transaction and number of transactions setup_transfer 2 channel number test_sequence sizeof test_sequence sizeof transaction li Transfer start Call start with channel number The channel will start the transfer start 2 When the transfer is done PCU9669 will generate an interrupt to let the MCU know it is done The interrupt handler will be called back In the sample code interrupt handler function is installed before the transfer and it will be
45. l Rev 1 25 February 2014 NXP Semiconductors UM10580 UM10580 Table 1 Jumper settings for 5 V source Mini board PCU9669 Board Jumper DC connector Slave device board J1 MCU board MCU board JP1 openl openl JP2 pin 2 3 short pin 2 3 short 9669 board JP1 short short JP2 if necessaryl2 short JP3 short short JP4 open open 9665 board JP1 if necessary short JP2 short short JP3 if necessary short USB on MCU module openl pin 1 2 short short if necessaryl2 if necessary short if necessary 1 The jumper pin JP1 on the MCU board should be always open while the MCU module is supplying 3 3 V 3 3 V is not available when the LPCXpresso is used without LPC link JTAG debugger portion In this case short the JP1 on the MCU board to supply the 3 3 V from the regulator on the MCU board 2 Be careful to prevent supply conflict Also when supplying to slave boards be sure that there is enough power capacity for all the slave boards that are attached 4 2 Mini board mbed MCU board 860000 8660000 860000 000000 1111 eooooo S1 MCU board with mbed PD a 5 S 89 TJd1 dXN paqw aco NXP Seniconductors Fig 24 Mini board MCU MCU board 019aac765 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 19 of 57 NXP Semiconductors U M1 0580 4 2
46. nal not used in this version 47 43V3 3 3 V power supply line 49 45V 5 V power supply line 1 All even numbered pins are GND UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 22 of 57 NXP Semiconductors U M1 0580 UM10580 Mini board PCU9669 4 2 2 2 Optional connectors CON and CONG are the Logic Analyzer LA ports This allows logic analyzer direct connect if the interface is matched JP3 and JP4 are optional connectors to connect bus controller board Since the MCU interface connector does not include the I C bus signal from bus controller JP3 or JP4 connectors can be used to receive those signals from the 9669 board These connector signals are connected to LA1 port CONS With jump wires from CONO of the PCU9669 board to one of these connectors the logic analyzer will have I C bus signals on its port Logic analyzer can get I2C signals from LA portwith jump wires E I2C bypass wires from CON9 on 9669 boardto JP3 or JP4 on MCU board 019aac768 Fig 27 Putting I C bus signals on logic analyzer ports All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 23 of 57 NXP Semiconductors UM10580 Mini board PCU9669 4 2 3 Jumpers and switch 4 2 3 1 UM1
47. ng sample code 8 Set the target and compile 10 Copy the executable and let it run 11 I C bus transfer on PCU9669 12 PCU9665 demo setup 14 Preparation hardware 14 Preparation software 15 I2C bus transfer on PCA9665 16 Hardware rs 17 Overview 17 Power supply 17 Mini board mbed MCU board 19 MCU module 20 Connectors 21 Bus controller MCU interface connector 22 Optional connectors 23 Jumpers and switch 24 5 V SUpply 3 paaa baa KE cee KA new 24 3 3 V SUPPIY x su ecu Saeed thse woii 25 Resetsuvvitch 25 Mini board PCU9669 9669 board 25 Connectors 26 Bus controller MCU interface connector 27 I2C bus interface connectors 27 Optional connector 28 Jumper settings 29 Power supply 29 RESET INT signals 30 Signals iu comers iE dus 30 MCU bus signal levels 30 atau aes Ene EA 30 Mini board PCA9665 9665 board 33 Connectors 34 Bus controller MCU interface connector 34 I2C bus interfa
48. nting read start register 41 bytes write into MODE1 OFFSET registers 42 bytes 1 byte 41 bytes read from MODE1 OFFSET registers E START condition l STOP condition a E RESTART condition amp 12C bus address R W bit 2 Fig 11 I2C bus transfer to from PCA9955 On the UFm channels channel 0 and 1 42 bytes write is done for PCU9955 registers from MODE1 to OFFSET No read back is performed since this bus is unidirectional 0x80 Register address with Al flag Pointing write start register 41 bytes write into MODE1 OFFSET registers 42 bytes B START condition P STOP condition Mt A 12c bus address R W bit az Fig 12 I2C bus transfer to PCU9955 PCA9955 Demo board PCU9955 Demo board PCU9955 Demo board 9669 board read 019aac741 Fig 13 Sample code 12 transfer on PCU9669 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 12 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 lo M Sampler ey 1G 0 ms 60 ms 70 ms 80 ms 90 ms 10ms 420 ms 430 ms 40 ms 450 ms 460 ms 470 ms 480 ms 0 SDAO Fm Feet q 1 SCLO Fm 2 USDA1 UFm 3 USCL1 UFm 4 USDA2 UFm 5 USCL2 UFm 019aac742 All three channels transfer sequen
49. ntroller PCU9669 ID return 1 After those steps the 12 becomes ready to operate The transaction can be set as the next code sample it is defined as test transaction The transaction is a structure to store the target I C bus address series of data as an array and the length of the transfer transaction test transaction 0x50 data 4 A sequence is defined as an array of transactions transaction sequencell test transaction In this way the transfer is prepared in the MCU memory The data of the sequence needs to be copied into the PCU9669 buffer Use setup transfer function to setup buffer for the sequence This function sets the tables of SLATABLE and TRANCONFIG the PCA9669 registers too setup transfer 0 channel sequence 1 number of transactions Now the sequence is ready for transfer in the PCU9669 Call start to let the sequence start start 0 channel Complete sample will be like the following code 1 include transfer manager h abstracting the access of PCU9669 buffer 2 finclude PCU9669 access h PCU9669 chip access interface 3 include hardware abs h to use install ISR and wait sec functions 4 5 void interrupt_handler void 6 This ISR sample is doing nothing but clearing INT 7 char global status 8 char channel status 9 10 global status read data CTRLSTATUS 11 12 if global status amp 0x01 cht 1
50. ode modification in application level was discussed in previous sections It was using libraries of the mini board PCU9669 User also can modify the library code In the mbed compiler page the libraries are packed in each of the gear icons They can be opened by right clicking on the icon and selecting Edit library menu El F mini board PCU9669 El C mini board libs parallel bus 1C PCA9665 Edit Library Update Library Save As Rename Library F2 Delete Library Del 019aac786 To see edit library right click on a gear icon Choose Edit library from pop up menu Fig 45 Edit library menu All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 45 of 57 jenuew s s 9102 ueniq q sz L eu sieuirejosip eba o 19e qns si juawnoop siy ui pepiod uomeuuojui Iv 46 10 9t 0890 LNN paniasa Syu V LOZ VE dXN y configuration supply JP1 Open 2 2 supply JP 1 Open JP2 1 2 LPCXPresso 5V supply JP1 Shor O ml ka eS e 865 es E87 ees S83 o Kai Nag 12 229 8 GND Fig 46 Mini board mbed Jp2 1 2 Mini board mbed version 2 0 tree area 00805 La k pan R p K t lb z
51. onductors www nxp com documents user manual UM10204 pdf UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 55 of 57 NXP Semiconductors UM10580 13 Legal information Mini board PCU9669 13 1 Definitions Draft The document is a draft version only The content is still under internal review and subject to formal approval which may result in modifications or additions NXP Semiconductors does not give any representations or vvarranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information 13 2 Disclaimers Limited warranty and liability Information in this document is believed to be accurate and reliable However NXP Semiconductors does not give any representations or warranties expressed or implied as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information NXP Semiconductors takes no responsibility for the content in this document if provided by an information Source outside of NXP Semiconductors In no event shall NXP Semiconductors be liable for any indirect incidental punitive special or consequential damages including without limitation lost profits lost savings business interruption costs related to the removal or
52. or Fm board port E type connector Bus controller MCU interface connector 9 o PCA9665 Option connectors 019aac776 Fig 35 9665 board connectors 4 4 4 1 Bus controller MCU interface connector MCU interface connector is available on CON1 This connector is intended to connect to the MCU board s CON1 or user MCU target board s MCU signals Pin list is available in Table 2 in Section 4 2 2 1 4 4 1 2 I C bus interface connectors I C bus signals are available on three types of connectors with supply lines 5 pin JST PH type and 14 pin JST PHD type connectors The 5 pin connectors have two C bus signals SDA and SCL with GND 5 V and 24 V supply lines Remark Signal labels SDA and SCL are wrong on CON2 9665 board version 1 0 14 pin connectors have I C bus signals SDA and SCL with GND 5 V 3 3 V 12 V and 24 V supply lines as well as RESET and INT signals Fm board port E type connector is available also This connector can be used when trying to connect the Fm version 2 board RESET and INT signals can be connected to the MCU side with jumper settings All pinning is compatible with the PCU9669 board see Table 4 Table 5 and Table 6 in Section 4 3 1 2 UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 34 of 57 NXP Semiconductors U M1 0580 UM10580 Mini bo
53. reserved User manual Rev 1 25 February 2014 30 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 The resistors R11 R12 R13 and R14 are series resistors on C bus lines Those are impedance matching resistors for UFm bus lines The 9669 board has 22 Q resistors for those Fm channel s Fm lines require pull ups 220 Q resistors are used on R3 and R4 at PCU9669 board if the PCA9663 is mounted all resistors from R3 to R8 are 220 Q The resistors may be replaced if the user needs different values to adjust I C bus driving current Series resistors on the I2C bus lines are Q to short the lines from the PCU9669 to connectors Table 9 Resistor value difference by bus controller Resistor Function PCU9669 PCA9663 R3 SCL pull up for channel 0 220 0 220 0 R4 SDA pull up for channel 0 220 Q 220 Q R5 SCL pull up for channel 1 open 220 Q R6 SDA pull up for channel 1 open 220 Q R7 SCL pull up for channel 2 open 220 Q R8 SDA pull up for channel 2 open 220 Q R9 SCL series resistor for channel 0 00 00 R10 SDA series resistor for channel 0 00 00 R11 SCL series resistor for channel 1 22 Q 00 R12 SDA series resistor for channel 1 22 00 R13 SCL series resistor for channel 2 22 0 R14 SDA series resistor for channel 2 22 00 UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 31 of 57 UM
54. s This manual is written based on the versions of Mini board MCU version 2 0 Mini board PCU9669 version 2 0 Mini board PCA9665 version 1 0 Sample code version 1 0 3 3 Static handling requirements CAUTION AN This device is sensitive to ElectroStatic Discharge ESD Therefore care should be taken during transport and handling You must use a ground strap or touch the PC case or other grounded source before unpacking or handling the hardware 3 4 Ordering Please contact us at i2c support nxp com if you would like a board 3 5 Minimum requirements UM10580 A PC with internet connection Windows Mac or Linux Latest version of web browser Chrome Safari Firefox or Internet Explorer Mini board PCU9669 kit mbed NXP LPC1768 PCU9955 and PCA9955 evaluation boards All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 5 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 3 6 Setup 3 6 1 3 6 1 1 UM10580 This section describes hovv to set up the mini board PCU9669 Two different setups for PCU9669 and PCA9665 will be discussed in next sections PCU9669 demo setup Preparation hardware Requirements Prepare the following boards for the demo setup Mini board PCU9669 Mini board MCU mbed NXP LPC1768 mbed NXP LPC11U24 yellow mbed cannot be used because sample code is
55. s 3 05 4us 5 ys 6 us 7 ps 8 ss 9 us Write PT T28 7 NAK E X T NAK PF NAK sli 1 SCL 019aac783 Fig 42 PCU9669 transfer sample execution on channel 1 UM10580 All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 43 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 5 3 1 3 PCA9665 I2C bus transfer PCA9665 library does not have mechanism to manage the sequence like PCU9669 The transfers can be done transaction by transaction MCU board o 2 wo o o Transfer on Fm bus Expecting transfer S 0x50 0x80 N X P P S START condition P STOP condition 019aac784 Fig 43 4 bytes transfer sample on PCA9665 For a transaction call 12c write Or 12C read function It takes 4 parameters target 12 address pointer to data array data length and I C condition after transaction The last parameter can be STOP or NEXT RESTART The ST0P will generate a STOP condition after transaction The NEXT RESTART holds the bus and RESTART condition will be generated when next transaction initiated In the beginning of the code a header file PCA9665 access h needs to be included That defines prototypes of the PCA9665 related functions Initialization will be done in two steps hardware initialize pr
56. t control This document as well as the item s described herein may be subject to export control regulations Export might require a prior authorization from competent authorities Evaluation products This product is provided on an as is and with all faults basis for evaluation purposes only NXP Semiconductors its affiliates and their suppliers expressly disclaim all warranties whether express implied or statutory including but not limited to the implied warranties of non infringement merchantability and fitness for a particular purpose The entire risk as to the quality or arising out of the use or performance of this product remains with customer In no event shall NXP Semiconductors its affiliates or their suppliers be liable to customer for any special indirect consequential punitive or incidental damages including without limitation damages for loss of business business interruption loss of use loss of data or information and the like arising out the use of or inability to use the product whether or not based on tort including negligence strict liability breach of contract breach of warranty or any other theory even if advised of the possibility of such damages Notwithstanding any damages that customer might incur for any reason whatsoever including without limitation all damages referenced above and all direct or general damages the entire liability of NXP Semiconductors its affiliates and their suppli
57. that can be operated independently has 4352 byte buffer with table of slave address and transaction length This enables managing the transfer by sequence The transfer manager module in PCU9669 access library provides the mechanism to organize the data as a series of data transactions and sequence Transfer data preparation Data array The data from to each devices are put in an array Here is the sample of the data arrays char data0 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 char datal 0x08 0x09 x A x B char data2 0 0 0x0D x E OxOF 0x10 0x11 0x12 0x13 0x14 0x15 char data2 0x00 0x00 OxFF OxFF Transaction The transaction is a structure that stores the slave address pointer to the data array and the array length This sample intended to send each data array contents to I2C bus address 0 0 OxC4 0x50 and 0x5A transaction test transaction0 xC data0 sizeof data0 transaction test transaction xC4 datal sizeof datal T transaction test transaction2 0x50 data2 sizeof data2 transaction test transaction3 0x5A data3 sizeof data3 Li Sequence Sequence is just an array of transactions The transactions will be done in order of this array transaction test sequence test transaction test transactionl test transaction2 test transaction3 All information provided in this document is sub
58. ther ij man s l omo7729 2 p amp Logged in as nxptan Logout mbed Blog Forum Handbook Cookbook Code My Dashb Users nxp ip mini board PCUI669 mini board PCU9669 CD H k Fork of miri board POUSSO old by 86 inatrtaceProducts NXP Last commit 5 days ego No lugs Description mini bord PCU 669 ond PCA9665 sample code s Summary Files Graph J Documentation 7 Wiki Recent revisions 5 days ago M rorrtoenirrodiicis nxe 17 208378167664 M inetrfoceHroducts NXP 019aac734 Click the Import this program link Fig 6 Program import page of mbed org B ittpr mbed org compiler m Ki Facebook cooges Doe news weather computer mac l 79 019 735 Click OK to import Fig 7 Compiler page will be opened and confirms import in a dialog box All information provided in this document is subject to legal disclaimers NXP B V 2014 All rights reserved User manual Rev 1 25 February 2014 9 of 57 NXP Semiconductors U M1 0580 Mini board PCU9669 B ini card PCUS669 mb mbed Compiler mini o Q B hitps mbed org compiler mbed Compiler mini_board_PCUS669 Panew FF mor Workspace l sove L Sasali comple Commit Q Revisions e cs Program Workspace Program mini board PCU9669 E E My Programs Name
59. uire the 3 3 V supply The MCU modules or the MCU board can supply this 3 3 V for the bus controller board JP1 is an option setting for this 3 3 V output The mbed and LPCXpresso with LPC Link can feed 3 3 V However if LPCXpresso without LPC Link target only short the JP1 to use the regulator output on the MCU board The LED2 blue LED will be turned ON while the 3 3 V supply is ON Reset switch A switch is available to reset the MCU This has the same function of the switch which is on the mbed Since the LPCXpresso does not have reset button on the board this external switch can be used to reset it without having to power cycle the LPCXpresso Mini board PCU9669 9669 board Mini board PCU9669 9669 board has a PCU9669 as an I C bus controller that bridges MCU interface parallel port to 3 channel I C bus channel is Fm channel 1 and channel 2 are UFm Those I C bus signals are available in 5 pin 14 pin connectors and 14 pin header with supply lines header pin connector is available on Fm channel only The PCA9663 board can be made with different component options The PCA9663 has 3 channel Fm I C bus so the components on channel 1 and channel 2 have the same components as channel 0 will be discussed in Section 4 3 3 2 QC cie ncu 3 3U E xu la ES m X gt o go D zall En Ko gt Mini board v2 pinnin IF NCU interface MCU Par Mini board PCU9669 v2 o A NXP sar Feb 20
Download Pdf Manuals
Related Search
Related Contents
Samsung GT-E1070 User Manual Raptor User Manual 2.. 知るほどなるほど 下請法 - 東京都自動車整備振興会 LC-Power LC-35USB3-II storage enclosure Indesit PBAA 33 V X fridge-freezer TUSB-S01TC Media Guide: Office Workgroup Products v1.0 Manual de uso y técnica Copyright © All rights reserved.
Failed to retrieve file