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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/27/04 19:04
Read: times


 
#78218 - RE: BOOTLOADER
Responding to: ???'s previous message

Ok I'm back here I tried the hardware conditions for the bootloader and it did not work for me.

But now I did this just for test:

MAIN:
SETB EA
SETB ES
CPL P2.2 ; buzzer off
CALL DELAY
CALL DELAY
SJMP MAIN

ISP_BOOT:
AUXR1 DATA 0A2H;
WDTRST DATA 0A6H;

GoToBoot:
MOV AUXR1,#020H
MOV R0,#11
MOV R1,#06H
MOV DPTR,#00H
MOV A,#0FFF0H
SETB P2.2 ; buzzer on
CALL DELAY
CLR P2.2 ; buzzer off
MOV R1,#0FFH
DJNZ R1,$
SETB P2.2 ; buzzer on
CALL DELAY
CLR P2.2 ; buzzer off
LCALL 0FFFH
JMP $

;****************************************

INT_SERIAL: ; ATEN. SERIAL-INT
PUSH PSW
PUSH ACC
CLR EA
CLR ES
CLR RI
MOV A,SBUF
CLR C
CJNE A,#'B',EXIT_SERIAL
SJMP ISP_BOOT

;************************************
EXIT_SERIAL:
CLR RI
CLR ES
POP ACC
POP PSW
RETI

When the uc received 'B' on the serial port it jumps to the add 0fffh, on my MAIN routine I make a buzzer to beep so I know when is running on normal conditions after "B" is received on the serial port the buzzer goes two times a faster f and then stay off so I know when is at the add 0fffh but when I try to connect with FLIP I get time out error

Am I missing something still?

When I hit reset it goes to normal operation.

List of 23 messages in thread
TopicAuthorDate
BOOLOADER            01/01/70 00:00      
   RE: BOOLOADER            01/01/70 00:00      
   RE: BOOLOADER            01/01/70 00:00      
      RE: BOOLOADER            01/01/70 00:00      
         RE: BOOLOADER            01/01/70 00:00      
   RE: BOOLOADER            01/01/70 00:00      
      RE: BOOLOADER            01/01/70 00:00      
   RE: BOOLOADER            01/01/70 00:00      
      RE: BOOLOADER            01/01/70 00:00      
         RE: BOOLOADER            01/01/70 00:00      
            RE:            01/01/70 00:00      
               RE: 12V Sigs            01/01/70 00:00      
                  RE: 12V Sigs            01/01/70 00:00      
                     RE: 12V Sigs            01/01/70 00:00      
                        RE: 12V Sigs            01/01/70 00:00      
                           RE: 12V Sigs            01/01/70 00:00      
                              RE: 12V Sigs            01/01/70 00:00      
                     RE: 12V Sigs            01/01/70 00:00      
                        RE: 12V Sigs            01/01/70 00:00      
   RE: BOOTLOADER            01/01/70 00:00      
      RE: BOOTLOADER            01/01/70 00:00      
         RE: BOOTLOADER            01/01/70 00:00      
      RE: BOOTLOADER            01/01/70 00:00      

Back to Subject List