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

Updating project - Fuse problems

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



Joined: 15 Jun 2016
Posts: 33

View user's profile Send private message

Updating project - Fuse problems
PostPosted: Wed Aug 30, 2017 5:33 am     Reply with quote

Hi There,

I'm updating an old project from old unknown ccs version, and there are some fuses which I cannot find a new version of, I've looked through the help file and the device header file, can anyone help please?

Code:

#FUSES LPOL_HIGH                //Low-Side Transistors Polarity is Active-High (PWM 0,2,4 and 6)
   //PWM module low side output pins have active high output polar
#FUSES HPOL_HIGH                //High-Side Transistors Polarity is Active-High (PWM 1,3,5 and 7)
   //PWM module high side output pins have active high output polarity
#FUSES NOPWMPIN                 //PWM outputs drive active state upon Reset
#FUSES NOCOE                    //Device will reset into operational mode
Ttelmah



Joined: 11 Mar 2010
Posts: 19540

View user's profile Send private message

PostPosted: Wed Aug 30, 2017 5:59 am     Reply with quote

Which chip?.
Rough idea of old version number? (V3, V4 etc.)
New version number?

You do realise these fuses only apply to chips with the power PWM module....

Devices like the 18F1330.

NOCOE, implies a 24F I think. The only chips that support this.


Last edited by Ttelmah on Wed Aug 30, 2017 6:10 am; edited 1 time in total
ccsfred



Joined: 15 Jun 2016
Posts: 33

View user's profile Send private message

PostPosted: Wed Aug 30, 2017 6:08 am     Reply with quote

Hi Ttelmah,

Yes chip would be a good idea DSPIC30F2012, old V4.078, new 5.072.

Thanks
Ttelmah



Joined: 11 Mar 2010
Posts: 19540

View user's profile Send private message

PostPosted: Wed Aug 30, 2017 6:26 am     Reply with quote

I'd guess the entries were faulty for the old compiler.... :(

OK.

If you look at the data sheet, you will find HPOL and LPOL fuses listed, but with the note:

"These bits are reserved (read as ‘1’ and must be programmed as ‘1’).".

So the compiler now automatically sets these.

Note the 'must'....

The same applies to the PWMPIN fuse. So NOPWMPIN is not legal for the chip.

MicroChip automatically set the COE bit if you are programming through this unit.
ccsfred



Joined: 15 Jun 2016
Posts: 33

View user's profile Send private message

PostPosted: Wed Aug 30, 2017 7:12 am     Reply with quote

I see, so remove them I shall!

Thanks again Ttelmah!
Ttelmah



Joined: 11 Mar 2010
Posts: 19540

View user's profile Send private message

PostPosted: Wed Aug 30, 2017 7:23 am     Reply with quote

Just did a quick check, and they had already vanished by 4.107....
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