> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Olin Lathrop > Sent: 21 February 2011 14:12 > To: Microcontroller discussion list - Public. > Subject: Re: [PIC] IC2 SSPADD value ? >=20 > Carl Denk wrote: > > I had looked diligently for a formula prior to posting here, and found > > none. If someone can find one, I would appreciate where it is. My > > reference is "PIC18F2220/2320/4220/4320 Data Sheet", copywrite 2007. >=20 > I just took a look to see what all the fuss is about. I donwloaded the > latest datasheet a few minutes ago, which appears to be the same as what > you > cited (2007, DS39599G). >=20 > While section 17.4.7 "Baud Rate" on page 181 doesn't explicitly show a > formula, it is nonetheless quite clear how the baud rate is generated and > therefore what SSPADD value is needed for a particular instruction clock > and > desired baud rate value. >=20 > Obviously: >=20 > InstructionClock > BaudRate =3D ---------------- > SSPADD + 1 Check out page 166 (SSPCON1 description) and page 168 (section 17.4.2 "Operation" ). Both contain the formula. Not the most obvious places to put it, but a text search for "SSPADD" quickly finds them. Regards Mike =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .