CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Unexpected problem with PIC30F5015

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
stoyanoff



Joined: 20 Jul 2011
Posts: 375

View user's profile Send private message

Unexpected problem with PIC30F5015
PostPosted: Wed Nov 18, 2015 5:41 am     Reply with quote

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!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group