James & Ili wrote: > > Does this sound right? I have put together a little program that > counts from 0 to 9999, it sends out 4 bytes via 9600 RS232 each time > it increments. Most of the routines have been used in other programs > and worked flawlessly in them. I have moved the sub-routines around > thinking that maybe it didn't like the order but nothing. It does the > first digit. I.E. it outputs a 0 then stops with the pin high. > Running it in the MPLAB simulator it works great. Any suggestions ? > Thanks in advance ! > James Holbrook When this happens to me, it is usually an initialisation problem. On the simulator, the RAM, etc.., is initialised repeatably from the start of simulation. On a real chip, the RAM will usually power up at 0FFh on the OTP chips, but not always, and on the -JW windowed dev. chips, it tends to come up a 000h, unless you are in total darkness! This is due to the effect of light coming through the EPROM window, (even with paper label) and dis- -charging the RAM cells during power-up. A little light does not SEEM to cause misoperation, however. jim ford