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


JLCPCB – Prototype 10 PCBs for $2 (For Any Color)

China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w

Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir