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.

please i need some help

Status
Not open for further replies.

arsalanghouri

Newbie level 5
Joined
Dec 6, 2010
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,365
dear all i have a really big asm code and the problem is it is not working is there any one who is really good at assembler codes who can check it ?? please reply
 

Who has written the code. you or others. What is the purpose of the code. What do we understand by it is not working???? Does it have errors or logical problem???Tell the requirements and post it as attachment rather than copy pasting line by line.
 
ok i didnot write the code and other things are in side attached file
it is not working means the circuit is not working with this code programmed in ds5000t micro controller
 

Attachments

  • relay.zip
    37.1 KB · Views: 104

dear all i have a really big asm code and the problem is it is not working is there any one who is really good at assembler codes who can check it ?? please reply

You have to accept that many projects posted on the web do not work for some reason - you have chosen a project with a dallas micro which is not seen in this forum very often so perhaps you might be better looking for something using the more common PIC or AVR micros .
You could try programming one yourself ..


Have you actually bought that Dallas chip or are you just simulating it ?
 
its true many of projects from web do not work because there might some errors in programming or schematics.

so have a look on programming.
 
A reasonable way would be to debug the hard- and software by checking it's operation step by step. If the original software doesn't provide test functions (I don't see any a first sight), then it should be modified respectively. You can start with simple things:
1. Make the LED blink unconditionally
2. Make the LED blink at key press
3. Output some test text to the character display
4. and so on

Obviously, suitable test steps depend on which test tools are available to you, e.g. a multimeter, an oscilloscope ...?

At least the assembly text style looks good, so as a first guess, I would rather suspect the hardware setup.

By the way, can you be sure to have transferred the Hex image correctly to chip?

Finally: You decided to do a 8051 assembler project. Then you should learn 8051 assembly language.
 
i have bought the dallas chip and tried making the circuit but it does not worksi am posting more info about the project below please help me
i dont under stand is this information enough for the working of the circuit or do i need some thing else
can i post here the link to site from which i saw this project?
 

Attachments

  • relay.zip
    37.1 KB · Views: 96
Last edited:

should there be semicolons before the line as follows??? look at the bold lines please


;
;
; FILE NAME 4Bit5000.ASM
;
; Project: DALLAS DS5000T MICRO Clock/Callendar
; Programmable Event Timer
; 11.0592 MHz Crystal
; LCD = { 20 X 4 }
;
; 4 bit LCD Code
; With user input buttons.
;
;
; ========================================================================
; This project incorperates the Dallas DS5000T in a simple control system.
; In normal mode it simply displays the date and time, and allows setting
; of these functions with user input buttons. The buttons change function
; somewhat in the subroutines. In the normal mode Button #1 moves the
; the user to the Time setting routine. Button #2 moves the user to the
; Alarm and Control setting routine. Below is a diagram of button
; functions for each subroutine.
;
; Time Set Routine Setting Alarms
; Button #1 Go Back Go Back
; Button #2 Increase Daily Alarms
; Button #3 Decrease Control Alarm Status
; Button #4 Enter Control Alarm Set
;
;
; Daily Alarms Control alarm status Control Alarms
; Button #1 Go Back Go Back Go Back
; Button #2 Increase Go Forward Increase
; Button #3 Decrease Go Back Decrease
; Button #4 Enter Show Settings Enter
; [ Any button breaks out]
; [ of Show Settings ]
;
; In all setting routines the arrow indicates which number will be
; acted on by the buttons.


; EQUATES TABLE FOR ASSEMBLER
; ===========================


lcd_data equ 090h ; port #1
lcd_db4 equ 094h ; port #1.4
lcd_db5 equ 095h ; port #1.5
lcd_db6 equ 096h ; port #1.6
lcd_db7 equ 097h ; port #1.7

lcd_rs equ 0b3h ; port #3.3
lcd_rw equ 0b4h ; port #3.4
lcd_e equ 0b5h ; port #3.5


Button1 equ 090h ; port #1.0
Button2 equ 091h ; port #1.1
Button3 equ 092h ; port #1.2
Button4 equ 093h ; port #1.3

Alarm_out equ 0b7h ; port #3.7
Control equ 0a0h ; port #2

config equ 28h
entrymode equ 6
offcur equ 0ch
clrdsp equ 01h
offdsp equ 0ah
ondsp equ 0eh

pcon equ 087h
mcon equ 0c6h
ta equ 0c7h
acc equ 0e0h
sp equ 081h
b equ 0f0h
dph equ 083h
dpl equ 082h
psw equ 0d0h
; ie equ 0a8h
; tmod equ 089h
; th1 equ 08dh
; tl1 equ 08bh
; scon equ 098h
; tcon equ 088h
; sbuf equ 99h
; ren equ 9ch
; ri equ 98h
; ti equ 99h

 

should there be semicolons before the line as follows
The said lines have been commented out, because the respective register symbols are unused in the code, as a text search reveals: No interrupts, no timer, no serial interface.

By the way, if any needed symbol is undefined, the assembler exits with an error.

I think ckshivaram has asked a good question in his first post, it has been answered yet.
 
can any one of you give me your gmail email id or facebook id where i can chat with you please this is my first project and i am a begginer please help me
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top