Electronics > Microcontrollers

Which mcu for beginner??

<< < (4/4)

WhyMe:

--- Quote from: jackbob on October 18, 2011, 10:40:26 pm ---I have only used c before on the arduino, so what is the difference between c and assembler? I have heard of it but don't know the differences. Is there a topic regarding this?

--- End quote ---

This explains levels of programming languages:

http://cset.sp.utoledo.edu/sample/engt1050/engt1050_languages.html

Psi:

--- Quote from: jackbob on October 18, 2011, 10:40:26 pm ---I have only used c before on the arduino, so what is the difference between c and assembler? I have heard of it but don't know the differences. Is there a topic regarding this?

--- End quote ---

C is much better for portability.

The asm language for one micro will be a little different compared to other brands of micro (or a lot different).
ie, the number of asm instructions and what they do isn't the same for all micros so code has to be rewritten if you change.
Where as C language code can be the same for all micros,  (the compiler automatically converts your C code into the asm code needed for the micro your using)


jackbob:
I made my own arduino board today based on the atmega328 and max232 for serial interface. It works great so far ( haven't tried the serial interface yet) but the normal arduino functions work. I have a question about uploading the bootloader to the chip. I have an arduino UNO and on the arduino website it says that the UNO board won't burn the bootlaoder but other boards will. But on eBay you can buy the atmega 328 with the bootlaoder preloaded. It's a couple extra dollars no big deal, but I want to know how to burn it myself. Any ideas? Thanks,

Jacob.

Chet T16:
I've used an uno to burn the bootloader to a couple of attiny85s

westfw:
The inability of the Uno to support burn the bootloader into other chips is "over-reported."  There are several workarounds that have been discussed MANY TIMES in the Arduino forums.  Check out the "Microcontrollers" sub-topic.

(short answer - you need to avoid auto-reset on the uno, so that running AVRDUDE doesn't cause a reset and end up talking to the Uno bootloader instead of the ArduinoISP sketch.  You can cut the trace, add an extra resistor or cap that "hotwires" the autoreset, or use a sketch dedicated to burning the bootloader that bypasses the problem entirely.
(optiLoader, by ... me!))

Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version