I've written a small assembly-code in MPLAB and simulate it. I open a watch-window (View->Watch) and add a couple of symbols and SFRs. To change the values, I simply double-click it and type in a new one. Works fine, except for PORTA. No matter which value I try to set in PORTA, it returns to the initial zero. Does this have something to do with that I've set MCLRE in the config word to zero, or what's the reason? Snippets of my initialization code: __CONFIG _CP_OFF & _WDT_ON & _BODEN_ON & _PWRTE_ON & _ER_OSC_CLKOUT & _MCLRE_OFF & _LVP_ON [...] start bsf STATUS, RP0 ; select bank1 for configuration of TRISA/TRISB bcf STATUS, RP1 movlw b'00000111' ; RA[0:2] inputs (switches) movwf TRISA ; RA[3:7] outputs (number for active LED) movlw b'00000000' ; RB[0:7] outputs (LED-segments) movwf TRISB bcf STATUS, RP0 ; switch back to bank0 At first I thought it was because bits 0:2 are set to input ports and that the simulator will block any values coming to it, so I just tried to change the upper bits in the register. But alas, same problem. -- - Rikard. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist