Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

help:coding for car parking system using PIC16F84A and 7 segment LED counter

Status
Not open for further replies.

eyan23

New Member
hello,this is my coding for my fyp. i got the problems from this coding. i dun know whats the problems and how to fixed it. can anyone help me? all the advise i will be really2 appreciate it. thanks.
 

Attachments

  • coding.txt
    1.9 KB · Views: 226
Last edited:
hello,this is my coding for my fyp. i got the problems from this coding. i dun know whats the problems and how to fixed it. can anyone help me? all the advise i will be really2 appreciate it. thanks.

hi,
Most of that code is not for a 16F84A, where did you get it from.???
 
really?? i dun know..i got it from internet..can you tell me what's wrong with my coding?
where is the wrong code?
 
really?? i dun know..i got it from internet..can you tell me what's wrong with my coding?
where is the wrong code?

hi,
It looks as though its written for the 8951 series MCU, not a 16F84A PIC.

Can you post a link to the site where you got if from.??

extract from your code.
Code:
DISPLAY        ORG 0000H
        MOV PSW,#00H
        MOV A,#00H
SETB C
        MOV R3,#70H
        MOV R4,#70H
X1:         MOV P2,#01H ; P2 DISPLAY SELECT
        MOV P0,#00H ; P0 SEGMENTS
ACALL DEL
        MOV P0,#44H
ACALL DEL
        MOV P2,#02H
        MOV P0,#00H
ACALL DEL
        MOV P0,#3DH
ACALL DEL
        MOV P2,#04H
        MOV P0,#00H
ACALL DEL
        MOV P0,#7CH
ACALL DEL
        MOV P2,#08H
        MOV P0,#00H
ACALL DEL
        MOV P0,#4EH
ACALL DEL
        JNC X2
        DJNZ R3,X3
 
Last edited:
i have look the link. but i didn't found any assembly code for displaying 7 segment LED counter with PIC 16F84A. can you show me where it is? thanks..
 
i have found it.but it is for 16F628. if there any difference between this PIC and 16F84A?
i think you should try a basic code and read it before you can jump up to

something like multiplexing

also , 628 is a newer version of 84

because :

has more analog input

has internal clock

and some more ability

to know more about the difference you can search it on google :)
 
oke. i will try to do the basic code. if i have problems i will get back here.
thanks for your kindness. you're very helpful.
 
oke. i will try to do the basic code. if i have problems i will get back here.
one more questions, if i use the 628 code for 7 segment LED counter for my coding if there any effect?
because for main coding i use the 84.
thanks for your kindness. you're very helpful.
 
oke. i will try to do the basic code. if i have problems i will get back here.
one more questions, if i use the 628 code for 7 segment LED counter for my coding if there any effect?
because for main coding i use the 84.
thanks for your kindness. you're very helpful.
it can effect everything

post your code :)
 
oke. this is my coding. can u check them. thanks..
well , im not too experienced at asm

but i think i might find some problem

Code:
INIT 	CLRF 	PORTA 	
		CLRF 	PORTB	
	        [COLOR="red"]BSF 	PAO[/COLOR] 	
		MOVLW 	b'11111'
		MOVWF 	TRISA
;		MOVLW 	b'00000000'
;		MOVWF	TRISB
		[COLOR="red"]BSF 	PAO[/COLOR]
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top