Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

Microchip dsPIC30F High Performance 16 Bit Digital Signal Controller Field Application and Troubleshooting Guide

F: | Au:FANS | DA:2026-05-13 | 674 Br: | 🔊 点击朗读正文 ❚❚ ▶ | Share:

Watchdog Timer (WDT): default enabled (factory configuration word WDTEN=1). If the CLRWDT instruction is not executed in a timely manner in the main loop, a reset will be triggered after a few milliseconds. During the development phase, it is recommended to disable WDT in the configuration word or control it through the _SWDTEN software.

Reason identification for reset: Read the RCON register (reset control register), where bits such as BOR, WDTO, EXTR can indicate the last reset source. Saving this value during firmware startup and outputting it through the communication port greatly facilitates remote fault diagnosis.


Chapter 2 Troubleshooting of Advanced Analog Peripherals

2.1 10 bit/12 bit ADC module

The dsPIC30F offers two types of ADCs: a 500 ksps 10 bit ADC and a 100 ksps 12 bit ADC, both of which support up to 16 channels, differential input, and multi-channel sample and hold. Common ADC faults on site include conversion value jumping, excessive deviation, or complete non conversion.

Problem 1: The ADC conversion result always remains 0 or at full scale

Possible reasons:

The ADC module is not properly enabled (ADON bit is 0)

Insufficient sampling time (SAMC bit set too small, internal capacitor not charged to input voltage)

Reference voltage configuration error (VCFG bit selected non-existent pin)

Troubleshooting process:

Check ADCONx register: ADON=1, ADFM result alignment meets expectations.

Increase sampling time: for example, changing SAMC from 3TAD to 31TAD, or using automatic sampling triggering.

If using external Vref+and Vref - pins, ensure that the circuit board is connected to the correct voltage (not suspended).

Single step debugging: Write ADCON1bits. SAMP=1 to start sampling, delay, then set SAMP=0 to start conversion, and observe the DONE bit.

Problem 2: Nonlinear or noisy conversion results

Reason:

There is high-frequency digital signal (such as PWM, SPI clock) crosstalk near the analog input pins.

Internal Vref is unstable.

The ADC clock is higher than the recommended value (the maximum ADCLK of a 10 bit ADC is about 5MHz).

Solution:

Separate analog and digital ground on PCB and connect them at a single point.

Add RC low-pass filtering (R=1k Ω, C=0.1μF)。

Place the CPU in SLEEP or IDLE mode during conversion to reduce digital noise (ADC can operate in sleep mode).

Using oversampling and averaging techniques: taking the average after 8 consecutive conversions to effectively improve resolution.

2.2 Low Voltage Detection (LVD)

The LVD module allows software to set a voltage trigger point (internal reference voltage) that generates an interrupt (priority 7, non maskable) when VDD is below a threshold. This is crucial for applications that require saving critical data before power outages. Common false triggering problems are usually caused by excessive power ripple or setting thresholds too close to the operating voltage. It is recommended to set a hysteresis window of at least 0.2V and add digital filtering (responding after detecting low voltage twice in a row) to the interrupt service routine.

Chapter 3 On site Debugging of Motor Control Peripherals

3.1 Pulse Width Modulation (PWM) Module

The PWM module of dsPIC30F is the core of motor control, supporting up to 8 PWM outputs (4 duty cycle generators), 16 bit resolution, edge alignment or center alignment mode, and has a "special event trigger" function for synchronous ADC sampling.

Typical fault: PWM has no output or abnormal waveform

PWM module not enabled: Check if PTCONbits.PTEN is set to 1.

Pin reuse conflict: PWM pins may be configured as general-purpose I/O or other peripherals. It is necessary to correctly set the PWM function in registers such as TRISx and OCxx.

Dead time incorrect setting: In complementary mode, if the dead time register DTCON1 is set too large, it may cause the effective pulse width to be zero. The oscilloscope observation should show a clear dead zone between the upper and lower bridge arms, but there are still pulses.

Fault pin (FLTX) activation: If fault protection (FLTACON) is enabled, the external fault signal will force the PWM output to a safe state (high resistance or low level). Check the FLTACON register and fault input pin levels.

Dual update in center aligned mode: In center aligned PWM, the duty cycle can be updated at the beginning and midpoint of the cycle to improve control bandwidth. If PTMOD and PTCON are not configured correctly, it may cause update delays or waveform asymmetry.

3.2 Orthogonal Encoder Interface (QEI)

The QEI module is used to read the A, B, and Z phase signals of the incremental encoder, providing a 16 bit position counter, supporting x 2 and x 4 modes, and built-in digital filtering.

common problem:

Counter not counting or direction error: Check if encoder A and B phases are connected in reverse (swapping wiring can solve the problem); Confirm that the QEIEN bit in QEICON is 1; Is the sampling clock of the digital filter set too high to filter out effective pulses.

