Any JTAG stuff in the configuration bits? Make sure to look at the pin names in the datasheet so you know if the ones in question might have another function. Tony alan smith wrote: > Things that make you go hmmmmm > > I have solid hardware working with a 16F887, least solid in the > fact the IO works fine. I took the same board, and replaced it > with a 18F4420, as its the only part I could identify that its pretty > much a drop in replacement, in as much as pin definitions, etc. > > So the code ports over, and with eliminating the page boundary calls > and other minor things, its cycling and doing its thing, almost. > > The ports that are outputs work fine, the drive what they are supposed > to drive. But the inputs are not working, so thats what makes > me go hmmmmm...... > > Yes I've checked the TRIS registers, they are setup correctly. I > have probed at the pins and I see the input changing from 0 to 1, > so we are good there. Ive also made sure that PORTB is set for digital > and ADCON1 has all digital. > > Just wierd...doesn't seem to want to see inputs... > > > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist