electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software
Pointers for Atmel AVR uses?
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 2 of 2 [32 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: Previous 1, 2
Author Message
jksuperstar



Joined: Aug 20, 2004
Posts: 2503
Location: Denver
Audio files: 1
G2 patch files: 18

PostPosted: Wed Apr 11, 2007 3:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

I started off using the stimulators myself, but found it much easier to just connect the switch on a breadboard, and make an LED blink. Once I had the basics proven, I started learning about the device more quickly by just doing it, and keeping my momentum (& excitement) going, rather than simulating things & stepping through all the code.

BTW - there is a free simulator that is included with WinAVR (simulavrxx) that one can use if you wanted to step through code just to see it.
Back to top
View user's profile Send private message Visit poster's website
bugbrand



Joined: Nov 27, 2005
Posts: 846
Location: Bristol, UK
Audio files: 1
G2 patch files: 1

PostPosted: Wed Apr 11, 2007 3:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

Cool. I was only really interested in AVRstudio for the sim. (and I'm programming the chips via it too at the moment) so that's good if there's a WinAVR (simple) sim.

Thanks!

I now need to get going again 'cos I made the proto sequencer block - haven't tied it to the AVR dev. yet but its working as a block (four stages with a global range dial (c.1v range to 5v range) and glide ----- nice!)

_________________
http://www.bugbrand.co.uk
http://www.bugbrand.blogspot.com
Back to top
View user's profile Send private message Visit poster's website
dave_b



Joined: Apr 01, 2007
Posts: 42
Location: Kansas City

PostPosted: Thu Apr 12, 2007 8:18 am    Post subject: Reply with quote  Mark this post and the followings unread

jksuperstar wrote:
I started off using the stimulators myself, but found it much easier to just connect the switch on a breadboard, and make an LED blink. Once I had the basics proven, I started learning about the device more quickly by just doing it, and keeping my momentum (& excitement) going, rather than simulating things & stepping through all the code.
For me, the blinking LED was the biggest hurdle. After I was able to make the chip do something, it got much easier and more rewarding.

I use the simulator when I don't have the hardware handy (during lunch at my dayjob). I also use it to find bugs before they become an issue. On the downside, I've found it real easy to make a mess that appears to work in the simulator, but runs into a ditch on the hardware at 4Mhz. Maybe that's more of an assembler thing?
Back to top
View user's profile Send private message
jksuperstar



Joined: Aug 20, 2004
Posts: 2503
Location: Denver
Audio files: 1
G2 patch files: 18

PostPosted: Thu Apr 12, 2007 9:51 am    Post subject: Reply with quote  Mark this post and the followings unread

I can see the value in that. Especially if you're coding in assembly.
Back to top
View user's profile Send private message Visit poster's website
synth_ollie



Joined: Sep 11, 2006
Posts: 149
Location: sweden

PostPosted: Mon Nov 19, 2007 3:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

I was thinking of building this

http://www.borg.com/%7Ejglatt/hardware/pc_keys/adapter.htm

myself I know nothing about avr/microcontrollers, but a guy I know
has the equipment/skills for programming it, but he says that he needs
the data in hexfile format, so I was wondering if someone here could help me to convert this

http://www.borg.com/%7Ejglatt/hardware/pc_keys/pckb.asm

into hex format, I guess you need some kind of software to do this ?
Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24083
Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320

PostPosted: Mon Nov 19, 2007 4:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yes, you need an assembler to translate the assembly code into numbers that can be understood by the processor. The numbers can be put into a hex file and in that format most programmers can burn them into a chip. Usually one of the output file formats for an assembler for a processor like the AVR is hex.

I don't use AVR myself, but a quick google showed that Atmel has a development environment that seems to be down loadable (after registration) - that one should do the trick ( http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725 )

Another option would be to have a look at http://sourceforge.net/projects/avra

But probably AVR diehards have better suggestions for tools.

You should consider making your own development environment , as software is never bug free and if it were you still might want to modify it.

The AVR chip used in the link features in circuit programming, which makes it possible to program the device while it is in the circuit with relativley simple and cheap (serial, parallel or USB) interfaces (from your computer). This will enable you to modify the program and beam it up to the controller immediately.

The interface might even allow you to single step through your code to help you see where things go wrong - I'd be disappoited if it wouldn't allow for that Very Happy

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
synth_ollie



Joined: Sep 11, 2006
Posts: 149
Location: sweden

PostPosted: Thu Nov 22, 2007 3:59 am    Post subject: Reply with quote  Mark this post and the followings unread

thanks for your reply BH,

a person who is into this kind of software has now helped me out Smile


cheers,

OLLIE
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 2 of 2 [32 Posts]
View unread posts
View new posts in the last week
Goto page: Previous 1, 2
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use