Position jump: It is often caused by interference with the encoder signal. Use differential encoders (such as RS-422) and twisted shielded wires on the PCB, while enabling the Schmitt trigger for QEI input.

  • Rexroth 0-531-012-740 Bladder Accumulator
  • Rexroth VT-VRRA 1-527-20/V0/2STV Amplifier
  • Rexroth CSB01-1N-AN-ENS Control Section
  • Rexroth 2ma-1a P58718 Pilot Air Valve
  • Rexroth SB356 Multi-channel Controller System Box
  • Rexroth IndraControl L20 PLC CML20.1
  • Rexroth R151231013 Ball Screw Nut
  • Rexroth RC28-14/30 BODAS Controller R917007683
  • Rexroth LTU350 3-Phase Servo Amplifier
  • Rexroth VAM42.1 Control Device
  • Rexroth S20-DO-16/1 Digital Output Module
  • Rexroth HED8OA-20/350K14AS Pressure Switch
  • Rexroth CSH01.1C-SE-EN2 Control Section
  • Rexroth VT-VSPA2-1-11/T1 Valve Amplifier R900021909
  • Rexroth VT3024-S34-R1 Amplifier Card
  • Rexroth Aventics R417000243 Operating Unit Switch
  • Rexroth NYS04.1-ST-05-ULNN R911325068 Module
  • Rexroth DPR-10 Amplifier Circuit Board Card
  • Rexroth 4WE 10 D33/OFCG24N9K33L R900701304 Valve
  • Rexroth DKC01.3-100-7-FW Servo Drive
  • Rexroth VCP05.2DSN-003-PB-NN-PW Operator Panel
  • Rexroth MSK030B-0900-NN-M1-UG0-NNNN Servo Motor
  • Rexroth 0 821 758 010 Valve Terminal 10 Bar
  • Rexroth VAM42.1-PB-NF-NN-TB-VD-NN-1608-NN Control Panel
  • Rexroth MAC090B-0-JD-5-C/110-A-0/KI520LV Servo Motor
  • Rexroth VCP25.1BVN-003PB-NN-PW Operator Panel
  • Rexroth RKL4305/002.5 Power Cable L=250cm
  • Rexroth MSM031C-0300-NN-M5-MH1 R911344216 Servomotor
  • Rexroth CSH01.1C-SE-EN2 R911335435 Control Unit
  • Rexroth FEM-E-S 25x10RX3-4 R151224013 Ball Screw
  • Rexroth FCS01.1E-W0005-A-04-NNBV Frequency Drive
  • Rexroth 0510-425-009 Hydraulic Gear Pump
  • Bosch Rexroth IndraControl XM42 Controller R911396964
  • Rexroth VT5035-17 R900579497 Valve Amplifier
  • Rexroth FCS01-1EW0015-A-04 R91131106 Frequency Drive
  • Rexroth MSK050B-0600-NN-M1-UG1-NNN Motor
  • Bosch Indramat TBM1.2-40-W1-115 Bleeder
  • Rexroth HCS01.1E-W0028 Compact Converter
  • Rexroth Indramat MAC071B-0-PS-2-C/095-A-0 Motor
  • Rexroth HCS02.1E-W0012-A-03-NNNN Drive Set
  • Rexroth R-IL S3 BK DI8 DO4-PAC Coupler
  • Rexroth HCS01.1E-W0028-A-03-E-S3-EC-NNN Drive
  • Rexroth MSK061C-0600-NN-S1-UG0-NNNN Motor
  • Bosch Rexroth MSM041B-0300-NN-M0-CH0 Motor
  • Rexroth IKG0071-05.0m Servo Motor Cable
  • Rexroth R-IL S3 BK DI8 DO4-PAC Bus Coupler
  • Bosch Rexroth SB301 Tightening Unit 0608701017
  • Rexroth E-003-S-S Tool Cable 0608740220
  • Rexroth MSM020B-0300-NN-M0-CG0 Servo Motor
  • Rexroth IndraControl VEP30.3 Panel PC
  • Rexroth DBETE-62/315G24K31A1V Valve R901029969
  • Rexroth CSH01.3C-ET-ENS-NNN Control Section
  • Rexroth VT3013-37 Amplifier Control Card
  • Rexroth 1-2 TH6 L 162-10/N 05 Joystick
  • Rexroth ESV025 Handheld Nutrunner 0608841037
  • Rexroth RK2 S30 Amplifier Card VT 4224 U 261
  • Rexroth CDB01.1C-SE-ENS R911308279 Control Unit
  • Rexroth VFC3610-0K40-3P4-MNA-7P Inverter 0.4kW
  • Bosch Indramat HCS02.1E-W0028-A-03-NNNN Servo Module
  • Rexroth DKC01.3-040-7-FW EcoDrive R911279426
  • Rexroth HMV02.1R-W0015-A-07-NNN Utility Unit 15kW
  • Rexroth 0 608 830 193 ZSE220 Communication Module
  • Rexroth VT5003 S41 R5 Proportional Amplifier Card
  • Rexroth KSM02.1B-041c-42N-M1-HP0-ET-L3-D7-NN-FW Motor Drive
  • Mannesmann Rexroth VT5005 S16 R1 Valve Amplifier Card
  • Rexroth CFL01.1-R3 Sercos III Interface Module
  • Rexroth CKK-110-NN-1 Linear Axis with MSK040C
  • Bosch Rexroth 047018-104401 Controller Card
  • Rexroth MDSD1K-2X/4 Solenoid Driver Module
  • Rexroth DKC02.3-012-3-MGP-01VRS Servo Drive
  • Rexroth HCS01.1E-W0006 Compact Servo Drive
  • Rexroth NAM1.2-08 Line Former R911246505
  • Rexroth VPB40 Industrial PC Control Cabinet
  • Rexroth FWA-ECODR3-SGP-03-MS Firmware Module
  • Rexroth HEDE10-31 Pressure Switch R901425475
  • Rexroth HM 17-11/315-C/V0/0 Pressure Sensor
  • Rexroth VFC 3610-2K20-3P4-MNA-7P Inverter 2.2kW
  • Rexroth MSK040C-0600-NN-M1-UG1-NNNN Right Angle Geared Motor
  • Rexroth DKC02.3-012-3-MGP-01VRS EcoDrive Cs
  • Bosch Rexroth MSM031C-0300-NN-M0-CH0 Servo Motor
  • Rexroth HCS02.1E-W0012-A-03-NNNN Power Section
  • Rexroth DBDS 20 P18/400V Pressure Relief Valve
  • Rexroth 3460565500 Pneumatic EP Converter Regulator
  • Rexroth VT-SWA-1-12/DFEE Angle Sensor R900913641
  • Rexroth 0-608-830-250 Interface Module SM24V
  • Rexroth MHD071B-035-NP0-UN8 Servo Motor 12Nm 1000rpm
  • Rexroth MKD025B-144-KG0-KN R911263737 Servo Motor
  • Rexroth KCU02.2N-ET-ET*-025-NN-N-NN-NW Control Unit
  • Rexroth MV-VPB40*3-RB001VPB R911337529 Valve Terminal
  • Bosch Rexroth AS 2/R-2200 Drive Module 3842998041
  • Rexroth HMS01.1N-W0036 Power Section
  • Rexroth CKK-145-NN1 Compact Linear Module
  • Rexroth MS2N04-C0BTN-BSDK0-NNNNN-NN Geared Servo Motor
  • Rexroth HCS02.1E-W0028-A-03-NNNN Power Section
  • Rexroth MS2N04-D0BQN-CMSG0-NNNNN-NN Servo Motor
  • Rexroth MSM031C-0300-NN-M0-CH0 Servo Motor
  • Rexroth MKD041B-144-KP1-KN Servo Motor R911262307
  • Rexroth ESA075G Handheld Nutrunner 0608841033
  • Rexroth MSK070D-0450-NN-M1-UP1-NSNN Motor
  • Rexroth CKK-145-NNG1 Linear Kit with HCS02 Drive
  • Rexroth MSK060C-0300-NN-M1-UG0-NNNN Servo Motor
  • Rexroth MKD090B-047-KP1-KS Servo Motor
  • Rexroth MLS140S-3A-0450-NNN Linear Motor
  • Rexroth VPB40.3 Industrial PC R911338689 CB1
  • Rexroth HCS02.1E-W0012 Servo Drive R911313871
  • Rexroth R151349014 R151145672 Ball Screw Assembly
  • Bosch Rexroth CKK-110-NN-1 Compact Module
  • Rexroth MSK060B-0300-NN-M1-UG1-NNNN Servo Motor
  • Rexroth Indramat TBM 1.2-40-W1-024 Servo Bleeder
  • Rexroth MSK040B-0600-NN-M1-UG1-NNNN Servo Motor
  • Rexroth MLS200S-3A-0450-NNN R911299213 Linear Motor
  • Rexroth SB356 Tool Tightening Controller Rack
  • Rexroth MSK050C-0300-NN-M1-UG0-NNNN Servo Motor
  • Rexroth Indramat DKC11.3-040-7-FW Eco Drive
  • Rexroth VT2000 Proportional Amplifier
  • Rexroth VT1118-10 Analog Module
  • Rexroth MSK060C-0600-NN-M1-UP1-NSNN Motor
  • Rexroth MSK060C-0300-NN-S1-UG0-NNNN Motor
  • Rexroth R911173937 IndraControl XM AI1
  • Rexroth R412018225 AES-D-BC-ECAT Module
  • Rexroth CDB02.1B R911338542 Controller Card
  • Rexroth VT-HNC100-2-30/P-I-00/000 Module
  • Bosch Rexroth CSB02.1B R911372549 Control
  • Bosch Rexroth R185321310 Runner Block
  • Rexroth VPB40.3 Industrial PC R911338689
  • Rexroth HNK01.1A-A075-E0106-A-500 Drive Controller
  • Rexroth CSH02.1B-CC-EC-ET-S4-NN-NN-FW Controller
  • Rexroth CSB01.1C-PB-ENS-NNN Control Unit