PDA

View Full Version : Define Osc Not Working



BobEdge
- 21st February 2005, 09:30
Hi all,

Has anyone else had trouble with clock speed?

No matter what i define the oscilator as PBP seems to think its 4MHz. Yes HS is set in mplab, when blowing the chip. I need a 20MHz osc to get the speed & resolution I need, but then cant use serout. 12000 (5 * 2400) baud does not exist. I have version 2.33 of PBP.
Regards

Bob...

BobEdge
- 21st February 2005, 12:09
Have found the cause of the problem, or rather have found a cure, still not sure what the problem is.

In micro code studio uncheck "Microchip MPASM" in the assembler options window.

Not sure whats assembling the code now but it works...

Darrel Taylor
- 21st February 2005, 20:17
Hi Bob,

When you uncheck the MPASM box, it automatically reverts to PM as the assembler. This is the assembler that comes with PBP

MPASM is case sensitive, PM is not. So when using MPASM "Osc" needs to be all caps.

Define OSC 20

HTH,
   Darrel

BobEdge
- 23rd February 2005, 11:23
Oh i see. Thats handy to know, since my old copy of PM assembler may not work with more modern chips. Thank you Darrel....

Regards

Bob...