Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/02/10 16:16
Read: times


 
#172124 - What kind of programmer?
Responding to: ???'s previous message
Avni Modi said:
Hello,
Mr.Jan Waclawek.

We are not using any external memory chip and external watchdog chip.
For to download program into chip I'm using intelligent universal programmer, and I do not know about the version of the bootloader.

Contrary to the claims of many a programmer seller, there is no "universal" programmer. The best you can hope for is one that programs the devices YOU want to program. Few of them will even do that. Most often, you have to have a programmer specifically designed to program the chip you are using. What is the "universal" programmer that you're using? If you provide this information, perhaps someone has experience with your MCU together with that "universal" programmer.

Also, we have connected pull up resistor of 10k at port P0.

My hardware is working above the 2000h address perfectly, but now again, my question is, I want to store password #AAh value at address 0100H and then as per to read it.

It would be interesting to know how you've determined that your hardware is working.

But it can't do. Please send me suggestion for to read the data #AAH at address 0100H and send it to port P0.

I'm waiting for your reply.

My sample program is here,

DPL EQU 82H
DPH EQU 83H
FCF EQU 0B1H

ORG 0000H

MOV DPTR,#TESTAREA2
LCALL E_RASE ;Routine for to erase data at address 0100H
MOV DPTR,#TESTAREA2
MOV A,#0AAH
LCALL W_RITE ;Routine for to write data #0AAH at address 0100H
MOV DPTR,#TESTAREA2
LCALL R_EAD ;Routine for to read data at address 0100H



ORG 0100H
TESTAREA2:
DB 0,0



ORG 03F00H

MOV 080H,#0FFH
MOV 0A0H,#0FFH

stop:

MOV DPTR,#0100H ;Reading data at address 0100H
CLR A
MOVC A,@A+DPTR
MOV 080H,A
MOV 0A0H,#11111100B

LCALL DELAY
LCALL DELAY

SJMP STOP


E_RASE:

PUSH 0A8H
CLR 0AFH
MOV R1,#08H
ANL FCF,#0FCH ; enable boot sector
LCALL 01FF0H
ORL FCF,#001H ; enable boot sector
POP 0A8H
LCALL DELAY
LCALL DELAY
RET




W_RITE:

PUSH 0A8H
CLR 0AFH
MOV R1,#02H
ANL FCF,#0FCH ; enable boot sector
LCALL 01FF0H
ORL FCF,#001H ; enable boot sector
POP 0A8H
LCALL DELAY
LCALL DELAY
RET




R_EAD:

PUSH 0A8H
CLR 0AFH
MOV R1,#03H
ANL FCF,#0FCH ; enable boot sector
LCALL 01FF0H
ORL FCF,#001H ; enable boot sector
POP 0A8H
LCALL DELAY
LCALL DELAY
RET



DELAY:

MOV R5,#10
LD2: MOV R6,#100
LD1: MOV R7,#100
LD: DJNZ R7,LD
DJNZ R6,LD1
DJNZ R5,LD2
RET


END



It would be much easier to help you if you'd format your code as suggested in the website instructions. More comments as to your intentions with each code segment are better than fewer.

RE



List of 25 messages in thread
TopicAuthorDate
P89V51RD2 IAP and ISP writeup            01/01/70 00:00      
   e-mail it to andy ayre            01/01/70 00:00      
   thanks for replay            01/01/70 00:00      
      once again readout data            01/01/70 00:00      
         I'll look at it tomorrow            01/01/70 00:00      
            case sensitive assembler            01/01/70 00:00      
            Read Data....from address            01/01/70 00:00      
               What kind of programmer?            01/01/70 00:00      
                  never saw a chip that ..            01/01/70 00:00      
                     Maybe not now ...            01/01/70 00:00      
                  Before 2000h perfect working            01/01/70 00:00      
                     no bootloader            01/01/70 00:00      
                     Why at 0x0100?            01/01/70 00:00      
                        p89v51rd2bn            01/01/70 00:00      
                           Have you told us everything?            01/01/70 00:00      
                              using IAP routine            01/01/70 00:00      
                                 I'd suggest you focus on the datasheet            01/01/70 00:00      
                                    datasheet            01/01/70 00:00      
                                       I love these replies            01/01/70 00:00      
                                       NXP practice            01/01/70 00:00      
                                          not in this case            01/01/70 00:00      
                                             Getting Solution            01/01/70 00:00      
                                                HUH????            01/01/70 00:00      
                                                   good response            01/01/70 00:00      
                           have you read my last two posts?            01/01/70 00:00      

Back to Subject List