AT commands using atmega16a

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was trying to interface sim900a gsm module with atmega16a although the uc gives a proper usart ouput AT but the sim900a dosent responds to its commands. But when AT command is given using pc terminal it would respond just fine. Where am I going wrong Is it due to voltage difference?Please help.... I have attached ss of the terminal.

Attachment(s): 

Electronics Student

Last Edited: Sat. Jun 9, 2018 - 07:49 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Welcome to AVRFreaks!

 

Bet its a baud rate "issue". What provides the clock for the Mega16?

 

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

Last Edited: Sat. Jun 9, 2018 - 07:52 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Even I thought so at begin in but both the device are working at 9600 baud and 16a is clocked by 8mhz crystal. Terminal reads garbage value from both device if I increase or decrease the baud rate. 

Electronics Student

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And Thank you!!!laugh

Electronics Student

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Post your code. Bet there is a glitch in the setup of the usart

East side Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.electronicwings.com/a...

I got the reference from this site.

Electronics Student

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

USART seems ok because I tried communicating with 8a chip which responds back just fine.

Electronics Student

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The link gives me a 404 error.
Post YOUR CODE.

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I guess it was an hardware error I tried replacing with a new 16a and it works. Thank you so much for your help.

 

Electronics Student