Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

5x7 Matrix Led using PIC16F84

Status
Not open for further replies.

nobie

Newbie level 5
Newbie level 5
Joined
May 5, 2010
Messages
8
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,283
Activity points
1,329
hi ALL
i can't finish this circuit
**broken link removed**

because i don't find the "XTLA1" Component in Proteus 7 , and i don't understand how to link the source to the PIC
i need this circuit to test my MPASM codes :) for school

thanks in advance
 

thanks for the answer
how about the source how can i link it to the PIC
 

it 5 V battery shown in the pic
the "+" pole linked to the PIC , and the "-" to ???? "don't know"
 

thanks AlBo for the answer

i just finished the circuit , but it don't work can u take a look
:( i m not good in electronics
 

can someone help me fix the problem :?: the circuit don't work
 

nobie said:
can someone help me fix the problem :?: the circuit don't work


hi nobie,
in your design port-a and port-b are trying to sink the current at both ports. so led's won't glow.

try to give source from one port and sink the current at other port.

please check the circuit which is been attached below.

further quires text mee
 
nobie said:
can someone help me fix the problem :?: the circuit don't work


hi nobie,

your using common cathode dot matrix. so you must sink the current at rows but not at columns .the forum i am sending you gives the detail of common anode dot matrix.






to display 'a' character on 8x8 dot matrix is

row[]={0x0fe,0x0fd,0x0fb,0x0f7,0x0ef,0x0df,0x0bf,0x7f}// by this your selecting the columns and sinking the current at rows.

data is sent at columns
col[]={0x00,0x7c,0x02,0x7e,0x42,0x42,0x7d,0x00};
 
nobie said:
thanks for the info saidutt but i have a problem in my circuit i can't get it straight

hi nobie,
i have done with 8051 micro-controller.please check the circuit of mine.
i have posted schematic earlier to you .please check it. and try to program
using those array's posted to you earlier.
 
thanks for the help saidutt i really appreciate it :) i m dumb in this domain
the problem is that i use MPLAB , and i don't know how to code a 8051 micro-controller
i used the 16f84 circuit but my code don't work code , it normally wold display first raw led in a interval of 1ms
thanks in advance :)
Code:
LIST      p=16F84            ; Définition de processeur
#include <p16F84.inc>        ; Définitions des constantes

__CONFIG   _CP_ON & _WDT_ON & _PWRTE_ON & _HS_OSC

;*********************************************************************
;                              ASSIGNATIONS                          *
;*********************************************************************
clic EQU H'04' ; Ajoutons dans la partie "assignations" le mot

;*********************************************************************
;                   DECLARATIONS DE VARIABLES                        *
;********************************************************************
	CBLOCK 0x00C   		; début de la zone variables
		cmpt1 : 1
		cmpt2 : 1
		cmpt3 : 1
		ENDC			; Fin de la zone                        

;**********************************************************************
;                      DEMARRAGE SUR RESET                            *
;**********************************************************************

	org 0x000 		; Adresse de départ après reset
	goto    init		; Adresse 0: initialiser

;*********************************************************************
;                       INITIALISATIONS                              *
;*********************************************************************
init
	bsf STATUS,RP0 
	clrf  PORTA
	clrf  PORTB
	bcf  STATUS,RP0
	goto start

;*********************************************************************
;                  SOUS-ROUTINE DE TEMPORISATION
;*********************************************************************
	tempo
		movlw 10 ;pour 2 boucles
		movwf cmpt3 ;initialiser compteur3
	boucle3
		clrf cmpt2 ;effacer compteur2
	boucle2
		clrf cmpt1 ; effacer compteur1
	boucle1
		nop ; perdre 1 cycle
		decfsz cmpt1,f ; décrémenter compteur1
		goto boucle1 ;si pas 0 boucler
		decfsz cmpt2,f ; si 0 décrémenter compteur2
		goto boucle2 ; si compteur pas 0,recommencer boucle1
		decfsz cmpt3,f ; si 0 décrémenter compteur3
		goto boucle3 ; si cmpt3 pas 0, recommencer boucle2
		return
;*********************************************************************
;                      PROGRAMME PRINCIPAL                           *
;*********************************************************************
start

		etiquette2
		clrf  PORTA
		clrf  PORTB
		bsf PORTB,0
		bsf PORTA,0
		etiquette
		call tempo
		rlf PORTB,f
		btfsc PORTB,7
		goto etiquette2
		goto etiquette
		
		END 			; directive fin de programme
 
nobie said:
thanks for the help saidutt i really appreciate it :) i m dumb in this domain
the problem is that i use MPLAB , and i don't know how to code a 8051 micro-controller
i used the 16f84 circuit but my code don't work code , it normally wold display first raw led in a interval of 1ms
thanks in advance :)


hi nobie,
i haven't done programming in PIC. do u have any idea in embedded c programming
i am sending you the code to display a character. i haven't tested that code.please check it. if you still find any problem. are you restricted to use the that micro- controller. if not try to change the micro-controller.


#include<PIC.h>
unsigned char row[]={0x0fe,0x0fd,0x0fb,0x0f7,0x0ef,0x0df,0x0bf,0x7f};
unsigned char col[]={0x00,0x7c,0x02,0x7e,0x42,0x42,0x7d,0x00};
//unsigned char row[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
void delay()
{
unsigned int j,k;
for(j=0;j<10;j++)
for(k=0;k<100;k++);
}
void main()
{
unsigned int i,j;
TRISA=0x00;
TRISB=0x00;
while(1)
{
for(i=0;i<8;i++)
{
PORTB=row;
PORTA=col;
delay();
}
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top