Can you point to the section describing the internal oscillator? I could not find it. Moreover, if there is an internal RC oscillator, you would need to include some statements to assign the frequency. You did not include those.
Why not follow the datasheet? It is the best option you have. Have you confirmed that you have a working oscillator? If not, why not?
Edit: There is simply no mention of an internal oscillator of any type. Please review this:
For those of you who are pondering... Ritesh assumed that the chip has an internal RC block, it however, does not so I think he'll apply an extenal crystal..
hi ritesh,
Download this free PIC delay calculator, it should give you guidance on how write an assembler delay loop. http://www.biltronix.com/picloops.html
Copy and Paste the delay code into your program.
E
Ritesh if you have given up on C and now going with ASM then take a look at nigels page he has loads of tutorials for ASM, but can i ask why the move from C??
Ritesh if you have given up on C and now going with ASM then take a look at nigels page he has loads of tutorials for ASM, but can i ask why the move from C??