I would welcome some help to get me started programming PIC devices.
Firstly I am a beginner and would like to be able to program various PIC devices such as PIC16F676 and PIC18F4550 for various electronic projects that I wish to build. Being in my mid 70’s learning to program a PIC in C is not going to be easy but that is the challenge! I will be using MPLAB X with XC8 C Compiler.
Having read as much as possible, I am now itching to make a start. But I seem to have hit a fundamental problem that I would appreciate some help with. Having learned the basics of ANSI ‘C’ what I have not been able to find on the Microchip site is the necessary specific commands to be able to apply ‘C’ in the PIC world. But with so much information, their site is overwhelming,
I have found out about the necessary #include and #pragma statements. And I have found the Library, giving some useful info such as __delay_ms(); CLTWDT(); SLEEP(); and the host of trig commands etc. But I have not seen a list of commands to address Ports; SFRs, etc. In the snippets of code that I have seen I realise that these PIC based commands must exist somewhere.
So assume that there must be a wealth of useful information that I have not been able to locate. Also, I think I am correct, that these commands vary with PIC families, so that the may be a different lists for PIC16Fxxx and PIC18Fxxx.
I would appreciate any help that will point me in the right direction to the source of this information, to enable me to make a start writing my first program.
Many thanks, Ken