- UPCX530 -
Controller Description
Pinout:
The controller is based on a Microchip dsPIC30F4012-30 DSP microcontroller in a 28 pin package. It uses the internal oscillator.
Pin | Pin name | Description |
1 | MCLR | Master Clear progamming voltage input used for in system programming of the device. Pull to VCC with 10K resistor. |
2 | HALL1 | Input from BLDC hall sensor for motor phase 1. For BLDC operation use a simple RC lowpass filter for signal cleaning (refer to schematic). Pull to VCC with resistor for DC-motor operation. |
3 | HALL2 | Input from BLDC hall sensor for motor phase 2. For BLDC operation use a simple RC lowpass filter for signal cleaning (refer to schematic). Pull to VCC with resistor for DC-motor operation. |
4 | HALL3 | Input from BLDC hall sensor for motor phase 3. For BLDC operation use a simple RC lowpass filter for signal cleaning (refer to schematic). Pull to VCC with resistor for DC-motor operation. |
5 | ERROR | An active high error output. High on controller startup for around 500ms. Low in normal operation. High on positioning and internal calculation errors. Positioning errors can be reset by pulling the enable pin high and then low again. This output is intended to drive a bipolar transistor or FET for open collector / open drain error signaling to the host. |
6 | QEICHA | Quadrature encoder channel A TTL input. There is an internal digital low-pass filter that cleans the signal. Physical encoder signals are multiplied by 4 (X4 mode). |
7 | QEICHB | Quadrature encoder channel B TTL input. There is an internal digital low-pass filter that cleans the signal. Physical encoder signals are multiplied by 4 (X4 mode). |
8 | VSS | Supply GND. |
9 | n.a. | unused, keep not connected (internal RC oscillator used) |
10 | ENABLE | Pull this input low to enable the controller's H-bridge output. Positioning errors can be reset by pulling pin to high and then low again. Pull to VCC using a pullup resistor. |
11 | TX | RS232 TX output used for serial programming of PID parameters (57600 Baud 8N1). |
12 | RX | RS232 RX input used for serial programming of PID parameters (57600 Baud 8N1). |
13 | VDD | VCC supply 5V. |
14 | DIR | Direction input.Pull to VCC using a pullup resistor. |
15 | STEP | Step signal input from host on H/L transition of signal. Pull to VCC using a pullup resistor. Maximum step frequency is dependend on operating mode, connected motor and VMOT and cycle times adjusted in PID settings. I saw step frequencies up to 150KHz. |
16 | FAULT | Bridge fault (e.g. overcurrent) protection input pin. Pull low on bridge fault. When not used pull high with resistor. |
17 | PGD | In system programming data input. |
18 | PGC | In system programming clock input. |
19 | VSS | Supply GND. |
20 | VDD | VCC supply 5V. |
21 | PWM3H | PWM high output for phase 3 of motor. Unused in DC-motor mode. High and Low phase output pairs generate a deadtime of about 400ns. |
22 | PWM3L | PWM low output for phase 3 of motor. Unused in DC-motor mode. High and Low phase output pairs generate a deadtime of about 400ns. |
23 | PWM2H | PWM high output for phase 2 of motor. High and Low phase output pairs generate a deadtime of about 400ns. |
24 | PWM2L | PWM low output for phase 2 of motor. High and Low phase output pairs generate a deadtime of about 400ns. |
25 | PWM1H | PWM high output for phase 1 of motor. High and Low phase output pairs generate a deadtime of about 400ns. |
26 | PWM1L | PWM low output for phase 1 of motor. High and Low phase output pairs generate a deadtime of about 400ns. |
27 | AVSS | Supply GND (AD converter not used). |
28 | AVDD | VCC supply 5V (AD converter not used). |
More data:
Operating voltage (VDD and AVDD) must be 5V. The operating current is around 120mA per controller.
The internal clock frequency is around 120MHz (FRC at 7.5MHz with 16 x PLL). The resulting cycle frequency is around 30MHz.
The PWM frequency is around 20KHz.