Re: Oscillator question and measurement
a little MPSIM ( MPLAB ) simulation - supposed to be relatively true - gives à 3.2µs half -cycle to your test ... around 160 khz output frequency !
BTW ... I'm not sure the DEFINE OSC 48 and a 20 Mhz Xtal to be a good combination ...
best result @ 1.8µs half cycle given by
Code:
Portb.1 = ! Portb.1
instead of TOGGLE + PAUSEUS1
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks