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.

How to simulate 8051 to display something on 8x8 LED matrix

Status
Not open for further replies.

cikokui

Newbie level 2
Newbie level 2
Joined
Sep 1, 2005
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
hello, i have a problem with my program. now i'm doing 8x8 led matrix display system that can display alphanumeric characters . my question is, how can i simulate my source code to display the LED. i mean how can i know either my LED is showing what i want or not. are there any special software to display led. i'm already use 8052 Simulator. but i can't find any LED display in this simulator. i hope someone can help me with my problem.. thanx...
 

Re: How to simulate 8051

I don't think there is a simulator like that, but isn't it sufficient to just monitor the state of the pins used to turn on the LED's? Their state should tell you exactly if the LEDs would be lit the way you want or not.
 

Re: How to simulate 8051

Labcenter Electronics have proteus(isis) software for 8051 and some cpu.And this program have led display simulator.
 
Re: How to simulate 8051

thanx... i will look for that software... btw... i have a code for number '0' . can u help me how to make it show all the number and character.
this is my code


Code:
NUMBER EQU 625
       ORG 0000H
MAIN:   MOV R1, #01H
        MOV R2, #0
        MOV R3, #0
        MOV DPTR,#REDO
ROW:    MOV A,R3
        MOVC A,@A+DPTR
        MOV R2,A
        MOV P0,R2
        MOV P2,R1
        ACALL DELAY
        MOV A,R1
        RL A
        MOV R1,A
        INC R3
        CJNE R1,#01H,ROW
        MOV R3,#0
        SJMP ROW
DELAY:  MOV TMOD,#01H
        MOV TH0,#HIGH(-NUMBER)
        MOV TL0,#LOW(-NUMBER)
        SETB   TR0
        JNB TF0,$
        CLR TF0
        RET
REDO:   DB  0E3H, 0DDH, 0CDH, 0D5H, 0D9H, 0DDH, 0E3H, 0FFH
        END

do ihave to add some loop or interrupt ? sorry, im new to this.. juz need some aadvice about this... thanx :D
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top