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

dsPIC33FJ16GS502 cycle by cycle current limit

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



Joined: 18 Aug 2011
Posts: 8

View user's profile Send private message

dsPIC33FJ16GS502 cycle by cycle current limit
PostPosted: Fri May 01, 2015 9:39 am     Reply with quote

I am trying to implement cycle by cycle current limiting on an interleaved boost circuit. This makes use of PWM channel 1 and channel 2.
I am using the internal comparators #2 and #3 to measure the inductor current and when it exceeds the limit the comparator is mapped to the PWM fault pin and turns off the PWM output (cycle by cycle). I can get this to work on one or the other channel at a time but not both channels simultaneously.
Does anyone have any experience in this?
Maybe the part can not do this?

Thanks,
Dave


Last edited by dave_s on Fri May 01, 2015 1:01 pm; edited 1 time in total
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Fri May 01, 2015 12:35 pm     Reply with quote

Help if you gave us the right part number....

Also compiler version number.

Show some example setup code. You definitely can set separate fault limiting on most DsPIC PWM's.
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