Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[AVR] Serial Port interfacing problem

Status
Not open for further replies.

Rajashri.Shevale

Junior Member level 2
Joined
Dec 31, 2014
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
India
Activity points
164
Hii , I am interfacing sim900a to the Atmega32 microcontroller and also checking its status on PC via DB9 connector. It is working well when I entered AT commands manually but when I am doing same thing by programming it shows garbage value on PC..I don't know why this is happening???
 

Post your code. If possible zip and post your project files. Also port your Circuit. Are the baudrate generated by AVR correct ? What Compiler are you using to write the code ? What is the clock frequency ?
 

Post your code. If possible zip and post your project files. Also port your Circuit. Are the baudrate generated by AVR correct ? What Compiler are you using to write the code ? What is the clock frequency ?

I am using AVR studio for compilation with 8Mhz frequency, and giving baud rate 9600
 

Attachments

  • Untitled.png
    Untitled.png
    64.4 KB · Views: 61

Disconnect SIM900 for AVR. Connect AVR's UART to PC using MAX232 and DB9 Connector or use TTL2USB adapter between AVR's UART and PC and see if you receive the AT commands send by AVR. If you see garbage on PC then it is surely a baudrate problem.
 

First if you have Proteus simulator then make your circuit in that
Use terminal in Proteus.
Load hex file and play simulation ....
See at commands in virtual terminal window..
If necessary try to post your code here
 
Last edited by a moderator:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top