hi,
I'm now using the pic18h1320 for a smaller project.
I noticed the following problems in non-free/include/pic16/pic18f1220.h:
*lacking definitions:
T1RUN:1 in union T1CONbits
TRISA7:1 in union TRISAbits
RA7:1 in union PORTAbits
LATA7:1 in union LATAbits
unsigned IRCF0:1;
unsigned IRCF1:1;
unsigned IRCF2:1; in union OSCCONbits
Port A line 7 is implemented, and available in a certain internal oscillator configuration.
*a new struct shall be added to the OSCCONbits union:
struct {
unsigned SCS:2;
unsigned :2;
unsigned IRCF:3;
unsigned :1;
};
*some bits are defined even if they have no sense (RA5 is an input only):
LATA5 in union LATAbits
TRISA4 in union TRISAbits
Regards and thanks
SDCC : mcs51/gbz80/z80/z180/r2k/ds390/pic16/pic14/TININative/ds400/hc08 3.1.0 #7066 (Nov 22 2011) (MINGW32)
Of course I meant TRISA5, not TRISA4.
The pic device file generation has been heavily reworked lately, thanks to Karoly. The header files were regenerated, so please take the one from the svn head (or use the latest sdcc snapshot build) and see if it works for you. I can find all mentioned SFR definitions in the new header file.
Borut