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;
Printable View
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
For 20Mhz, you'll also need to change the oscillator config to HS.
<br>
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