stoyanoff
Joined: 20 Jul 2011 Posts: 375
|
Unexpected problem with PIC30F5015 |
Posted: Wed Nov 18, 2015 5:41 am |
|
|
Greetings! I'm using MPlab v 8.91, CCS v5.050 and PIC30F5015. I just added to one of the subroutines this:
Code: |
set_motor_unit(1,1,MPWM_DISABLED|MPWM_FORCE_L_0|MPWM_FORCE_H_0,20,20);
set_motor_unit(1,2,MPWM_DISABLED|MPWM_FORCE_L_0|MPWM_FORCE_H_0,20,20);
set_motor_unit(1,3,MPWM_DISABLED|MPWM_FORCE_L_0|MPWM_FORCE_H_0,20,20);
set_motor_unit(1,4,MPWM_DISABLED|MPWM_FORCE_L_0|MPWM_FORCE_H_0,20,20);
|
it triggers #INT_ADDRERR. I don't even enter in this subroutine. It demands an external signal. When I comment it everything is working just fine. I tried to move it to another subroutine - the same result!
I never enter in this subroutine. What's this bug? How to deal with it?
Thanks! |
|