Best way of confirming system clock of controller

clock-speedpic

I would like to know the tricks or hints which could be used to find the system clock of 8 bit micro controllers.
What are the cool ways in which we could find the system clock and can be verified with documents.

I have heard of toggling a pin continuously but i don't know the specifics.It would be helpful if you could share your way of doing things to find system clock.

It would be helpful if you could list the common tricks to verify the clock other than reading data sheet.
If i could determine that by toggling an i/o pin continuously.What data is obtained from the observed frequency?.It would vary depending up on asm or c compiler i trust.

Please do enlighten me

Im using pic18f26j50

Regards

Best Answer

You don't specify a family as such, but you have tagged it "PIC".

The PIC microcontrollers all have the ability, when using either an external clock module or the internal oscillator, to feed the clock signal to a specific pin (OSC2), both for confirming the clock, and for driving external devices.