Well, you got this ability to make it seem so soft and easy...!
Now I got to digest that C thing...
Thanks,
Ioannis
Well, you got this ability to make it seem so soft and easy...!
Now I got to digest that C thing...
Thanks,
Ioannis
The ANSI C programming language has lots of cool tricks that let you do lots of ASM code function with simple commands. When I learned C, I used very basic transitions from BASIC to get the job done. A couple years later, I don't understand many of the C shortcuts, but am functional with "spelling things out". Fortunately, I worked the SFRs even when there were PBP short cuts, so transitioning to C was possible for me. Again, start with the Microchip University tutorials. The C programming 'bible' is, "C Programming Language, 2nd Edition" by Brian W. Kernighan and Dennis M. Ritchie. All the stuff you need to know to get started is in there.
Thanks Mike.
Yeah, I have that book. Indeed it is a bible for C and read parts of it to understand snippets of C code. But never with a clear purpose to change side. Have to overcome the fears one day!
Ioannis
I found the best way to learn is to do. Microchip offers Development boards at widely differing price points. The cheapest way to get started is with one of their Curiosity Nano Development Boards, sporting the PIC of your choice. They include the Programmer/Debugger, so you don't need to buy a PICkit4_5 to play.
Next download the latest MPLABX (currently v6.15), XC8 Compiler (current version v2.45), and Microchip Code Configurator (MCC). Finally, go to Microchip University to learn some basic functionality.
The most important thing is to DO! As you go through MU training, have a Nano by your side connected to your computer. Actually do the exercises.
If you look through the MU offerings, there are courses on basic C language structure, commands, etc. There are examples using the different peripherals so you can see how to make UART or TIMER0 work in C. It will take time, but the resources abound to tackle even 32-bit processors. Again, learn by doing.
Sure doing is the basis for learning.
I see that XC series compilers are offered for download. Are they free of charge?
Ioannis
its all free
Warning I'm not a teacher
Bookmarks