True...been bit by that before. But I have an input to PORTB.0, and typically nothing else is double mapped to that, as its the primary interupt pin. Nothing I can see at this point indicates that its configuration, but after sleeping...for a few hours, something might show up as the culprit. --- On Sat, 5/2/09, Tony Vandiver wrote: > From: Tony Vandiver > Subject: Re: [PIC] inputs on 18F4420 > To: "Microcontroller discussion list - Public." > Date: Saturday, May 2, 2009, 9:28 PM > 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 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist