Hi Dymentional, as has already been stated this might not be the right place but being familiar with xc8; I think you need to place the following
#define _XTAL_FREQ 8000000 // OSC FREQUENCY IN Hz
at the top of the code. Then
__delay_ms(1000) // DELAY FOR 1 SECOND
Bookmarks