Jason DeVore wrote: >Im using the 16f873 at 8MHz. The problem is I cannot get the UART to >work. It works fine on the pic demo board with an RC resonator at 1.2 >Mhz. I have a seperate board with an 8Mhz crystal (the one specified in >the manual) and 2 33pf capacitors. The actual clock frequency is 7.81 >Mhz. > > The baud rate generator is set for high speed and with a value of 12 >for 9600. The programmer is also set to HS. > > Am i missing anything? > Looking in the datasheet tables for 9600 baud for a "7.1" Mhz xtal: for "low" rate, SPBRG = 11 for "high" rate, SPBRG = 46 Looks like you mixed the modes. Try BRGH=0, plus 12 for 7.8 mhz xtal. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu