Shop OBEX P1 Docs P2 Docs Learn Events
tiny13 — Parallax Forums

tiny13

agfaagfa Posts: 295
edited 2008-06-27 16:55 in General Discussion
A question for those of you who have used atmel's processors.

I've seen several posts that describe the use of a tiny13, sounds like a powerfull·device to use in conjuction with parallax's·products.· I read a·post by Phil Pilgrim·using it as a·co-processor for a·stamp, if I remember correctly.· Sounds very interesting.· I checked out·Atmel's page for more info, but am a little overwhelmed.· Keeping costs in mind, What would someone need, the very basics, hardware and software to get started using this type of product?

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-06-21 14:50
    The MoboStamp-pe includes two ATTiny13s onboard. You can download a program (LoadAVR) from the Parallax website that will allow you to install programs in these processors. Free software available from Atmel (AVR Studio) allows you to develop your own programs for them. This would be the most economical way to get started, if you want to use the ATTiny13 in conjunction with a BASIC Stamp, since the Stamp is included on the Mobo.

    For standalone development, Atmel offers their ATSTK500 AVR starter kit. DigiKey sells them for about the same price as Parallax sells the Mobo. You can program loose parts (DIPs) with it, but it doesn't come with any BASIC Stamp hardware.

    There are also many third-party AVR programmers available and plans on the internet for building your own. Google is your friend here.

    -Phil
  • LeonLeon Posts: 7,620
    edited 2008-06-21 15:02
    The AVR Dragon is quite inexpensive and lets you debug and program all AVR chips in-circuit.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-06-22 11:29
    The only real drawback is that the AVR is really a much steeper learning curve.

    Also, the expectation that these chips can do every function they offer under one program is somewhat of an illusion. Often one function excludes another for certain i/o pins and running a real-time clock will upset serial ports due to interrupt routines.

    So the perceived value is somewhat of an illusion. With beginners, the product often ends up collecting dust on a closet shelf.

    The Tiny13 is one of the easiest because it is so limited.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PLEASE CONSIDER the following:

    Do you want a quickly operational black box solution or the knowledge included therein?······
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • agfaagfa Posts: 295
    edited 2008-06-26 02:27
    Thanks for the feedback.· The·MoBoStamp-pe product description mentions "Parallax’s own library of uploadable AVR code".· I can't locate it.· Can someone provide a link?
  • Mike GreenMike Green Posts: 23,101
    edited 2008-06-26 02:38
    Have you looked at the webstore page for the MoBoStamp-pe? (here www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/CategoryID/9/List/0/SortField/0/Level/a/ProductID/451/Default.aspx) It's not so much a library as the source code for the AVR code that comes with the MoBoStamp-pe. There are individual functions that can be selected so the program acts as a "library" of functions to the Stamp that can be modified by the user. Look at the GPIO3 manual.
  • agfaagfa Posts: 295
    edited 2008-06-26 02:46
    Thanks for clearing that up.
  • pwillardpwillard Posts: 321
    edited 2008-06-27 12:07
    One of the fundamental differences between AVR and the rest of the Micro families like Microchip PIC, the various 8052 and Z8 flavors, and those of Texas instruments etc, is that the AVR seems to have been designed from the beginning to be programmed with C. The fact that the AVR is one of the only micro families to have an open source and free C compiler is actually a sign that they succeeded in that goal. The handy ARDUINO board is an interesting example of using an AVR to make a C based prototyping plaform to accomplish some of the things we do so well with the Basic Stamp. A Basic stamp it is not... it can not touch the the friendliness of the Stamp, but it has proven to be a very succcessful soliution for those wanting C over Basic. (Or·those who are·driven by the desire to·work with open source products over commercial products)

    Programming the standard AVR can also be done with free programming software and basic low cost programmers so there is no forcing you buy proprietary programming tools.

    As was stated already, the learning curve can be steep and to be honest... anywhere you could see yourself using and AVR... you could just as well use an SX chip unless using an 8 PIN chip is your driving desire.

    So, unless you have been dying to try programming a micro in C, the only other reason I can see trying an AVR if you haven't yet... is curiouslty and a desire to learn something now. The TINY series of microcontrollers is no longer as unique as they once were. Microchip is filling that void as often as they can.

    Personally... I enjoy using AVR's when it makes sense and programming them with Bascom's BASIC compiler for the AVR series, so even I am not usiong the free (GCC) C compiler even though I could be.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    There's nothing like a new idea and a warm soldering iron.

    Post Edited (pwillard) : 6/27/2008 12:12:43 PM GMT
  • LeonLeon Posts: 7,620
    edited 2008-06-27 12:22
    What about the TI MSP430, the PIC18F, PIC24F and PIC32, and the various ARM MCUs? They were all designed for use with C. Free compilers are available, generating very efficient code.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle

    Post Edited (Leon) : 6/27/2008 12:30:43 PM GMT
  • pwillardpwillard Posts: 321
    edited 2008-06-27 14:51
    Was not trying to exclude... just describe.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    There's nothing like a new idea and a warm soldering iron.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-06-27 16:55
    Here are some of my reasons for picking AVRs over PICs for the MoBoStamp-pe coprocessors:

    1. The Tiny13 internal clock rate (without external crystal or resonator) is higher at 9.6MHz for "up to" 9.6MIPS. 8-pin PIC internal clocks are (were in 2005 when the MoBo took shape) 4MHz for 1MIPS.

    2. Programming the chip's flash memory is easier than with a PIC and can be done from the BASIC Stamp itself without addional hardware or wasting pins.

    3. AVRs have separate pin and output registers. Unlike with PICs, you can read the output register, regardless of what the pin is doing. This, combined with very sane internal pullup activation/deactivation, makes bit-banging pins much easier.

    4. AVRs have a register-to-register architecture. With PICs, data has to move or be operated on through an accumulator (W register).

    Programming an AVR in assembly is much different from programming a PIC. The AVR instruction set was optimized from the beginning to yield compact programs. This means that some lesser-used instructions (like XOR with an immediate value) have been omitted, leaving a somewhat non-orthogonal architecture. Another quirk is that not all registers can be operated upon with immediate data or bit-manipulation instructions. There's also an architectural distinction between data registers and I/O registers. Hence the learning curve. But the Atmel engineers did their optimization homework well, because working programs turn out to be remarkably compact.

    Oddly enough, these comparative qualities don't necessarily imply anything about a company's bottom line or success in the marketplace. A good chunk of my retirement portfolio is invested in Microchip (MCHP) stock and none of it in Atmel (ATML). Go figure. smile.gif

    -Phil

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Still some PropSTICK Kit bare PCBs left!
Sign In or Register to comment.