Bonjour SVP, j'ai besoin de votre aide! Dans le cadre de PFE, j'ai des problèmes avec la programmation avec MikroC for pic, je doit programmer un pic18f4550 pour afficher sur un lcd le code barre lit par un lecteur code barres connecté par câble USB. Comme première partie je veut tester le programme ci dessous mais il ne fonctionne pas :/
les erreurs signalés par le compilateur :Code:#pragma chip PIC18F4550; char LCD_DataPort at PORTD; // LCD pinout setting sbit LCD_RS at PORTE.B1; sbit LCD_RW at PORTE.B0; sbit LCD_E at PORTE.B2; sbit LCD_D0 at PORTD.B0; sbit LCD_D1 at PORTD.B1; sbit LCD_D2 at PORTD.B2; sbit LCD_D3 at PORTD.B3; sbit LCD_D4 at PORTD.B4; sbit LCD_D5 at PORTD.B5; sbit LCD_D6 at PORTD.B6; sbit LCD_D7 at PORTD.B7; // Pin Direction; sbit LCD_RS_Direction at TRISE.B1; sbit LCD_RW_Direction at TRISE.B0; sbit LCD_E_Direction at TRISE.B2; sbit LCD_D0_Direction at TRISD.B0; sbit LCD_D1_Direction at TRISD.B1; sbit LCD_D2_Direction at TRISD.B2; sbit LCD_D3_Direction at TRISD.B3; sbit LCD_D4_Direction at TRISD.B4; sbit LCD_D5_Direction at TRISD.B5; sbit LCD_D6_Direction at TRISD.B6; sbit LCD_D7_Direction at TRISD.B7; void main() { // configure external LCD #define LCD( EIGHT_BIT & LINES_5X7 ); TRISD = 0x00; // PORT D IS OUTPUT TO LCD TRISE = 0x00; // PORT E IS OUTPUT TO LCD Lcd_Init(); lcd_cmd(_lcd_clear) ; lcd_cmd(_lcd_cursor_off) ; lcd_out(1,1,"mariem"); lcd_out(2,1,"benawicha"); }
0 1 mikroCPIC1618.exe -MSF -DBG -pP18F4550 -DL -O11111114 -fo4 -N"C:\Users\Public\Documents \Mi kroelektronika\mikroC PRO for PIC\Examples\Development Systems\EasyPIC6\Led Blinking\MyProject.mcppi" -SP"C:\Users\Public\Documents \M ikroelektronika\mikroC PRO for PIC\defs\" -SP"C:\Users\Public\Documents \M ikroelektronika\mikroC PRO for PIC\uses\P18\" -SP"C:\Users\Public\Documents \M ikroelektronika\mikroC PRO for PIC\Examples\Development Systems\EasyPIC6\Led Blinking\" "MyProject.c" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_CType.mcl" "__Lib_CString.mcl" "__Lib_CStdlib.mcl" "__Lib_CMath.mcl" "__Lib_MemManager.mcl" "__Lib_Conversions.mcl" "__Lib_Sprintf.mcl" "__Lib_PrintOut.mcl" "__Lib_Sprinti.mcl" "__Lib_Sprintl.mcl" "__Lib_Time.mcl" "__Lib_Trigonometry.mcl" "__Lib_Button.mcl" "__Lib_Keypad4x4.mcl" "__Lib_Manchester.mcl" "__Lib_OneWire.mcl" "__Lib_PS2.mcl" "__Lib_Sound.mcl" "__Lib_SoftI2C.mcl" "__Lib_SoftSPI.mcl" "__Lib_SoftUART.mcl" "__Lib_ADC_A_D.mcl" "__Lib_EEPROM_256.mcl" "__Lib_FLASH_w32_e64.mcl" "__Lib_I2C_b10.mcl" "__Lib_PWM_c21.mcl" "__Lib_SPI_b10c7.mcl" "__Lib_UART_c67.mcl" "__Lib_USB_genHID.mcl" "__Lib_PortExpander.mcl" "__Lib_CANSPI.mcl" "__Lib_CF.mcl" "__Lib_CFFat16.mcl" "__Lib_GlcdFonts.mcl" "__Lib_Glcd.mcl" "__Lib_LcdConsts.mcl" "__Lib_Lcd.mcl" "__Lib_Mmc.mcl" "__Lib_MmcFat16.mcl" "__Lib_RS485.mcl" "__Lib_S1D13700.mcl" "__Lib_T6963C.mcl" "__Lib_SPIGlcd.mcl" "__Lib_SPILcd.mcl" "__Lib_SPILcd8.mcl" "__Lib_SPIT6963C.mcl" "__Lib_EthEnc28j60.mcl" "__Lib_TFT.mcl" "__Lib_TouchPanel_TFT.mcl" "__Lib_EthEnc24j600.mcl" "__Lib_TouchPanel.mcl"
0 1139 Available RAM: 2027 [bytes], Available ROM: 32768 [bytes]
0 126 All files Preprocessed in 47 ms
0 1507 Unknown pragma line ignored: '' MyProject.c
0 122 Compilation Started MyProject.c
40 123 Compiled Successfully MyProject.c
0 127 All files Compiled in 31 ms
0 360 Unresolved extern 'LCD_EN' __Lib_Lcd.c
0 360 Unresolved extern 'LCD_EN_Direction' __Lib_Lcd.c
0 360 Unresolved extern 'LCD_EN' __Lib_Lcd.c
0 102 Finished (with errors): 18 mars 2015, 14:59:18 MyProject.mcppi
J'ai pas compris le problème c'est de mon logiciel (cad il manque qlq chose) ou le problème du code.
Merci de m'aider .
-----