Announcement

Collapse
No announcement yet.

programmer avr

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • programmer avr

    good evening to all here ..
    I decided to learn programming languages c ..
    I have suppliers avrispmkll atmel ..
    I have installation avr stydio 6
    I made a simple program to try to the transition to attiny45 and no I have accomplished I'm confused..
    can help me how to program a chip..

    HELPppppppp.....

  • #2
    Okay, I will tell you, based on what I understand from what you posted. I am guessing you want to program your program file into an Atmel chip. So the first thing you have to do is use an assembler software and then assemble your Assembly Language program file, which is not yet either a binary file (.BIN) or a hex file (.HEX). So you assemble the file into one of those files. You see, the program you wrote is in Assembly Language format, and you need to change it from Assembly Language into Binary or Hex format. Then you are ready to begin to program the chip...

    Then you get a programmer unit, select the Atmel chip number that you want to program into, put that chip into the socket, with the pins facing the way the programmer unit tells you to put the chip in, then go in and copy the Bin/Hex file into the programmer unit, then select program and it should program it into the chip. Now not sure if you want to conceal your Bin/Hex file from the public. If you do, you must select SECURE and it will not only program it, it will SECURE it so no one can copy the file or look inside the file or disassemble the file.
    Melbeta

    Comment


    • #3
      hello pal melbete.... And thank that will help me..
      AT FIRST I am a novice in this field...
      I've supplier of software assembly of company ATMEL And name it IS ( AVRISP MKLL .... & STUDIO 6.1)
      the programming language is ( C )...
      and microcontrollers ( ATTINY 45 )...
      So I started BEGINNING new project and then declare their GCC C EXECUTEBCE PROJECT C/C++ , AFTER I MADE DEVICE FAMILY and declared the ( ATTINY 45 )....
      I finally appeared EDITOR and I wrote this little program FIGURE 1..

      #include <avr/io.h>


      int main(void)
      {
      // Set Port B pins as all outputs
      DDRB = 0xff;

      // Set all Port B pins as HIGH
      PORTB = 0xff;

      return 1;}
      Click image for larger version

