I am new to Microcontroller programming and I thought maybe I should try blinking around 24 LEDs as a self project using PIC18F4550. I searched for a simple 1 LED blinking source code on net and what I am unable to understand are the following lines which are at the top of the code:-
#pragma config PLLDIV = 5 , CPUDIV = OSC1_PLL2 , USBDIV = 2 // You can write this way // OR #pragma config FOSC = INTOSCIO_EC #pragma config FCMEN = OFF // OR this way #pragma config BORV = 3 #pragma config WDT = OFF #pragma config CPB = OFF #pragma config CPD = OFF
After this the author has used simple
LAT statements which I am able to understand.
Can someone please explain the above codes and what each of them are doing or can point to some tutorial which explains (briefly) the use of following codes?
Note:- Just out of curiosity, these
#pragma codes were used for 1 LED blinking, do I need to change them when using more than 1 LED?