Y.li
Member level 2
- Joined
- Apr 5, 2012
- Messages
- 52
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,649
Yes there are. Many modern microcontrollers do not need dedicated programmers.
An example is ATmega32u2 which has a USB interface. See attachment for a guide.
Another example is Atmel ARM devices (e.g. AT91SAMx) which have a USB port and bootloader code too.
Even very old microcontrollers like 68HC11 series you could program through the serial port, by first
programming some bootloader which would be responsible for downloading the actual code.
With the ISP, you can create a breadboard containing your microcontroller (even use a SMD to DIP adapter if you want) and the ISP connector and a crystal if you need it, and it essentially becomes a 'jig' for programming microcontrollers. Once the microcontroller is programmed, you can remove it and use it.I am looking for a uC which I can plug in a bred board (maybe with a crystal) and interface it with a PC for programming, so that I can use the uC DIP somewhere
Unfortunately I don't, but I'd suggest to run a 'flashing LED' type of program for whichever microcontroller you choose (usually that is the first 'getting started' piece of software, like 'hello world' programs), and then that can be used to assure that the compiler is functioning and that you can successfully download the program to the device and run it.By any chance, do you have similar tutorials for learning C programming for uCs
Unfortunately I don't, but I'd suggest to run a 'flashing LED' type of program for whichever microcontroller you choose (usually that is the first 'getting started' piece of software, like 'hello world' programs), and then that can be used to assure that the compiler is functioning and that you can successfully download the program to the device and run it.
Personally I learned C by writing code to run on a PC too, so not everything needs to be learned using the microcontroller. To run on a PC, I used the gcc compiler for Linux, or, on Windows, install cygwin and use the gcc from there.
I used two books (neither are cheap, but they are fairly short to read and provide all the knowledge required). They are 'The C Programming Language' and 'Problem Solving and Program Design in C' (older editions of the latter are cheaper; besides, C doesn't change over the years). I don't know of any web resources as good as those books.
Armed with that C knowledge, and knowledge of how to read and write to pins of microcontroller ports, then you are in a good position to write whatever software you need. The pin read/write method is described in the PDF doc earlier.
There is some additional knowledge that is useful relating to 'integrated peripherals' that are in most microcontrollers (such as UART, timers, PWM) but that can come later (and is studied by inspecting the microcontroller datasheet).
You're referring to a simulator.can I use it to write a code for LED blinking and see if it works in terms of o/p at ports without actually connecting an Atmel uC
I think codevision has been around for a long time, so it is probably fine.
You're referring to a simulator.
There are different levels of simulation. You're referring to complete machine instruction set simulation. For small microcontrollers, I personally don't
do that, because it is quick to download and directly run on the microcontroller and directly monitor and debug. However, others make use of such simulators,
so you may have your own preference.
If you wish to do such simulation, unfortunately I don't know what tool suite is best.
If I wish to simulate an algorithm (rather than the entire code) I will use other methods. For example by writing some test code targetted for a Windows
PC or Linux PC.
I use IAR (I'm most familiar with that) and the kickstart version is free. I also use GCC for other devices
(it is open source and free). If I wish to simulate an algorithm I will just use GCC targetted for my PC.
Anyway, these are just some suggestions, others may do things differently.
Yes, IAR offers simulator.Can CAVR/IAR be used for this purpose.
A specific part of the code, with no hardware involved. This is not the definition of algorithm, but "what is meant by an algorithm here".Also what is meant by an algorithm here.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?