> I wrote a simple program to set Port Pin 0 in GPIO high on a PIC12C672 > (to light up an LED). When I run it through the MPLAM simulator and > step through, I notice that the GPIO register will not change (as seen > through the Special Function Register Window) no matter how I set those > bits ("BSF GPIO, 0" or "MOVWF GPIO"). Is the TRIS bit 0 set to 0? > I also have the same problem when I try to alter the bits in the > OPTION_REG on a PIC16F84. I noticed that using the old OPTION command > will alter the bits, but MOVWF OPTION_REG (with the desired bits in the > W register) will not. Check your bank settings. These are the RP0 and RP1 bits in STATUS. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu