Pls How can I make 16F877A use 15MHz Xtal
Hi I am using a PIC 16F877A in my project. The Project works fine with a 4MHz crystal but when I replace the 4MHz crystal and its associated capacitors with a 15 MHz crystal and associated capacitors, The pic does not work
Does anyone know what needs to be done in PIC basic to make the 16F877A work?
Thanks
RTFM ... ha,ha,ha ... I REALLY LOVE !!!
Quote:
Originally Posted by
skimask
XT vs. HS. Check the datasheets
You have to reconfigure your PIC to run the 15mhz oscillator.
And check your PBP manual for the correct use of:
DEFINE OSC 15
geeeee !!! What a wonderful forum is has become these days ...
after all these years, I didn't know there was a DEFINE OSC 15 ...
12 or 16 only available ... too bad !!! ( Manual p. 170 ... )
but ... PBPIC libs can be modified, of course !!! ... or time related functions re-calculated ... isn't it ???
Alain
PS: Sorry Ozzie, but it will be VERY difficult to run off-the-list frequencies with straight PBP ... try 16 Mhz !!! it will be so much simpler ...
May be some ones here could explain you how to modify the PbPlib files ... to run a True 15 Mhz Xtal !!!
I'd really love to read them too ... humour.
Yes PBP will not compile with DEFINE OSC 15
T.Jackson,
Yes not to mislead anyone; I typed 15 loosely here. It could have been 8, 16 20 etc; I simply couldnt get any crystal (8, 20, 16 etct) to work. OF course PBP will not compile with DEFINE OSC 15. But it did compile with the listed frequecies 16MHz, 24MHz etc. However at the time I entered this thread I did not know that PBP wil not work with 15
However Thanks to the forum I now know better and I am actually using a 24MHz crystal;-)
Now we are talking old school . . .
Quote:
Originally Posted by
Melanie
Geeze... and you'll be sticking 15pF Condensers around your crystal next...
Tsk, Tsk, Tsk Melanie, Condensers? I hope you learned that one from a history book :), oh . . . that would be 15 uuf condensers ;)