Name:	g.s prog.JPG
Views:	1
Size:	22.9 KB
ID:	337982

      unfortunately until here, I know not what DO I DO Below ...
      From here we need your help..
      Thanks in advance g.s..

      Comment


      • #4
        You are using Progammer MKII? Recognizes AVR Studio the MKII? Detects the AVR Studio the ATtiny45 when connect the circuit? First you have to be sure that your programmer with the software works. Can read the chip-....

        I am using BASCOM. I get along better with this software.
        AVR Studio is a powerful software but I find it too complicated ...

        Many people use the load of hex files also ponyprog. Seems to be very user-friendly ...
        A beautiful website is also myAVR ....
        regards
        Dirk

        Comment


        • #5
          Good evening dixix Can you indicate the manner in which can be traced mkii .. How is this done
          I am not aware that being this function so I do not know if there is communication..
          please help me to try're communicating...

          Comment


          • #6
            Sorry, I am not familiar with the AVR Studio program. Some years ago I wanted to play a little with AVR controllers. Write simple routines and load them onto the chip.
            AVR Studio was too complicated for me as a beginner. And add to that the language barrier.

            I chose "myAVR" and later "Bascom" (The programming language is a kind of "BASIC"). But enough chatting .....

            Important: The correct installation of the USB driver on your computer. Nothing else is possible.
            I seem to remember that you must also set in the AVR Studio first the target programmer (MK II) and then the right chip - in your case the ATtiny45 ....

            regards
            Dirk

            Comment


            • #7
              Sorry, unfortunately I'm not the expert.
              If nothing works look here:

              http://shop.myavr.de/index.php?sp=do...kt_kategorie=4

              (For easy loading the hex files I like to use the free program "ProgTool")


              Since you want to program in "C" this is not so interesting for you (but is my favorite ...)
              Heir there is also a free demo version (limited to 4 kB I think) but sufficient for most applications ....

              http://www.mcselec.com/?option=com_c...d=14&Itemid=41

              I hope this helps a little. And please do not give up.

              My experience is: Things never works the first time.

              Dirk

              Comment


              • #8
                THANK YOU dixix very much for the time spent for me.
                but it's very difficult to plan in avrispmkll & studio 6 if not I find someone to explain to me this functional..
                might be better I get a pickit 2 there is someone here who know in this, from that seeing is much more user friendly and iparchoun POLA videos for this..
                So what do you think.........

                Comment


                • #9
                  eeeee Parent Areas , discover that there are and BASCOM What is your opinion about this language..
                  is capable...

                  Comment


                  • #10
                    Hello g.s.
                    The question is: which programming language you know?
                    You wrote you want to "C " to write. Many learn today in school . If you "C" well you should have mastered in this language remain .

                    I 'm older. I am a beginner and found me on BASCOM user-friendly . Good for self-study . There is a good Bascom-textbook in my mother tongue (over 500 pages!) . And a good German language Bascom - forum. There I can ask. So I 've decided to Bascom .

                    Look to see if it in your mother tongue is a forum about microcontroller. And in the libraries you can also be successful.

                    In the English language has the following good forum ( If you're good englsich ....):

                    http://www.avrfreaks.net/
                    They can help you determine with AVR Studio ....

                    Here in the Geotech forum is used preferably Pic controller.
                    I have PicKit2 only to load of hex files . In order to build such beautiful project " Pickini " . But with the programming of pic's I am not familiar .... The language barrier ....

                    regards
                    Dirk

                    Comment


                    • #11
                      he succeeded .. and I am very HAPPY
                      I put my first Program for atiiny45..
                      dixix I wanted to ask the bascom a programming language ?
                      is relying on a basic or is it a different language as we say ( basic . c . c++ . asebli .....
                      because the program I made are in this language ( bascom )
                      Thanks a lot

                      Comment


                      • #12
                        I am looking forward to your success! Patience is important .....
                        To your question by BASCOM;
                        It might be best if I write you a sample code:

                        $regfile = "attiny13.dat" 'Chip set
                        $crystal = 1200000
                        'Frequenz set
                        Config Portb = Output

                        Do
                        'start of loop

                        Portb.0 = 1
                        'LED on
                        Wait 1
                        '1 Second waiting

                        Portb.0 = 0
                        'LED on
                        Wait 1
                        '1 Second waiting

                        Loop
                        'end of loop

                        End


                        This is the simplest "Hello World" program. Maybe it will help you to get an idea of ​​the programming language BASCOM...

                        Comment


                        • #13
                          to a video my http://www.youtube.com/watch?v=5E06J...ature=youtu.be...
                          dixix I now You understand that hard work in front of me . THANK particularly for the help you gave me..
                          But I have an important queries..
                          All the microcontrollers have been POWER +5 and gnd ,Well , When I want to created a length square pulses where to starts -5 volt until +5 volt How can they do that ??
                          Think it can be done with a similar power to the happens with driving with a transistor ??
                          and the through planning ??.
                          If you know and can you tell me about this ...

                          Comment


                          • #14
                            Microcontrollers are a good thing because you can save a lot of components. If I understand your question correctly, then you can not generate negative voltages (-5V) with a microcontroller. You can setting pins of an MC for example to "HIGH" or "LOW" (0V or ca.+5V). Transistors for switching larger loads are meaningful (or relays).
                            For output voltages of graded you will need a digital-to-analog converter. Which can be easily set up with a resistor network .....
                            But maybe I misunderstood your question?

                            Comment


                            • #15
                              sorry dixix My English it sucks..
                              I mean one shown in FIGURE
                              Click image for larger version

Name:	pic to pic.JPG
Views:	1
Size:	8.0 KB
ID:	338052

                              Comment

                              Working...
                              X