Did you try to include the following:
DEFINE OSC 20 ' 20Mhz Osc
Last edited by Acetronics2; - 7th March 2010 at 14:31.
************************************************** ***********************
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 " !!!
*****************************************
I won't even ask if you are using the recommended 4.7K pull-up resistor.
Charles Linquist
When i'm not include DEFINE OSC 8 ( with xtal 8Mhz ) , test with blink LED is so fast .
but when include ( the same xtal ) , the time between Led-On and Led-Off so long .
Maybe define osc will slow down the speed of PIC ?
I used 18F4680 . DS 1820 had an resistor pull-up .I have tried
1-DS1820 work well with 10 Mhz xtal , config OSC_HS , not define osc 10
2-but with the same xtal , config OSC_HSPLL , DS1820 didn't work . not define osc 10 OR define i got the same result .
who can help me ?
Last edited by hatuan291; - 9th March 2010 at 15:03.
Bookmarks