atmega16 problem

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

i searched for a seven segment digital clock circuit using avr atmega16 on internet.

i also find the program code for it. i then copied it to atmel studio 5 . created a .hex file, it compiled but didn't

work when i used it in proteus 8.

 

Keep Learning

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

Ahsan Ali wrote:
atmel studio 5

Why 5 ??

 

didn't work when i used it in proteus 8.

So get debugging, then!

 

Step through the code & see where it goes wrong.

 

Last Edited: Wed. May 17, 2017 - 06:18 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It might not be the root of your problem, but awneil is right. Studio 5 is the worst of the worst. It was so bug-ridden that Atmel at that time very quickly came out with Studio 6. They are now at Studio 7. Get one of those, and get rid of Studio 5. No-one here wants to talk about Studio 5. Very few have it installed, and they will get the firm advice you're getting here and now.

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

i am using windows 7. atmel 7 is not possible to download

 

Keep Learning

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

If the size of the down load for AS7 is too big (or too slow to download), then get AS4.19

 

Jim

 

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

well i can post program coding here. you could check can creates a .hex file for me.

i am programing for seven segment digital clock.

and (the website from where i picked the program coding) they says that it is program in atmel studio 5.

 

and also i am not seeing any error. 

it builds up perfectly.

any help would be appreciable

as i want to simulate it on proteus before performing 

Keep Learning

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

i am using macbook. and have installed windows 7 besides mac os.

 

so so atmel 7 is not easily possible

Keep Learning

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

"Does't work" does not tell us much about the problem your having, also if your using Proteus, you must have a license for its use, you should be asking them for help as your description of the problem is it "doesn't work" in Proteus! 

 

 

Jim

 

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

ok . i have a program.

i ran it into atmel 5 and generated .hex file.

the program compiled successfully. 

then i uploaded file into proteus 8.

microcontroller does not works.

Keep Learning

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

An alternative to Atmel Studio 7 on macOS is CrossPack.

CrossPack was recently updated; the update includes Atmel AVR GCC 3.5.4.

That's not the most recent Atmel AVR GCC though it's close as Atmel Studio 7.0.1416 has AVR GCC 5.4.0 and Atmel Studio 7.0.1188 has AVR GCC 4.9.2.

The IDE appears to be Apple Xcode instead of Microsoft Visual Studio Isolated Shell.

AVaRICE is included though don't know how that integrates with Xcode through AVR GDB.

 


https://github.com/obdev/CrossPack-AVR/blob/master/mkdist.sh

...

# The following packages are fetched from Atmel:
atmelToolchainVersion=3.5.4
version_binutils=2.26.20160125
version_gcc=4.9.2
 
 

version_avrlibc=2.0.0

via

https://github.com/obdev/CrossPack-AVR

 

http://www.atmel.com/tools/atmelavrtoolchainforwindows.aspx

http://www.microchip.com/development-tools/atmel-studio-7/avr-and-arm-toolchains-(c-compilers)

http://www.microchip.com/development-tools/atmel-studio-7

http://avarice.sourceforge.net/

 

"Dare to be naïve." - Buckminster Fuller

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

If it compiles ok, but does not run in proteus, cantact the help at labcenter!