32
of 76
TEP , The Engineering Projects , Image

syedzainnasir

TEP , The Engineering Projects , Rating 7.5 7.5 / 10
TEP , The Engineering Projects , Icon Level: Moderator
TEP , The Engineering Projects , Icon Joined: 20 Mar 2022
TEP , The Engineering Projects , Icon Last Active: 2:21 PM
TEP , The Engineering Projects , Icon Location: TEP , The Engineering Projects , Flag
TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon
PIC10F202 to PIC10F204
TEP , The Engineering Projects , Calender Question: 06-Mar-2017
TEP , The Engineering Projects , Category In: PIC Microcontroller Projects
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
TEP , The Engineering Projects , Icon Answer: 0 TEP , The Engineering Projects , Icon Views: 150 TEP , The Engineering Projects , Icon Followers: 85
Small Bio
TEP , The Engineering Projects , Tags
PLC
Robot
STM32
Arduino
AI
ESP32
Ladder Logic
PLC Projects
Programming
Communicates STM32
PLC Projects
Communicates PLC
Font Style
Alignment
Indenting and Lists
Insert Media
Insert Items

Want to leave an answer!

Word Count :0 Draft Saved at 12:42 am.