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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/23/06 23:39
Read: times


 
#116992 - Link to 3 pulse circuit using 89C2051
Responding to: ???'s previous message
Hi Jan,

Look at:

http://www.microtronz.com/resetckt.jpg


Here is my first attempt to place code on this website:


 

;****************************************************************
;
;       RESETCKT.ASM  - EXP40 program to reset P89LPC9408 into
;       ISP mode
;       BERT VAN DEN BERG
;  
;       20/05/06 Ver10	Initial Version 
;
; TO DO:
;
; NOTES:
;
;	11.06Mhz reasonator 
;	RS2323 serial input (P3.0) connected to P89LPC9408 Vcc
;	P89LPC9408 Reset input (P1.5) connected to P1.0
;	Power up RESET CIRCUIT and then turn on power to 
;       P89LPC9408
;
$MOD52
$NOPAGING
$PAGEWIDTH(132)
;
;
;
        	CSEG
	ORG     00H
;
        SETB    P3.0
START:	CLR	P1.0
	JB	P3.0,START
;
	CALL	Dly1S
;
	SETB	P1.0		;1 - toggle reset high
	CALL	Dly16uS
	CLR	P1.0
	CALL	Dly16uS
;
	SETB	P1.0		;2
	CALL	Dly16uS
	CLR	P1.0
	CALL	Dly16uS
;
	SETB	P1.0		;3
	CALL	Dly16uS
	CLR	P1.0
	CALL	Dly16uS
;
DONE:	SETB	P1.0		;keep reset high
	CALL	Dly16uS
	JMP	Done
;
;
Dly1S:	MOV	R4,#175		;1 second delay for transients
DSb:	MOV	R3,#175
DSc:	MOV	R2,#175
DSf:	call	Dly16uS
	djnz	R2,DSf
	djnz	R3,DSc
	djnz	R4,DSb
;
Dly16uS:
	MOV	R1,#6		
	DJNZ	R1,$		;Approx 12uS +2 +2
	RET			
;

;
	END




Using a 8 pin P89LPC903 would simplify the circuit more by eliminating the reset capacitor and reasonator and possibly the pull-up resistor.

Regards,

Bert


List of 16 messages in thread
TopicAuthorDate
3 pulse ISP entry for P89LPC938            01/01/70 00:00      
   3-pulse            01/01/70 00:00      
   you did not read did you?            01/01/70 00:00      
      P89LPC9408 Programming            01/01/70 00:00      
         how can down under be over the rainbow?            01/01/70 00:00      
         Thanks JG - It works now            01/01/70 00:00      
            3pulse circuit            01/01/70 00:00      
               LPC900 ISP and IAP etc            01/01/70 00:00      
                  it IS in ISP mode the first time            01/01/70 00:00      
               LPC900 ISP and IAP etc            01/01/70 00:00      
               Link to 3 pulse circuit using 89C2051            01/01/70 00:00      
                  Oh, yes.            01/01/70 00:00      
      I DO know that Erik -            01/01/70 00:00      
         actually it does not            01/01/70 00:00      
         Break feature            01/01/70 00:00      
   P89LPC938            01/01/70 00:00      

Back to Subject List