On Tue, 14 Apr 1998 22:53:05 PDT Robert Berlin writes: >Hello, I wonder if any of you know why a program that works in >simulator >(MPLAB) but it won't work on the PIC16F84? >Any ideas... Is the oscillator on the PIC16F84 working? Is the MCLR pin pulled-up to Vdd? With some power supplies, a PIC doesn't always start properly. You can test all of this by programming a chip with a very simple program like the LED blinker and see if it works. > >Another question: Does anyone know a way to decrease the value in Data >EEprom, in a short routine? Just read the value, using the read routine in the book, decrement EEDATA, and use the write routine to write the new value back. Be sure that the WR bit is clear (indicating the 10 ms write has completed and the EEPROM is not busy) before changing EEADR or EEDATA again. _____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]