Download and double-check your 16F684 datasheet (DS41202F, Section 8.2, Figure 8-5, Page 58, block in lower right corner).Code:define OSC 20 'Set PBP Osc clock to 20Mhz <----- use DEFINE not define CMCON0 = 0 'Turn off comparators, force set to 0 (off)
Common problem, trips me up about every other month on one project or another...
Bookmarks