Appendix: Additional Insights
In this appendix, I will analyze some of the more common aspects of C programming and how they apply to PIC microcontrollers. I will also cover some useful concepts that will help in the understanding how microcontrollers work, such as operators, number systems, and keywords.
Data Types and Memory
To help understand the different
data types used in C, it would be helpful to appreciate their relationship to the micro’s memory. PIC micros have three areas of memory:
Program Memory Area
Data RAM
Data EEPROM
The Program Memory Area
This is where all the instructions of your programs are stored. With the PIC18f4525, the program memory area has 48kbytes of memory, even though it uses a 21-bit address bus which can address up to ...