>From: Nick Howard >Is anyone else aware of other cases where the behaviour of the simulator >does not match the real thing????? In the case of the 16C71, the simulator does not correctly model the behavior of the page switching bit. For example, if you address register 0x85 on the simulator, you get access to the TRISA a register. On the real chip, you have to first set the RP1 and RP0 flags first to get to the TRISA register. This 'bug' / feature cost me a few days when I was first programming, the program ran fine on the simulator, but did not run on the chip. It turns out that I had forgotten to set the page bits correctly. +---------------------------------------------------------------------------+ | Edward Cheung, Ph.D. | The opinions expressed herein | | NASA Goddard Space Flight Center | do not necessarily reflect | | Code 714.1, Bldg T11B | those of my employers' | | Greenbelt, MD 20771 | | | 301-286-1269(office) 286-1717(fax) | My next book: | | Internet: ebc714@rs710.gsfc.nasa.gov | Statistics, Demos and Other Lies | +--------- I MOVED TO A NEW MACHINE. Please note new e-mail address -------+