mpmece
Newbie level 4
i am using at89s52 . i have connected the microcontroller to system using rs232 . nw i just want to print some data in hyperterminal
the program which i have used is
#include<8051.h>
#include<delay.c>
void send(unsigned char x);
main(){
TMOD=0x20;
TH1=0xFA;
SCON=0x50;
TR1=1;
while(1){
send('mpm');
}
}
void send(unsigned char x){
SBUF=x;
while(TI==0);
TI=0;
DelayMs(200);
}
if i use the c programming header ie #include<stdio.h> will the microcontrller accept that header ??
am just trying to send msg from at89s52 using gsm modem sim300 . i have tested the modem separately using hyperterminal it is working but when i try to send the sms using program i am not able to do so i dono wat mistake i am doin jus help me out .....
the program which i have used is
#include<8051.h>
#include<delay.c>
void send(unsigned char x);
main(){
TMOD=0x20;
TH1=0xFA;
SCON=0x50;
TR1=1;
while(1){
send('mpm');
}
}
void send(unsigned char x){
SBUF=x;
while(TI==0);
TI=0;
DelayMs(200);
}
if i use the c programming header ie #include<stdio.h> will the microcontrller accept that header ??
am just trying to send msg from at89s52 using gsm modem sim300 . i have tested the modem separately using hyperterminal it is working but when i try to send the sms using program i am not able to do so i dono wat mistake i am doin jus help me out .....