NXP Semiconductors PCA9629A User Manual

NXP Semiconductors PCA9629A User Manual

Dvanced stepper motor controller demo kit

Advertisement

Quick Links

UM10798
PCA9629A advanced stepper motor controller demo kit
(OM13285)
Rev. 1 — 17 June 2014
Document information
Info
Content
Keywords
Fm+ I2C-bus, PCA9629A, GPO, LPCXpresso LPC1343 daughter card,
sensor, stepper motor, motor direction, speed and ramp control
Abstract
PCA9629A demo kit (OM13285) is designed to let customers evaluate the
PCA9629A in a realistic application. The demo kit includes a stepper
motor board with sensors and the stepper motor demo board with a
number of pre-defined functions. The functions are executed by pressing
push-button switches on the demo board.
User manual

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PCA9629A and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for NXP Semiconductors PCA9629A

  • Page 1 Abstract PCA9629A demo kit (OM13285) is designed to let customers evaluate the PCA9629A in a realistic application. The demo kit includes a stepper motor board with sensors and the stepper motor demo board with a number of pre-defined functions.
  • Page 2 UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) Revision history Date Description 20140617 User manual; initial version Contact information For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com UM10798 All information provided in this document is subject to legal disclaimers.
  • Page 3: Introduction

    The PCA9629A Stepper Motor Controller Demo Board is designed to let customers evaluate the PCA9629A in a realistic application. The demo board kit includes a Stepper Motor board with sensors and the Stepper Motor Demo Board with a number of pre-defined functions.
  • Page 4: Application Overview

    PCA9629A advanced stepper motor controller demo kit (OM13285) 1.1 Application overview The PCA9629A Demo board is designed for easy setup and ease of operation. The demo functions are executed by pressing a control button on the demo board. The PCA9629A Demo functions supported by the demo board and firmware include: Mode —...
  • Page 5: System Overview

    ⁄ -step operation. This application only deals with interface to a unipolar motor. The PCA9629A has an internal oscillator, so no external components are required. Some of the other features of the PCA9629A include: • Stand-alone operation: generates motor coil drive phase sequence signals for use with an external high current driver to off-load master controller/micro Programmable step rate: 333.3 kpps to 0.3 pps with ±3 % accuracy...
  • Page 6: Lpcxpressso Microcontroller Board

    USB to JTAG/SWD interface to the IDE. It can be connected to other debug targets such as a customer prototype. For the PCA9629A demo board application, the debugger portion (LPC-Link) can be cut off, but a connector is installed to allow connection to the debugger if necessary.
  • Page 7: I/O, Switches And Indicators On The Pca9629A Demo Board

    UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) 3.4 I/O, switches and indicators on the PCA9629A demo board The interface connections, switches and indicators on the PCA9629A demo board are shown in Figure Fig 3. PCA9629A demo board interfaces, switches and indicators UM10798 All information provided in this document is subject to legal disclaimers.
  • Page 8: Sensor Interface

    3.4.1 Sensor interface The sensor interface allows connection to slotted optical switches and bias components mounted on the Stepper motor board being connected to the PCA9629A. The sensors are utilized in Interrupt mode to demonstrate the interrupt autoclear capabilities of the PCA9629A.
  • Page 9: Push-Button Switches

    I C messages to the PCA9629A stepper motor controller. The PCA9629A then handles the bulk of the stepper motor control functions. The details of how the LPC1343 handles these tasks are discussed in the firmware portion of the user manual (Ref.
  • Page 10: On-Board Switches

    4.2.3.2 +5 V regulator An LM317MB linear regulator is used to supply the +5 volts that is required for the PCA9629A stepper motor controller and the +3.3 V regulator. 4.2.3.3 +3.3 V regulator A TDA3663 is used to supply the +3.3 V power required by the LPCXpresso daughter board and the LPC1343 on the LPCXpresso board.
  • Page 11: Jumpers, Headers, And Test Point Locations

    NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) 4.2.4 Jumpers, headers, and test point locations The locations of the jumpers, header connectors, and test points on the PCA9629A demo board are shown in Figure 4, and their functions are described in Table Fig 4.
  • Page 12: Stepper Motor Board

    The sensor outputs are connected to the P[0:1] inputs of PCA9629A generating interrupt based motor control. In the interrupt mode of the demo, this causes the motor to stop and reverse when the sensor detects the interrupter entering the slot.
  • Page 13: Demo Setup And Operation

    PCA9629A advanced stepper motor controller demo kit (OM13285) 5. Demo setup and operation 5.1 PCA9629A stepper motor controller demo setup Connect a +12 V power source to the PCA9629A Stepper Motor Controller demo board and connect Motor/Sensor board cables as shown in Figure Fig 5.
  • Page 14 UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) Table 4. Demo_Mode_1 functions (power-on default mode; LED2 blinking once per second) Switch/Label Demo function Notes LED indication S1/Mode Motor Phase Mode Default is Single-phase mode. Selected Mode is indicated by the...
  • Page 15 UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) Table 5. Demo_Mode_2 functions (LED2 blinking twice per second) Switch/Label Demo function Notes LED indication S1/Mode same as Demo_Mode_1 S2/Direction same as Demo_Mode_1 Ramp control Ramp-up and ramp-down in 48 steps Direction is indicated by CW (1 rotation in 0.5 second) with ramp...
  • Page 16: Firmware Overview

    PCA9629A advanced stepper motor controller demo kit (OM13285) 6. Firmware overview The firmware for the PCA9629A demo board is contained in a number of ‘C’ modules. The modular design and conformance to the CMSIS software standard V1.3 facilitates porting the software to other ARM Cortex versions. The firmware was written and compiled using the free LPCXpresso compiler tools referenced earlier in this document.
  • Page 17: Cmsis V1.3 And Start-Up Modules

    6.2 PCA9629A_config.h All definitions of PCA9629A related are defined in this file. This header file is quite simple that defines PCA9629A slave addressed, register addresses, a few parameters of register bit fields, I C buffer size (because this value is related to the number of the registers) and some common global function prototypes.
  • Page 18: Io_Interface.c Io_Interface.h

    Fig 7. PCA9629A_main.c And some functions defined in this module can be used as general commands. These functions take PCA9629A slave address to define the target. void StopMotor( uint8_t i2c_dev ) void PCA9629_HW_reset( void ) void PCA9629_all_register_init( uint8_t i2c_dev ) void WaitForStop( uint8_t i2c_dev ) 6.4 io_interface.c io_interface.h...
  • Page 19: I2C_Abstraction.c And I2C_Abstraction.h

    This module abstracts the implementation of the I C master interface in MCU (LPC1343) and simplifies the access of the PCA9629A internal registers. There are 4 functions for I2C transfers. The first 2 functions are read and write for single-byte data.
  • Page 20: Programming The Demo Board

    1. Insert a jumper into JP_ISP (pin 1-2) prior to power-up of the demo board. 2. Connect a Mini-USB cable between the PCA9629A demo board Mini-USB (X1) and a 3. Apply +12 V power to the PCA9629A demo board; this puts the demo board in the USB boot mode.
  • Page 21: Programming And Debugging The Pca9629A Demo Board Via Lpc-Link Usb Interface

    7.2 Programming and debugging the PCA9629A demo board via LPC-Link USB interface The hardware consists of the LPCXpresso development board which has an LPC-Link debug interface and an NXP LPC ARM-based microcontroller target.
  • Page 22 UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) A — Project Explorer View gives you a view of all the projects in your current ‘Workspace’. A ‘Workspace’ is a collection of projects. B — Quickstart Panel has fast links to commonly used features. This panel is the best place to go to find options such as Build, Debug, and Import.
  • Page 23: Programming The Pca9629A Demo Board Via Rs-232

    UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) 7.3 Programming the PCA9629A demo board via RS-232 An RS-232 interface is provided to program the device via ISP (in system programming) capability. Opening the Flash Magic utility (www.flashmagictool.com/), should show the following screen: Fig 9.
  • Page 24 UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) Fig 10. Flash Magic communications setup Fig 11. Flash Magic hardware configuration setup UM10798 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
  • Page 25: Support

    UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) To verify that Flash Magic is connected, pull down the ‘ISP’ tab and select ‘Read Device Signature’. If Flash Magic returns a signature similar to Figure 12, then communications are established.
  • Page 26: Appendix A: Pca9629A_Config.h

    Overview: This has all the defines and motor control parameters for the PCA9629A demo application. The stepper motor parameters entered are for a Nippon Pulse motor but could be changed to adapt the demo to other motors.
  • Page 27 UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) A-version registers MODE, /**< 0x00 Mode register WDTOI, /**< 0x01 WatchDog Time-Out Interval register WDCNTL, /**< 0x02 WatchDog Control register IO_CFG, /**< 0x03 I/O Configuration register INTMODE, /**< 0x04...
  • Page 28: Appendix B: Schematics

    NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) 10. Appendix B: Schematics Fig 13. PCA9629A demo board version 2.2 (1 of 4) UM10798 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
  • Page 29 UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) Fig 14. PCA9629A demo board version 2.2 (2 of 4) UM10798 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
  • Page 30 UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) Fig 15. PCA9629A demo board version 2.2 (3 of 4) UM10798 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
  • Page 31 UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) Fig 16. PCA9629A demo board version 2.2 (4 of 4) UM10798 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
  • Page 32 UM10798 NXP Semiconductors PCA9629A advanced stepper motor controller demo kit (OM13285) Fig 17. PCA9629A motor version 2.2 UM10798 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved. User manual Rev. 1 — 17 June 2014...
  • Page 33: Abbreviations

    UM10375, “LPC1311/13/42/43 User manual” — User manual; NXP Semiconductors; www.nxp.com/documents/user_manual/UM10375.pdf LPC1311/13/42/43, “32-bit ARM Cortex-M3 microcontroller; up to 32 kB flash and 8 kB SRAM; USB device” — Product data sheet; NXP Semiconductors; www.nxp.com/documents/data_sheet/LPC1311_13_42_43.pdf UM10798 All information provided in this document is subject to legal disclaimers.
  • Page 34: Legal Information

    In no event shall NXP Semiconductors, its affiliates or their suppliers be liable Notwithstanding any damages that customer might incur for any reason to customer for any special, indirect, consequential, punitive or incidental whatsoever, NXP Semiconductors’...
  • Page 35: Table Of Contents

    Appendix B: Schematics ....28 PCA9629A demo board ....7 Abbreviations .
  • Page 36 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: OM11051,598 OM13285,598...

This manual is also suitable for:

Om13285

Table of Contents