Discussion in "8051 Discussion Forum" started by    [email protected]    Oct 5, 2019.
Sat Oct 05 2019, 02:43 PM
#1
Dear Sir

I want to Scroll message on (8x32) 4 dot matrix display using max 7219,but i m only scroll on one dot matrix display, below is my code, max 7219 dout pin not giving serial out data.


LOAD EQU P1.2
DIN EQU P1.1
CLK EQU P1.0
KEYPAD EQU P2
K_A EQU P2.0
K_B EQU P2.1
K_C EQU P2.2
K_D EQU P2.3
K_P EQU P2.4

MAIN: ACALL INIT
MOV DPTR,#TABLE
MOV R4,#224
NEXTC: MOV R3,#8

REPEAT: MOV R1,#0
MOV R0,#1
NEXT:
MOV A,R0

ACALL SEND_A
MOV A,R1
MOVC A,@A+DPTR

ACALL SEND_D
INC R1
INC R0
aCALL DELAY
MOV P2,#0FFH
CJNE R1,#8,NEXT

DJNZ R3, REPEAT
INC DPTR
DJNZ R4, NEXTC
SJMP MAIN
INIT: ;SHUT DOWN SETTING
MOV A,#0CH
ACALL SEND_A
MOV A,#01h
ACALL SEND_D
; DISPLAY TEST
MOV A,#0FFH
ACALL SEND_A
MOV A,#01H
ACALL SEND_D
; DECODE MODE SETTING
MOV A,#09H
ACALL SEND_A
MOV A ,#00H
ACALL SEND_D
; SCAN LIMIT
MOV A,#0BH
ACALL SEND_A
MOV A,#07h
ACALL SEND_D
; INTENSITY
MOV A,#0AH
ACALL SEND_A
MOV A,#04H
ACALL SEND_D
RET

SEND_A: MOV R7,#8
CLR LOAD
BACK: CLR CLK
RLC A
MOV DIN,C
SETB CLK
DJNZ R7,BACK
RET
SEND_D: MOV R7,#8
BACK1: CLR CLK
RLC A
MOV DIN,C
SETB CLK
DJNZ R7,BACK1
SETB LOAD
RET
TABLE:

DB 00H,00H,00H,00H,00H,00H,00H,00H
DB 3EH, 48H, 88H, 48H, 3EH, 00H ;A
DB 0FEH, 92H, 92H, 92H, 6CH, 00H ;B
DB 7CH, 82H, 82H, 82H, 44H, 00H ;C
DB 0FEH, 82H, 82H, 44H, 38H, 00H ;D
DB 0FEH, 92H, 92H, 92H, 82H, 00H ;E
DB 0FEH, 90H, 90H, 90H, 80H, 00H ;F
DB 7CH, 82H, 92H, 94H, 5EH, 00H ;G
DB 0FEH, 10H, 10H, 10H, 0FEH, 00H ;H
DB 00H, 82H, 0FEH, 82H, 00H, 00H ;I
DB 04H, 02H, 82H, 0FCH, 80H, 00H ;J
DB 0FEH, 10H, 28H, 44H, 82H, 00H ;K
DB 0FEH, 02H, 02H, 02H, 02H, 00H ;L
DB 0FEH, 40H, 30H, 40H, 0FEH, 00H ;M
DB 0FEH, 20H, 10H, 08H, 0FEH, 00H ;N
DB 7CH, 82H, 82H, 82H, 7CH, 00H ;O
DB 0FEH, 90H, 90H, 90H, 60H, 00H ;P
DB 7CH, 82H, 8AH, 84H, 7AH, 00H ;Q
DB 0FEH, 90H, 98H, 94H, 62H, 00H ;R
DB 64H, 92H, 92H, 92H, 4CH, 00H ;S
DB 80H, 80H, 0FEH, 80H, 80H, 00H ;T
DB 0FCH, 02H, 02H, 02H, 0FCH, 00H ;U
DB 0F8H, 04H, 02H, 04H, 0F8H, 00H ;V
DB 0FCH, 02H, 1CH, 02H, 0FCH, 00H ;W
DB 0C6H, 28H, 10H, 28H, 66H, 00H ;X
DB 0E0H, 10H, 0EH, 10H, 0E0H, 00H ;Y
DB 86H, 8AH, 92H, 0A2H, 0C2H, 00H ;Z
DB 7CH, 8AH, 92H, 0A2H, 7CH, 00H ;0
DB 00H, 42H, 0FEH, 02H, 00H, 00H ;1
DB 42H, 86H, 8AH, 92H, 62H, 00H ;2
DB 84H, 82H, 0A2H, 0D2H, 8CH, 00H ;3


