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.
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.
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 —...
⁄ -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...
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.
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.
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.
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.
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.
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.
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.
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...
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.
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.
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...
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.
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.
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.
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.
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.
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.
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.
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’...
Need help?
Do you have a question about the PCA9629A and is the answer not in the manual?
Questions and answers