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

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
ExperimenterUK
Thu Jul 11 2019, 07:44 PM
@praveen123. Can you give a link to the project ?

Downloads

Comments

ANKITPATEL
Mon Nov 18 2019, 11:00 AM
Casmir
Wed Nov 13 2019, 06:25 AM
DeepakBGattani
Mon Nov 11 2019, 01:31 PM
Jeanbusatta
Sun Nov 10 2019, 04:42 AM
mdayaz
Sat Nov 09 2019, 03:41 PM
baoyen123
Fri Nov 08 2019, 10:06 AM
xiwang
Fri Nov 08 2019, 07:28 AM
ilylily07
Tue Oct 15 2019, 04:32 PM

Online

Guests: 53, Members: 0 ...

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

Members: 38104
Newest member: ANKITPATEL
Forum Activity
ilylily07 Avatar
Posted By ilylily07
Mon Nov 18 2019, 09:54 AM
0v7670 camera interfacing with stc 8051.using asse...
Jeanbusatta Avatar
Posted By Jeanbusatta
Sun Nov 10 2019, 04:43 AM
ty, really needed it
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Oct 22 2019, 05:18 AM
wimac Avatar
Posted By wimac
Mon Oct 21 2019, 09:18 AM
I’ve been following this thread and looking at the...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...