If you don't know about the uC, you better not to do anything for your friend, because the uC is a hard work, it needs hardware and software conceptions and knowledges, the best way is that you go to study the uC and when you have any problems then you can ask for help.
I was copied DLY_2MIN to DLY_1MIN and modified the values of R2, and R3.
you can try it, probably it needs to modify the R4 a little, I also modified the first line of the LOOP program from LCALL TMR_5MIN to LCALL DLY_1MIN.
==========================================Code:;----------------------------------------------- LOOP: LCALL DLY_1MIN ;CALL 1 MIN. TIMER JNB 78H,L3 ;L/V THEN GOTO 018B H JNB 77H,L2 ;H/V THEN GOTO 0136 H JB 76H,L5 ;DRY SUMP THEN GOTO 0188 H JB P2.2,$ ;WAIT UNTIL TANK FULL LOOP1: LJMP TANK_FULL ;GOTO TANK FULL DISPLAY
Code:;------------------------- ORG 05xxH --------------------------------- ORG 05xxH DLY_1MIN: MOV R2,#07FH L502: MOV R3,#07FH L504: MOV R4,#0FFH L506: NOP NOP NOP NOP DJNZ R4, L506 DJNZ R3, L504 DJNZ R2, L502 RET ;BACK TO MAIN PROGRAMME
Can you tell me where can i learn 8051 programming ,tried many websites that made me more confused.
and i attatch the file i changed.
can you please tell me whats the mistake i have done
[ I tried changing the programm from orginal source by placing 1 minute instead of 10 minutes in Lines
77
332
389
431 ]
Attachments
-
11.5 KB Views: 9