EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
You are here: Home / Topics / interfacing sim300 with 8051

interfacing sim300 with 8051

|

Microcontroller › 8051 › interfacing sim300 with 8051

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 4 months ago by Ganesh Selvaraj.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 30, 2014 at 2:38 pm #3000
    minujayakumar
    Participant

    I am using AT89C52  controller in my project. I need to send message using sim300. sim300 is working properly when i connected to hyperterminal. I even tried connecting microcontroller to hyperterminal and it is also working properly. But when I connect microcontroller to sim300, it is not generating any message or call. Sim300 has inbuilt MAX232 IC and has RXD,TXD,GND pins. Should I connect these pins directly to the controller(10,11,20) or use MAX232 IC and RS232 externally? I tried both of them, but its not working. Can you provide me with correct circuit? When I run the program in proteus, I get different symbols in virtual terminal. Why I am getting like this?

    This is the code i have used in my project.

    #include<reg52.h>
    void cmd(unsigned char *p)
    {
    while(*p)
    {
    SBUF=*p;
    p++;
    while(TI==0); 
    TI = 0;
    }
    }
    void main()
    {
    unsigned int i,j;
    SCON = 0x52;    
    TMOD = 0x20;   
    TH1  = 0xFD;    
    TR1= 1;  
     
    cmd(” ATr”);
    for(b=0;b<1000;b++);
    cmd(” AT+CMGF=1″);
    for(b=0;b<1000;b++);
    cmd(” AT+CMGS =“+918939xxxxxx””);
    for(b=0;b<1000;b++);
    cmd(” Hello “);
    for(b=0;b<1000;b++);
    SBUF = 0x1A; 
    here: goto here;
    }
     
    March 31, 2014 at 2:48 am #11424
    Ganesh Selvaraj
    Participant

    Microcontroller works on TTL logic (logic high =5V) ans RS232 works with +12V …. connecting them directly will damge the system. If you have MAX232 IC on Modem and connecting through the RS232 port, then it is mandatory to have the same on other side also (on Microcontroller side).

     

    And regarding your program, I’m not much familiar with 8051 Programming but what baud rate have you taken in this program? and did you set the same baudarate on proteus Virtual Terminal? Unexpected symbols are shown on the VT usually when there is a mismatch of baudrate.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • How know if solder iron has good quality tip? August 18, 2022
  • How does a transistor works as a switch? August 18, 2022
  • Peltier control August 18, 2022
  • How to set USB port as RS-485 entrance? How to interpret Growatt solar inverter commands? August 18, 2022
  • Component Identification August 18, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools