__delay_ms() problem

Jswale

Joined Jun 30, 2015
121
You don't appear to have set the OSCCON register to 4MHz, it only defaults to 500Hz (I think), this will make your delays wrong.
 
Top