لماذا هذا الكود لا يولد ملف هيكس مع انه صحيح
كود:
sbit Lcd_RS at RB0_bit;
sbit lcd_En at RB1_bit;
sbit lcd_D4 at RB2_bit;
sbit lcd_D5 at RB3_bit;
sbit lcd_D6 at RB4_bit;
sbit lcd_D7 at RB5_bit;
// Pin direction
sbit lcd_RS_Direction at trisb0_bit;
sbit lcd_En_Direction at trisb1_bit;
sbit lcd_D4_Direction at trisb2_bit;
sbit lcd_D5_Direction at trisb3_bit;
sbit lcd_D6_Direction at trisb4_bit;
sbit lcd_D7_Direction at trisb5_bit;
int temp1;
char temp[10];
void adc(){
temp1=ADC_READ(0);
temp1=temp1*0.245*2;
INTToStr(temp1,temp);}
void main() {
TRISA = 0xFF;
TRISD=0;PORTD=0;
TRISB=0;PORTB=0;
TRISc=1;PORTc=0;
Uart1_init(9600);
Lcd_Init();
lcd_cmd(_LCD_CURSOR_OFF);
while (1) {
lcd_out(1,10,temp);
UART1_Write_Text("temperature");
UART1_Write_Text(temp);UART1_Write(13);UART1_Write(10);;Delay_ms(1000);;
adc();
} }
ويبدو انه منزعج من تعريف الشاشه