We dont have some of this functions , pls tell me what is lcd_raz_lign(1)
it is a own function wich erase all caracteres in line 1 of LCD , with blank car (space) and return
the cursor at the first position in the line ( line 1)
so ready to receive a new message
Also pls tell me what micro is this because i think pic16f877 dont have 2 uart
i am using 18F87J50 clicker2
but you can remove all code concerning UART1 .. because only used for debug purpose
and rename UART2 as UART .. UART existing in 16F877
SMS AT commands and response from GSM are quiete universal !
i dont' know detail about SIM9000
but you must have a header response (like "CTMI") when incomming SMS arrive ..
or you have a RING "RI" signal from SIM9000 ..
to check with an interupt pin like RB0 input, then read the SMS
- - - Updated - - -
Where did you find this word?
i am using a LCD 2119 2x16 c I2C mode
and i wrote my own functions.. it is not from LCD mikroC library
Code:
void LCD_RAZ_Ligne( int L)
{
I2C1_Start();
I2C1_Wr(LCD_ADR); // i2c slave Address
I2C1_Wr(0x00); // Control byte for Instruction
I2C1_Wr(0x02); // return home
switch (L)
{
case 1:
I2C1_Wr(0x80); // DDRAM Address 1ere ligne
break;
case 2:
I2C1_Wr(0xC0); // DDRAM Address 2em ligne
break;
default:
break ;
}
I2C1_Repeated_Start();
I2C1_Wr(LCD_ADR); // i2c slave Adress
I2C1_Wr(0x40); // Control byte for Data
for (i=0;i<39;i++)
{
I2C1_Wr(0x80+32); // efface avec des blanc
}
// repositionne au debut de ligne
I2C1_Repeated_Start();
I2C1_Wr(LCD_ADR); // i2c slave Adress
I2C1_Wr(0x00); // Control byte for Instruction
//I2C1_Wr(0x40); // Control byte for Data
switch (L)
{
case 1:
I2C1_Wr(0x80); // DDRAM Address 1ere ligne
break;
case 2:
I2C1_Wr(0xC0); // DDRAM Address 2em ligne
break;
default:
break ;
}
I2C1_Stop();
}