I have wrote a programm for 16f84a and 16f628a with crystal 4MHZ.
If i change the crystal to 20Mhz and define 4 to define 20 , will that works;
I have wrote a programm for 16f84a and 16f628a with crystal 4MHZ.
If i change the crystal to 20Mhz and define 4 to define 20 , will that works;
Hi, Savnik
Depends on what your program is supposed to do and how it is written ... my Crystal ball is out for repairs !!!
Timing instructions ( PULSIN, RCTIME,COUNT,FREQUOUT, etc ...) will especially be modified ... as stated in the PbP Manual ... if you've spread some assembler, or use interrupts, may be some registers preloadings ( TMRs i.e.) will have to be modified ...
No more details available without knowing what you've written ...
Alain
Last edited by Acetronics2; - 13th August 2007 at 12:12.
************************************************** ***********************
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 " !!!
*****************************************
************************************************** ***********************
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 " !!!
*****************************************
For 20Mhz, you'll also need to change the oscillator config to HS.
<br>
DT
please go thro the datasheet Ds35007B in respect of PIC16F84A-4/20-- figures 9-1 and 9-2 and relevent comments. it is however possible as per the datasheet but voltage restrictions apply , i beleive.
for PIC16F628A, it is possible to have any crystal.
In both cases appropriate config commet to be moddedas you know already
Regards,
Sarma
Bookmarks