For a pic16F84A running on 4Mhz xtal the following code is not produning delay as expected. It is giving much more longer delay than expected. any help? Thanks in advance.
DELAY MOVLW b'11010111'
movwf OPTION_REG
clrf TMR0
AAA MOVF TMR0,w
XORLW .250
btfss STATUS,Z
GOTO AAA
RETURN
DELAY MOVLW b'11010111'
movwf OPTION_REG
clrf TMR0
AAA MOVF TMR0,w
XORLW .250
btfss STATUS,Z
GOTO AAA
RETURN
What about WDT?