PDA

View Full Version : PIC16F877A with 10MHZ quartz



oslinux
- 12th March 2007, 18:46
Hello, i'm new to this forum,

I need to know what capacitor i should use with a 10mhz quarz and PIC16F877A, i'm using serial communication (with a PIC16F84A @ 4mhz) via SERIN-SEROUT i can use even the internal oscillator?

Thank you for any help,

Luca

Pic_User
- 12th March 2007, 19:08
Hi Luca,

Found this:

PIC16F87XA Data Sheet page 148
http://ww1.microchip.com/downloads/en/DeviceDoc/39582b.pdf

TABLE 14-2: CAPACITOR SELECTION FOR CRYSTAL OSCILLATOR
8 MHz = 15 - 33 pF
20 MHz = 15 - 33 pF
Note 1:
Higher capacitance increases the stability of oscillator but also increases the start-up time.

Someone else can help with the "SERIN-SEROUT with the internal oscillator" part.

-Adam-

oslinux
- 12th March 2007, 20:11
So, do you think a 22pf would be fine?

thank you,

Luca

Pic_User
- 12th March 2007, 22:33
Welcome to the forum Luca.

Yes, 22pf sounds right.

-Adam-

mackrackit
- 13th March 2007, 07:04
I have used Serout2/Serin2 with the 16F676 at 9600 baud. 2400 baud is recommend though. The 16F676 runs at 4mhz internal.

Dave

mister_e
- 13th March 2007, 16:00
Careful when you're using the internal OSC... recent post confirm that it's not always the best solution.. as already warn many times before.