DB 18H, 28H, 48H, 0FEH, 08H, 00H ;4
DB 0E4H, 0A2H, 0A2H, 0A2H, 9CH, 00H ;5
DB 3CH, 52H, 92H, 92H, 0CH, 00H ;6
DB 80H, 8EH, 90H, 0A0H, 0C0H, 00H ;7
DB 6CH, 92H, 92H, 92H, 6CH, 00H ;8
DB 60H, 92H, 92H, 94H, 78H, 00H ;9

DB 00H,00H,00H,00H,00H,00H,00H,00H

Sun Oct 06 2019, 02:35 AM
#2
Can you post a circuit diagram ?
Sun Oct 06 2019, 01:05 PM
#3
Max 7219 with led matrix 4 in 1
Mon Oct 07 2019, 08:05 AM
#4
Your implementation of a Max 7219 with led matrix 4 in 1,
may not be the same as someone else's.
We need to see your circuit diagram to be able to help.
Wed Oct 09 2019, 08:46 AM
#5
please find below attachment of circuit diagram.
[img]


[ Edited Wed Oct 09 2019, 08:50 AM ]
Wed Oct 09 2019, 08:48 AM
#6
Dear sir

all dot matrix display scroll same data.


[ Edited Wed Oct 09 2019, 08:52 AM ]
Thu Oct 10 2019, 01:31 AM
#7

max 7219 dout pin not giving serial out data.



Try this simple test program with an led on DOUNT
You should get a "clock" output.


Attachment
Thu Oct 10 2019, 07:49 AM
#8
sir, i m trying to scroll message on dot matrix display using 7219 ic, but its scroll vertically on 1 dot matrix display, i want to scroll horizontal on all dot matrix display .


Fri Oct 11 2019, 02:33 AM
#9
You seem to be 95% of the way there.
Can you post your Proteus file.

It would be very helpful to add lots of comments to your program,
to show exactly what it is supposed to do.

Adding comments saves time in the long run.
Fri Oct 11 2019, 05:36 AM
#10
please find below attachment.

Get Social

Information

Powered by e107 Forum System

Conversation

Thu Nov 21 2019, 12:30 PM
raj2555
how to interface 8051 microcontroller with NRF24L01+ module
ExperimenterUK
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html

Downloads

Comments

pyxus
Sat Dec 14 2019, 12:31 PM
Istika
Thu Dec 12 2019, 12:04 PM
nabiha_anaya
Sun Dec 08 2019, 09:16 AM
ananyagupta
Tue Dec 03 2019, 07:53 AM
wells
Mon Nov 25 2019, 08:25 PM
auwal
Tue Nov 19 2019, 03:13 PM
ANKITPATEL
Mon Nov 18 2019, 11:00 AM
Casmir
Wed Nov 13 2019, 06:25 AM

Online

Guests: 39, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38110
Newest member: pyxus
Forum Activity
ilylily07 Avatar
Posted By ilylily07
Thu Dec 12 2019, 02:26 PM
wil do.thank you for your advice!
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Dec 12 2019, 07:13 AM
Something like this ?https://www.bing.com/videos/s...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Dec 12 2019, 06:58 AM
The layout is a bit different, but it is the same ...
ilylily07 Avatar
Posted By ilylily07
Thu Dec 12 2019, 04:38 AM
https://i.imgur.com/6S5FcwF.png right now im follo...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Dec 10 2019, 04:49 PM
ilylily07 Avatar
Posted By ilylily07
Sun Dec 08 2019, 01:24 PM
Hi .im humbly ask for your advice as i wrongly pur...
nabiha_anaya Avatar
Posted By nabiha_anaya
Sun Dec 08 2019, 09:19 AM
My teacher assign me a project on "voice control h...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Nov 29 2019, 04:24 AM
" Is it possible to interface a fingerprint scanne...
ilylily07 Avatar
Posted By ilylily07
Thu Nov 28 2019, 03:50 PM
You will not find any code for an 8051 as no one w...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 26 2019, 05:44 PM
You will not find any code for an 8051 as no one w...