Need little help. Possible this small timer program run in PIC10F204 ? (Currently, I have only 10F204)
Thanks,
(PIC10F202 Flash memory 512, - PIC10F204 256)
------------------------------------------------------------------
Code:
list p=10F202
#include <P10F202.INC>
__config _CP_ON & _MCLRE_OFF & _WDT_OFF
byt1 equ .16 ;
byt2 equ .17 ;
byt3 equ .18 ;
ORG 0x0000 ; reset vektor
init
MOVWF OSCCAL
MOVLW 0xE
TRIS .6
MOVLW b'11111000'
OPTION
CLRF GPIO
CLRF TMR0
mx7
MOVF TMR0, W
BTFSS STATUS,Z
GOTO mxc
BCF GPIO, 0
GOTO mx7
mxc
DECF TMR0, F
BSF GPIO, 0
CALL mx10
GOTO mx7
mx10
MOVLW .7
MOVWF byt1
MOVLW 0x2f
MOVWF byt2
MOVLW .3
MOVWF byt3
mx16
DECFSZ byt1, F
GOTO mx19
DECFSZ byt2, F
mx19
GOTO mx1b
DECFSZ byt3, F
mx1b
GOTO mx16
NOP
NOP
NOP
RETLW 0
END