PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Apr 30, 2011 2:17 pm |
|
|
Quote: |
I am using 4MHz crystal oscillator.
#include <16F877.H>
#fuses HS, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock = 10000000)
|
The #use delay() must be the same as the oscillator speed.
Most of the internal software delays in CCS functions, and the setup of
registers in hardware modules, depend upon the #use delay() having
a correct frequency. |
|