Sorry if I'm in the wrong thread but this is the only one that came up when I searched for PWPS.
This question is for Darrel, but if anyone else can answer I would appreciate the response just as much.
The PWPS servo code is almost ideal for what I need........I only want 0.5us resolution instead of 1us. Am I able to get 0.5us resolution by simply defining my code to use an 8 MHz OSC and then changing the 4 value in the code snippet below to 8?
GetOsc: ' Retreive defined OSC value on Reset
asm
ifdef OSC
MOVE?CB OSC, _PicOSC
else
MOVE?CB 4, _PicOSC
endif
endasm
Sorry if my terminology isn't 100% correct....I'm a bit of a NOOB to picbasic.
Bookmarks