Sign In

Trouble In Programing An AT89C51 Microcontroller Using Arduino Uno Board As A Programmer

Greatman mctongdube@gmail.com Zimbabwe

Hardware: AT89C51 Microcontroller, 12MHz Crystal Oscilator, 33pf Capacitors X 2, BC547 Transistor Wired On Pcb Software: Keil Microvision And Avr Studio

l have wired all the hardware components on pcb and l tried to burn my hex file to the microcontroller using arduino uno board as a programmer. l burnt my hex file using 8051 SPI programmer software to link it with arduino isp as a programmer.

Images

trouble in programing an AT89C51 microcontroller using arduino uno board as a programmer

Program

 ORG 0
  LJMP START
  ORG 0050;
THIS IS SPEED CONTROL PROGRAM DT:20-03-2007 LCD PVPSIT;
                 P2.5 = ENABLE;
                 p2.6 = READ/WRITE;
       P2.7 = REG INS=0 /DATA=1;
       P1.4 =MOTOR;
       P1.5 =MOTOR;
       50H = DISP LOCATION ADD;
       51H = SPEED ON TIME;
       52H = SPEED OFF TIME;
       53H = SPEED SET VAL;
       54H = SPEED READ VAL
START:  
        CLR P1.4
        CLR P1.
YXZ:    MOV 56H,#00H
        JB P1.1,UXD
        LCALL DEL1
        JB P1.1,YXZ
        MOV 56H,#01H
UXD:       
       LCALL LCDINI
XX1:    LCALL SEC 
        MOV DPTR, #03C0H
        LCALL TLINE
        MOV DPTR, #03D0H
        LCALL BLINE
        LCALL SSEC
      MOV DPTR, #03E0H
        LCALL TLINE
        MOV DPTR, #03F0H
        LCALL BLINE
        LCALL SSEC

        MOV 50H,#8BH
        MOV 51H,#7FH
        MOV 52H,#80H
        MOV 55H,#00H
        MOV 53H,#7FH
       LCALL SDI
       LCALL SEC
MMRR:        
        MOV R0,#00H
Y1:     
   LCALL DEL1
        JB P1.1,Y1
        LCALL INCR
     MOV 50H,#8BH
        CLR A
        MOV A,53H
        MOV 55H,A
        LCALL SDIS
        LCALL SEC
U1:     
        JB P1.2,U
LCALL DEL1
     JB P1.2,U1
        LCALL DECR
     MOV 50H,#8BH
        CLR A
        MOV A,53H
        MOV 55H,A
        LCALL SDIS
        LCALL SEC
U2:     
        JB P1.3,Y1
        LCALL DEL1
        JB P1.3,U2
TY1:    
        JB P1.3,TY1
        LCALL DEL1

;************  
       DB #32H
       DB #35H
       DB #34H
      ;------------------ 
       ;************ 
       DB #32H
       DB #35H
       DB #35H

Post a reply to Greatman

Think you can help Greatman ? Then post your thoughts that might help Greatman. You will earn a lot of reputation in the technical community.

If your program is in multiple files, then ZIP the entire folder and attach below

Images and Screenshots

These helps other better understand your suggestion.