crystal oscillator required for serial communication for PIC16F877A

Status
Not open for further replies.

Umair Ahmed

Newbie level 1
Joined
Jul 9, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
Hi, i am working with PIC16F877A i need to do the serial communication. kindly guide me what value of external crystal i should use for serial communication. And which is the register used for serial communication in PIC16F877A.
 

The PIC16F877A datasheet contains all the information you need:

PIC16F87XA Data Sheet

Reference: pg 114, TABLE 10-3: BAUD RATES FOR ASYNCHRONOUS MODE (BRGH = 0) and TABLE 10-4: BAUD RATES FOR ASYNCHRONOUS MODE (BRGH = 1)

FOSC is the crystal frequency, the tables indicated %ERROR, therefore choose your FOSC at a chosen BAUD rate to minimize %ERROR.

The info should get you started in the right direction.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…