How can you tell it's running at 4Mhz?
How can you tell it's running at 4Mhz?
from this post
With "DEFINE OSC 16", PAUSE 200 gives a delay of 50 msec
The resolution here is therefore 250µsec per "unit".
WITHOUT "DEFINE OSC 16", PAUSE 200 gives a delay of 200 msec
The resolution here is 1msec per "unit".
Warning I'm not a teacher
Hi Richard,
(The resolution at 16Mhz is theoretically 2.5µsec.)
So if PULSOUT 100 gives me a pulse of 0.24 msec, the resolution here is 2.4µsec, which would indicate that the Peak is running at 16Mhz.
No ?
sounds right.So if PULSOUT 100 gives me a pulse of 0.24 msec, the resolution here is 2.4µsec, which would indicate that the Peak is running at 16Mhz.
however
if osc = 16mhz and define OSC 16 is set then pause 200 will pause 200mS
if not then something is wrong , PULSOUT would not be my way to test osc speed.
also code snippets are not meaningful in this situation at least until the chip is confirmed configured as intended
do post entire code including config word in code tags to make it easy for anyone one interested in assisting
Warning I'm not a teacher
Bookmarks