Hi, so as of the past month I have been looking all around for a straight to the point step-by-step guide to learning how to program mcu's in C or ASM. Sure, there are a lot of great tutorials on how to get your MCU up and running and how to set up the circuit, but I have yet to find a good tutorial on how to actually access ports/registers on the chip, play around with the internal clock, or even use interrupts. People just seem to hand out their simple code of a light blinker and hope that people can understand what is going on.
I myself have programmed in C for a while and am comfortable with writing programs for it, but have no idea about utilizing it for the mcu realm. I don't think that it is under ANSI-C and their are so many different libraries, it seems overwhelming.
I bought myself an Atmel ATmega168 chip and have the AVRISP2 programmer and have been messing around with it, but no really thought process of what is actually going on, just making some lights blink and using code provided by some tutorials...
I guess my real questions are:
is there a standard methodology of how this stuff is taught, or does this type of programming have a more "open-sourced" flavor to it, where there is no standard approach?
Besides the physical port/register names of the mcu's, is the programming just all the same, or do they require different types of structure within C programming?
And finally, can anyone recommend a well put-together book that goes over this stuff?
Sorry for the essay, but it's been bugging me as of late.
Thanks for those who read this,
JP
I myself have programmed in C for a while and am comfortable with writing programs for it, but have no idea about utilizing it for the mcu realm. I don't think that it is under ANSI-C and their are so many different libraries, it seems overwhelming.
I bought myself an Atmel ATmega168 chip and have the AVRISP2 programmer and have been messing around with it, but no really thought process of what is actually going on, just making some lights blink and using code provided by some tutorials...
I guess my real questions are:
is there a standard methodology of how this stuff is taught, or does this type of programming have a more "open-sourced" flavor to it, where there is no standard approach?
Besides the physical port/register names of the mcu's, is the programming just all the same, or do they require different types of structure within C programming?
And finally, can anyone recommend a well put-together book that goes over this stuff?
Sorry for the essay, but it's been bugging me as of late.
Thanks for those who read this,
JP