> config __FOSC,IOL1WAY_ON ;one-time IOLOCK disabled >=20 > looks a little suspicious. The symbol name implies on, but the > comment says off My apology. The current code is _OFF, although that hasn't made a difference. That aside, after a POR you can remap once Alan and Martin asked about the configs. I can't see what else is needed that affects the pins > I don't know what DELAYPT5 does, but it's not obvious anything is > waiting for the SPI hardware to be ready before writing to SPI1BUF DELAYPT5 is a 0.5s delay I've included a test in the loop, to no effect do_spi: btsc SPI1STAT,#SPITBF bra do_spi ;buffer not empty The SPI loop is executing at 1Hz, as indicated by the flashing '*', just as it was Oddly, I've skipped over the remapping and left the default reset assignments and expected to see a 1Hz wave on RP10 with this loop do_pin: bset LATB,#RB10 call delaypt5 bclr LATB,#RB10 call delaypt5 bra do_pin In the disassembly is BCLR.B 0x02CD,#2 and BSET.B 0x02CD,#2, 0x02CD being the upper byte of LATB, so straight after power-up that should mean activity on RP10. There's something missing in the set-up which is preventing instructions being seen at the pin LATA 0,1,4 and LATB <3:0> seem to be fine though, they're what's driving the LCD, no problem Joe * * ********** Quality PIC programmers http://www.embedinc.com/products/index.htm --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .