Project: PIC16F84A 0-9999 counter

Status
Not open for further replies.

Sparky49

Joined Jul 16, 2011
833
It wouldn't work for 3 years and suddenly think "geez, I'll stop working".

Mr xshax has probably not done something correct.
 

spinnaker

Joined Oct 29, 2009
7,830
Why is so much "thank you" for something that does not work?

Trolling again, eh?
Those are really old.


But the answer to your question is ******* posting.


Take a look at the number of posts they have. They signed up on the forum to say thank you then went away. Go figure.
 
Last edited by a moderator:

Wendy

Joined Mar 24, 2008
23,797
Why not show us what you have done instead? I suspect this project works, if it is verified it does not then it will be removed.

Pictures of both sides of the board would be good, and how you programmed the PIC. Have you experience in making PIC projects before, or is this the first one?
 

xshax

Joined Oct 24, 2012
11
i made this circuit accurately,then write the hex into pic16f84a. when i give the supply nothing will happen.i measure voltages of 1,2,3,4 those are positive.but the question is how common cathode displays are work. is there anyone here work this project.....!
 

takao21203

Joined Apr 28, 2012
3,702
It wouldn't work for 3 years and suddenly think "geez, I'll stop working".

Mr xshax has probably not done something correct.
I would not be too sure about past behaviour of some unknown circuit.
Maybe the battery had run out, and nobody replaced it. So it stopped working.
 

Wendy

Joined Mar 24, 2008
23,797
i made this circuit accurately,then write the hex into pic16f84a. when i give the supply nothing will happen.i measure voltages of 1,2,3,4 those are positive.but the question is how common cathode displays are work. is there anyone here work this project.....!
OK, then where are the pictures? It is possible someone can spot something you missed.

Looking at the schematic I do not see the power supply pins on the PIC. This is not good.
 

spinnaker

Joined Oct 29, 2009
7,830
Guys

This is a really old thread. Xahax hijacked the thread. Bertus created another thread here

http://forum.allaboutcircuits.com/showthread.php?t=76476

for Xahax yet the Xahax can't seem to understand to post in that thread only. Xahax is posting in both threads. In the other thread Xahax is expecting someone to create the OPs project.

Since this thread is so old, can it just be locked?

How can someone not understand the basic concepts of a forum yet want to be able to create a relatively complicated project like a pic operated counter?
 

Wendy

Joined Mar 24, 2008
23,797
I will not close this post because there will be other questions from other folks, but any further posts from xshax on this thread will be moved to his thread. It is assumed this is a working entry, since many other people have commented on how much they liked it.

For xshax, a thread belongs to the original poster, who in this case would you.

http://forum.allaboutcircuits.com/sh...ad.php?t=76476

Lets keep any further comments over there please.
 

Wendy

Joined Mar 24, 2008
23,797
profahmet has not been on for a year, and the thread is well over 4 years old. Please start a new thread in the projects forum, I doubt you will get any help here.
 

absf

Joined Dec 29, 2010
1,968
Here's the source code:

Rich (BB code):
;www.profahmet.com.tr.tc ww.profahmet.tr.cx
	LIST P=16F84A		
              #include "P16F84A.INC"
              __CONFIG _WDT_OFF &_XT_OSC &_PWRTE_ON &_CP_OFF
;
LSB	EQU	H'0021'
MSB	EQU	H'0022'
SAYI1	EQU	H'0023'
SAYI2	EQU	H'0024'
SAYI3	EQU	H'0025'
SAYI4	EQU	H'0026'
SAYI5	EQU	H'0027'
DEGER	EQU	H'0028'
BIR	EQU	H'0029'
ON	EQU	H'002A'
YUZ	EQU	H'002B'
BIN	EQU	H'002C'
RAKAM	EQU	H'002D'
RAKAM1	EQU	H'002E'
TEMP	EQU	H'002F'
;-------------
BASLA
	CLRF	 MSB
	CLRF	 LSB
	BSF	 STATUS,5
	MOVLW 	 B'11110000'
	MOVWF    TRISA
	MOVLW 	 B'10000000'	
	MOVWF	 TRISB
	BCF	 STATUS,5
	CLRF	PORTB
	CLRF	PORTA
	CLRF	BIR
	CLRF	ON
	CLRF	YUZ
	CLRF	BIN
	CLRF	SAYI1
	CLRF	SAYI2
	CLRF	SAYI3
	CLRF	SAYI4   
	GOTO	ANA
;-----------
ART
	INCF	BIR,F
	MOVLW	.10
	SUBWF	BIR,W
	BTFSS	STATUS,Z
	GOTO	ASON
	CLRF	BIR
	INCF	ON,F
	MOVLW	.10
	SUBWF	ON,W
	BTFSS	STATUS,Z
	GOTO	ASON
	CLRF	ON
	INCF	YUZ,F
	MOVLW	.10
	SUBWF	YUZ,W
	BTFSS	STATUS,Z
	GOTO	ASON
	CLRF	YUZ
	INCF	BIN,F
	MOVLW	.10
	SUBWF	BIN,W
	BTFSS	STATUS,Z
	GOTO	ASON
	CLRF	BIN
ASON
	CALL	EKRAN
	BTFSS	PORTB,7
	GOTO	ASON
	GOTO	ANA
;-----------
AZAL
	MOVLW	.1
	SUBWF	BIR,F
	BTFSC	STATUS,C
	GOTO	ESON
	CLRF	BIR
	MOVLW	.1
	SUBWF	ON,F
	BTFSC	STATUS,C
	GOTO	BIR9
	CLRF	ON
	MOVLW	.1
	SUBWF	YUZ,F
	BTFSC	STATUS,C
	GOTO	ON9
	CLRF	YUZ
	MOVLW	.1
	SUBWF	BIN,F
	BTFSC	STATUS,C
	GOTO	YUZ9
	CLRF	BIN
	GOTO	ESON
;----------
YUZ9
	MOVLW	.9
	MOVWF	YUZ
ON9
	MOVLW	.9
	MOVWF	ON
BIR9
	MOVLW	.9
	MOVWF	BIR
ESON
	CALL	EKRAN
	BTFSS	PORTA,4
	GOTO	ESON
	GOTO	ANA
;-----------
ANA
	CALL	EKRAN
	BTFSS	PORTA,4
	GOTO	AZAL
	BTFSS	PORTB,7
	GOTO	ART
	GOTO	ANA
;----------
EKRAN
	MOVLW	.5
	MOVWF	RAKAM
	CLRF	PORTB
	MOVLW	.255
	MOVWF	PORTA
GOSTER
	BCF	PORTA,0
	BSF	PORTA,1
	BSF	PORTA,2
	BSF	PORTA,3
	MOVF    BIR,W
        CALL	TABLO
	MOVWF   PORTB
	CALL	GECIKME
	CALL	GECIKME
	CLRF	PORTB
	BSF	PORTA,0
	BCF	PORTA,1
	BSF	PORTA,2
	BSF	PORTA,3
	MOVF    ON,W
        CALL	TABLO
	MOVWF   PORTB
	CALL	GECIKME
	CLRF	PORTB
	BSF	PORTA,0
	BSF	PORTA,1
	BCF	PORTA,2
	BSF	PORTA,3
	MOVF    YUZ,W
        CALL	TABLO
	MOVWF   PORTB
	CALL	GECIKME
	CLRF	PORTB
	BSF	PORTA,0
	BSF	PORTA,1
	BSF	PORTA,2
	BCF	PORTA,3
	MOVF    BIN,W
        CALL	TABLO
	MOVWF   PORTB
	CALL	GECIKME
	DECFSZ	RAKAM,F
	GOTO	GOSTER
	RETURN
GECIKME
	MOVLW	.5
	MOVWF	MSB
D11	
	MOVLW	.55
	MOVWF	LSB
D22
	DECFSZ	LSB,F
	GOTO	D22
	DECFSZ	MSB,F
	GOTO	D11
	RETURN
TABLO
	ADDWF	PCL,F
	RETLW	h'3F'
	RETLW	h'06'
	RETLW	h'5B'
	RETLW	h'4F'
	RETLW	h'66'
	RETLW	h'6D'
	RETLW	h'7D'
	RETLW	h'07'
	RETLW	h'7F'
	RETLW	h'6F'
	RETLW	h'77'
	RETLW	h'7C'
	RETLW	h'39'
	RETLW	h'5E'
	RETLW	h'79'
	RETLW	h'71'
	RETLW	h'80'

;-------------------------------------------------------------------

	END
Power pins on the ISIS simulator is normally not shown. Has to look up on the datasheet. I did the simulation again and it does work...

Allen
 

Attachments

marjean

Joined Jan 8, 2013
2
sorry for inconvenience. this is my first time to do this. does it really need a ISIS simulation in order to work this counter? i don't have any idea. i'm already done but it doesn't work.. whats the purpose of ISIS simulation??? please give me some idea on what else i can do just to work this counter...please thank you
 
Last edited:
Status
Not open for further replies.
Top