View previous topic :: View next topic |
Author |
Message |
ccsfred
Joined: 15 Jun 2016 Posts: 33
|
Updating project - Fuse problems |
Posted: Wed Aug 30, 2017 5:33 am |
|
|
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: 19515
|
|
Posted: Wed Aug 30, 2017 5:59 am |
|
|
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
|
|
Posted: Wed Aug 30, 2017 6:08 am |
|
|
Hi Ttelmah,
Yes chip would be a good idea DSPIC30F2012, old V4.078, new 5.072.
Thanks |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19515
|
|
Posted: Wed Aug 30, 2017 6:26 am |
|
|
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
|
|
Posted: Wed Aug 30, 2017 7:12 am |
|
|
I see, so remove them I shall!
Thanks again Ttelmah! |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19515
|
|
Posted: Wed Aug 30, 2017 7:23 am |
|
|
Just did a quick check, and they had already vanished by 4.107.... |
|
|
|