----- Original Message ----- From: Jason L DeVore To: Sent: Tuesday, March 27, 2001 2:52 PM Subject: [pic]:simple oscillator question > 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. With an 8MHz crystal your frequency should be much closer to 8MHz than this! Are you sure it isn't a serial cut crystal? > 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? > > All i get is garbage out of the UART. Hm... if you clock is really running at 7.81 then your baud rate will be: 7,810,000 / (16 * (12+1)) which comes to 37548 baud. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads