Dave Turner wrote : > > But if so, why do you have lines like these in your source : ???? > > > > > rcsta equ 18h > > > txreg equ 19h > > > txsta equ 98h ; my own definitions of some key > USART locations > > > spbrg equ 99h > > > > They are already defined in P16F87.INC. > > Don't you get any warnings about "multiply defined symbols" > > Have you disabled "case sensitivity" in MPALB. Recomended, IMHO... > > I always have case sensetivity on... Why ? Bad idea, if you ask me... > I just discovered whilst reading the datasheet that intrc isn't > actually the internal 8mhz osc, but an internal RC (well, duh, but I > didn't notice)... Some older PICs had a internal low prec RC osc. Some newer PICs have a higher prec internal RC osc. Some PIC call the new internal osc INTRC, some other INTOSC. Confusing ? Yes. In the case of the 16F87, it's called INTRC. > Does anyone know which config option to use for the > internal 8MHz osc? (any __config source code versions are also > welcome) Directly from P16F87.INC : _INTRC_CLKOUT EQU H'3FFD' _INTRC_IO EQU H'3FFC' Also read : "18.3 DC Characteristics: Internal RC Accuracy" in the data sheet ! Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist