Jul 9, 2011 #1 U 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.
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.
Jul 9, 2011 #2 bigdogguru Administrator Joined Mar 12, 2010 Messages 9,821 Helped 2,350 Reputation 4,694 Reaction score 2,272 Trophy points 1,413 Location Southwest, USA Activity points 62,383 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.
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.