Well in C18 i think you should include the float.h file. Maybe this will fix your problems you might be able to find more about it in the MPLAB C32 folder > "C Library Guide"
Hi hkBattousai bat for use the sprintf functioun is not necessary include the string.h library ?
Can you put the code for the glcd_PutRAMMessage function or your glc.c ?
I check the your code bat no work in my board. **broken link removed**
Hi hkBattousai bat for use the sprintf functioun is not necessary include the string.h library ?
Can you put the code for the glcd_PutRAMMessage function or your glc.c ?
I check the your code bat no work in my board.
Hi hkBattousai bat for use the sprintf functioun is not necessary include the string.h library ?
Can you put the code for the glcd_PutRAMMessage function or your glc.c ?
I check the your code bat no work in my board.
You can use any PIC, no only 18F4550. You just have to make port mapping carefully, that's all.
I preferred 18F4550 just because of being a 40-pin device, and its USB support.
Hi hkBattousai i am confused in this part of your code **broken link removed**
Can you specify
#define GLCD_DATA PORTB
#define GLCD_CS1 LATCbits.LATC7 //GCS1 ok
#define GLCD_CS2 LATCbits.LATC6 //GCS2 ok
#define GLCD_DI LATCbits.LATC0 //DI or RS ???
#define GLCD_RW LATCbits.LATC1 //RW ok
#define GLCD_EN LATAbits.LATA5 //EN or E ???
#define GLCD_RS LATCbits.LATC2 //RS or RST ???
#define GLCD_TRIS_DATA TRISB
#define GLCD_TRIS_CS1 TRISCbits.TRISC7 //GCS1 ok
#define GLCD_TRIS_CS2 TRISCbits.TRISC6 //GCS2 ok
#define GLCD_TRIS_DI TRISCbits.TRISC0 //RS or DI ???
#define GLCD_TRIS_RW TRISCbits.TRISC1 //RW ok
#define GLCD_TRIS_EN TRISAbits.TRISA5 //E or EN ???
#define GLCD_TRIS_RS TRISCbits.TRISC2 //RST or RS or DI ???