Thanks! Which bit? The rest of my code (such as a command interpreter talking to the serial port) is running. I'm talking to an external RAM. I can write to it and read it back when in debug. When running without debug, I cannot read it back. I think I can write to it, but I'd better check that... THANKS! Harold > Check your fuse bit settings. It has bitten me more > than once in this area. > > John > > > --- Harold Hallikainen wrote: > >> Help! I've got a 24hj256gp610 project where I read >> portb. It works >> properly when debugging with the ICD-2. When I >> program the chip, though, >> it always reads back as zero. I set a strobe low, >> wait for a handshake >> line to go low, then read the port. As the datasheet >> indicates, I'm doing >> a nop after the write and before the read (and >> writing to the LAT instead >> of the port). >> >> So... what's the difference between debug and run? >> >> THANKS! >> >> Harold >> >> >> >> -- >> FCC Rules Updated Daily at >> http://www.hallikainen.com - Advertising >> opportunities available! >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> > > > > > ____________________________________________________________________________________ > Bored stiff? Loosen up... > Download and play hundreds of games for free on Yahoo! Games. > http://games.yahoo.com/games/front > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist