incomplete definition-files

General discussion on mikroPascal for dsPIC30/33 and PIC24.
Post Reply
Author
Message
jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

incomplete definition-files

#1 Post by jpc » 10 May 2009 13:57

to my surprise i found in the latest install some trouble with definition-files.
It concerns the 30F4012 and the QEI-module registers.

Code: Select all

var QEICON:TQEICONBITS; volatile; register;

// DFLTCON: Digital Filter Control Register

var DFLTCON:TDFLTCON; volatile; register;


// POSCNT: Position Counter Register
var  POSCNT: word; volatile; register;

// MAXCNT: Maximum Count Register
var  MAXCNT: word;  volatile; register;

For some strange reason the absolute addresses for these registers are missing. The were ok before in the definition-file provided with V5 of this compiler. I noticed after moving some code from 30f4011 to this 28 pin device , suddenly the encoder-interface did not work. Somehow there must still be outdated versions of this definition-file around.

Another part missing here are the configuration constants for FRC-PLL mode's.
Au royaume des aveugles, les borgnes sont rois.

User avatar
milan
mikroElektronika team
Posts: 1013
Joined: 04 May 2006 16:36
Contact:

#2 Post by milan » 11 May 2009 13:55

Hi,

yes, it is an error.
I checked mikroC for dsPIC30/33 and PIC24, QEICON address is present.
We will check the def files for the next release.
Thank you for your report.
SmartADAPT2 rules !

jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

#3 Post by jpc » 21 May 2009 14:06

same category, for the 30F4012 and 30F4011 ( maybe more) the configuration-flags for internal osc with PLL are missing.

Code: Select all

   _FRC_PLL4        = $FFF1;
   _FRC_PLL8        = $FFFA;
   _FRC_PLL16       = $FFF3;
it would be usefull if we could have access at latest ( and regularly corrected ) definition-files. Actually it is amazing how persistent these errors are , these are not very recent chips after all.
Au royaume des aveugles, les borgnes sont rois.

User avatar
milan
mikroElektronika team
Posts: 1013
Joined: 04 May 2006 16:36
Contact:

#4 Post by milan » 21 May 2009 16:15

Hi,

Def files are hard work and there is a plenty of room for errors.

We are correcting all errors found by our users or by our team.

Thank you for another report, we will check/fix this too.
SmartADAPT2 rules !

jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

#5 Post by jpc » 21 May 2009 16:28

Thanks Milan, i am aware this is huge and only getting worse. My major point is that we should find a formula to get the best definition-files without you doing all the work. So do not consider these posts as critics , just trying to be of help.
Au royaume des aveugles, les borgnes sont rois.

jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

#6 Post by jpc » 10 Jun 2009 19:03

Another realted issue are the Remappable Pin constants as they start appearing on the newer chips, i noticed that these constants are varying over the different chips or at least over family's.
As such the basics are pretty simple , there is a list of selectable input-sources and another with the Output Selection. It would be most convenient and logic if these could be integrated in the definition-files together with the interrupt-vector constants for which we have the same problem.
Au royaume des aveugles, les borgnes sont rois.

User avatar
milan
mikroElektronika team
Posts: 1013
Joined: 04 May 2006 16:36
Contact:

#7 Post by milan » 11 Jun 2009 15:06

Hi,
jpc wrote:Another realted issue are the Remappable Pin constants as they start appearing on the newer chips, i noticed that these constants are varying over the different chips or at least over family's.
As such the basics are pretty simple , there is a list of selectable input-sources and another with the Output Selection. It would be most convenient and logic if these could be integrated in the definition-files together with the interrupt-vector constants for which we have the same problem.
noted, we will check/implement this.
SmartADAPT2 rules !

Post Reply

Return to “mikroPascal for dsPIC30/33 and PIC24 General”