Hi! I have a problem with MPSIM in MPLAB version 6.30 with 12f675 device. The following code works as expected in MPLAB 5.70 (simulator v. 7.70), but with the latest version (simulator v. 8.30) TMR0 doesn't start after seting PSA bit in OPTION_REG. Am I doing something wrong (I'm new to MPLAB6) or is it a bug in a simulator? Thanks, Samo code: list p=12f675 ; list directive to define processor #include ; processor specific variable definitions __CONFIG _CP_OFF & _CPD_OFF & _BODEN_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_ON & _INTRC_OSC_NOCLKOUT ;****USEFULL MACROS BANK0 macro bcf STATUS, RP0 ;switch to bank0 00h-7Fh ; bcf STATUS, RP1 endm BANK1 macro bsf STATUS, RP0 ;bank1 80h-FFh ; bcf STATUS, RP1 endm ;********************************************************************** ORG 0x000 ; processor reset vector clrf PCLATH ; ensure page bits are cleared goto main ; go to beginning of program ORG 0x004 ; interrupt vector location bcf INTCON, T0IF retfie ; return from interrupt main BANK1 clrf OPTION_REG bsf OPTION_REG, PSA BANK0 clrf TMR0 bsf INTCON, GIE bsf INTCON, T0IE ; remaining code goes here LOOP nop nop nop nop nop nop goto LOOP END ; directive 'end of program' __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body