Qrios
Newbie level 6
I am trying to write a program that uses C programming to send sms through a GSM modem. I am confused about the initialization of the micro-controller. (C8051F330)
This is the code I found online **broken link removed**
and this is the modem I'm using https://rainbow.com.ua/upload/files/modemi/Q2403 Application Note.pdf
If I am using C8051F330 instead of at89x51, how should I change the initialization of the program?
Another code i found is :
This is the code I found online **broken link removed**
and this is the modem I'm using https://rainbow.com.ua/upload/files/modemi/Q2403 Application Note.pdf
If I am using C8051F330 instead of at89x51, how should I change the initialization of the program?
Code:
void initialize_serialcommunication(void){
TMOD = 0x20;
SCON = 0x50;
TH1 = 0xFD;
TL1 = 0xFD;
TR1 = 1;
TI = 1;
}
Another code i found is :
Code:
xdata char tBuff[50], rBuff[150];
void serialInit(void) {
uartInit(96);
EA= 1;
ES=1;
siInit(50, tBuff, 150, rBuff);(I cannot find the code on this )
T1=1;
Last edited by a moderator: