On 3/7/07, michael brown wrote: > Part of the problem is right here. You need to use INTOSC to be able to > free up the OSC1 and OSC2 pins. It is only two speeds (37kHx and 4MHz), > you set the speed using the OSCF bit in the PCON sfr. So instead of > _ER_OSC_CLKOUT, you want something like "_INTRC_OSC_NOCLKOUT". If the > assembler doesn't like that, try "_INTOSC_OSC_NOCLKOUT". Microchip has > a problem with consitency on this stuff. Be careful with that LVP_ON > stuff and trying to use /MCLR as an input pin, I'd change that too if I > were you. That line is from the template-file from Microchip's MPLAB-tutorial, I have no idea what the values are so I left them untouched. It seems it's possible to change them from the menu in case I need it (which I obviously seem to do). But again, this is my first glance with PICs so I don't yet know all this kind of black magic (the datasheet is pretty heavyweight and I haven't got through it all). It does, however - according to what you write, look like I've run into a problem since I need a 32.768kHz-crystal. I guess I'll have to trim down the inputs to three and multiplex them together using diodes. Ugh. -- - Rikard. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist