i suggest reading the basic of C... variables, branches, for if loop, calling functions etc, the basic thing. once you get familiar and understanding how the mechanism works (esp whats going on when you call external functions)... then you can move on to uC specific functions/library. once you have mastered the earlier, there will be no problem in the later. in any uC brands.