OK I have the config sorted.
Up to now I've used external crystals so i had no problem but this time I wanted to use the internal osc on a 16f628. I've commented out the original and added my config line to the inc file for this project.
I still can't see a problem with the "up" count routine. It rolls over at 99 and doesn't increment Counter[1]
Have I done something silly. That wouldn't be unusual. 
I'm also having trouble with the SHIFTOUT line in operation, I seem to need it to loop at least once for the value to load. Not sure if that's the DDS board or a code quirk. After one loop where nothing happens, it will load a each frequency word straightaway.
Code:
dds:
PAUSE 100
SHIFTOUT ddsdata, ddsclock, 0 [$07, $2B,$02,$0C,$00] ; send frequency word
HIGH ddsload ; load dds (turn on freq)
LOW ddsload
PAUSE 100
SHIFTOUT ddsdata, ddsclock, 0 [$A0, $2B,$C2, $0C, $00]
HIGH ddsload
LOW ddsload
goto dds
Bookmarks