After much thought and deliberation i have decided to concentrate on learning .C programming using k&r's the C programming language 2nd edition book and avrstudio/winavr as the compiler.
I'am not used to requesting assistance and have mostly relied on a trial and error approach when homebrewing projects ,but through reading numerous tutorials and information available it would seem this is not the best approach for learning .C and hence this initial post which will most definately be one of many.
And so here's my questions
Is the software/enviroment and reading i have selected fitting for a first time user or would you advise another alternative.
Below is the opening beginners code extracted from k&r's book which on the first attempt would'nt compile without error.
Heres the modification's i made and it now compiles error free.
My questions are
1) Is stdio.h a remmnant of older .C code/compiler's and hence the failure.
2) Or is it because it;s not specific to the AVR mcu and so then unuseable for AVR purposes ,will i need to replace this line in future examples.
3)When debugging winavr reports that the mcu selected ie at90s8515 is incorrect and should be atmeag128 ,i duly change mcu selection and debug run's ok but how did it know what mcu to use.
4)Why can i not replicate the original build fault by changing the code back ,whats changed.
5)The learning question is "where does the output go" am i correct in thinking it cycles within the mcu and would need some form of port statement adding in order to output a visual aid.
6)To add an lcd so i may view the output visually is this a case of linking the lcd.h file suitable for my display and writing in code to perform the output.
Thanks in advance
(be gentle :roll: )
ps It states in the bible "IF YOUR IN DOUBT ASK THE EXPERTS" i am in the right place then :wink: .
3A) Because Atmega128 is mcu selected when using winavr default setup.