Quantcast
Channel: Motor drivers forum - Recent Threads
Viewing all articles
Browse latest Browse all 14309

drv8412: DRV8412-C2-KIT : is this code error ? Stepper example project

$
0
0

Part Number:drv8412

Hi

When I build up Stepper project of DRV8412-C2-Kit, I found some odd code lines ( 862th, 863th line ) in the source file Stepper.c

// ------------------------------------------------------------------------------
// Connect inputs of the PWMDAC module
// ------------------------------------------------------------------------------
PwmDacCh1 = (int16)_IQtoIQ15(IFdbk1);
PwmDacCh2 = (int16)_IQtoIQ15(IFdbk1);

I guess the second line would be like below

PwmDacCh2 =  (int16)_IQtoIQ15(IFdbk2); 

Please comment me if this is intended or logically correct.


Viewing all articles
Browse latest Browse all 14309

Latest Images

Trending Articles



Latest Images