HTML      PDF
, , , , msp430, MSP430, Atmel, Maxim, LCD, hd44780, t6963, sed1335, SED1335, mega128, avr, mega128  
  > > Dallas >

 







;  DS1307.ASM
;
;        
;    /     RAM  DS1307,
;   DS5000   
;
CR		EQU	0DH
LF 		EQU 	0AH
MCON 		EQU 	0C6H
PCON 		EQU 	087H
TA 		EQU 	0C7H
SCL 		BIT 	P1.0
SDA 		BIT 	P1.1
TRIG 		BIT 	P1.2
DS1307W 		EQU 	0D0H
DS1307R 		EQU 	0D1H
FLAGS 		DATA 	20H
LASTREAD 	BIT 	FLAGS.0
_12_24 		BIT 	FLAGS.1
PM_AM 		BIT 	FLAGS.2
OSC 		BIT 	FLAGS.3
SQW 		BIT 	FLAGS.4
ACK 		BIT 	FLAGS.5
BUS_FAULT 	BIT 	FLAGS.6
_2W_BUSY 	BIT 	FLAGS.7
BITCOUNT 	DATA 	21H
BYTECOUNT 	DATA 	22H
BYTE 		DATA 	23H
CSEG	AT 	0
AJMP	START
;
CSEG 	AT 	30H
;**************************************************************
;
;***      ****
;
;**************************************************************
START:
MOV	 TA,#0AAH 	; 
MOV 	 TA,#55H 		; .
MOV	 PCON,#0 		;   .
MOV	 MCON,#0F8H	;  CE2 
;   .
MOV	 SP,#70H		;   
; .
MOV	 IE,#0
MOV	 TMOD,#20H	 ; 
MOV	 TH1,#0FAH	 ;  
MOV	 TL1,#0FAH	 ;   9600
ORL	 PCON,#80H	 ; .
MOV	 SCON,#52H
MOV	 TCON,#40H
;MOV	 R0,#0
;MOV	 R1,#0
;DJNZ	 R0,$
;DJNZ	 R1,$2
SETB	 SDA		 ;    SDA 
LCALL 	 SCL_HIGH	 ;    SCL 
CLR	 ACK		 ;   
CLR	 BUS_FAULT
CLR	 _2W_BUSY
;
;   λ 
;
MASTER_CONTROLLER:
MOV	 BYTECOUNT,#10H
FORM_FEED: 	MOV	 A,#LF		 ;    
 ; 
LCALL	 WRITE_DATA
DJNZ	 BYTECOUNT,FORM_FEED
MOV DPTR, #TEXT0	 ;   
 ;  
LCALL	 WRITE_TEXT
MOV	 DPTR, #TEXT3
LCALL	 WRITE_TEXT
LCALL	 READ_DATA
CLR	 ACC.5		 ;  ACC   
 ; 
CJNE	 A,#A,NOTA	 ;   
 ; 
LCALL	 SET_CLOCKM
JMP	 MASTER_CONTROLLER	 ;    
NOTA:
CJNE	 A,#B,NOTB	 ;    SET RAM
 ; 
LCALL	 SET_RAM	 ;   READ RAM 
LCALL	 READ_RAM
JMP	 MASTER_CONTROLLER	 ;    
NOTB:
CJNE	 A,#C,NOTC	 ;   READ CLOCK
LCALL	 READ_CLOCK
JMP	 MASTER_CONTROLLER	 ;     
NOTC:
CJNE	 A,#D,NOTD		 ;    READ RAM
LCALL	 READ_RAM
JMP	 MASTER_CONTROLLER	 ;    
NOTD:		CJNE	 A,#E,NOTE		 ;   OSC
CLR	 OSC			 ;   OSC   .
LCALL	 OSC_CONTROL
JMP	 MASTER_CONTROLLER	 ;    
NOTE:		CJNE	 A,#F,NOTF		 ;     OSC
SETB	 OSC			 ;   OSC  .
LCALL	 OSC_CONTROL
JMP	 MASTER_CONTROLLER	 ;    
NOTF:		CJNE	 A,#G,NOTG		 ;   SWQ 
CLR	 SQW			 ;   SQW  .
LCALL	 SQW_CONTROL_1HZ
JMP	 MASTER_CONTROLLER	 ;     
NOTG:		CJNE	 A,#G,NOTH		 ;    SWQ 
CLR	 SQW			 ;   SQW  .
LCALL	 SQW_CONTROL_1HZ
JMP	 MASTER_CONTROLLER	 ;    
NOTH:		CJNE A,#H,NOTI			 ;    SWQ 
CLR	 SQW			 ;   SQW  .
LCALL	 SQW_CONTROL_4KHZ
JMP	 MASTER_CONTROLLER	 ;    
NOTI:		CJNE	 A,#I,NOTJ		 ;    SWQ
CLR	 SQW			 ;   SQW  .
LCALL	 SQW_CONTROL_8KHZ
JMP	 MASTER_CONTROLLER	 ;    
NOTJ:		CJNE	 A,#J,NOTK		 ;    SWQ 
CLR	 SQW			 ;   SQW  .
LCALL	 SQW_CONTROL_32KHZ
JMP	 MASTER_CONTROLLER	 ;    
NOTK:		CJNE	 A,#K,NOTL		 ;    SWQ
SETB	 SQW			 ;   SQW  .
LCALL	 SQW_CONTROL_1HZ
JMP	 MASTER_CONTROLLER
NOTL:		CJNE	 A,#L,NOTM
LCALL	 SET_RAM_UNQ
LCALL	 READ_RAM
NOTM:		JMP	 MASTER_CONTROLLER	 ;    
;
;
;     START
;
;
SEND_START: 
SETB	 _2W_BUSY		 ; ,   
 ;  
CLR	 ACK			 ;   
CLR	 BUS_FAULT
JNB	 SCL,FAULT		 ;  
JNB	 SDA,FAULT		 ;   START
SETB	 SDA 
LCALL	 SCL_HIGH		 ; SDA
CLR	 SDA
;
LCALL	 DELAY			 ; SCL ^START
CLR	 SCL 
RET
FAULT:
SETB	 BUS_FAULT		 ;   
RET				 ;    
;
;
;     STOP
;
;
SEND_STOP: 
CLR	 SDA			 ; SDA
LCALL	 SCL_HIGH 
SETB 	 SDA			 ; SCL ^STOP 
CLR	 _2W_BUSY
RET
;
;
;       DS1307
;
;
SEND_BYTE:
MOV	 BITCOUNT,#08H		 ;  ר  8 
SB_LOOP:
JNB	 ACC.7,NOTONE		 ;     7 ACC 1
SETB	 SDA			 ;  SDA    
JMP	 ONE
NOTONE:
CLR	 SDA			 ;  SDA  (0)
ONE:
LCALL	 SCL_HIGH		 ;   SCL    
RL	 A			 ;   ACC  1 
CLR	 SCL			 ;   SCL    
DJNZ	 BITCOUNT,SB_LOOP	 ;   8 
SETB SDA			 ;   SDA  .
 ;    Ȩ
LCALL	 SCL_HIGH		 ;   SCL    
CLR	 ACK			 ;    Ȩ
JNB	 SDA,SB_EX		 ;   .  .
SETB	 ACK			 ;    
 ; 
SB_EX:
LCALL	 DELAY			 ;  
CLR	 SCL			 ;   SCL
 ;    
LCALL	 DELAY			 ;   
RET
;
;
;       DS1307
;
;
READ_BYTE:
MOV	 BITCOUNT,#008H		 ;  ר  8 
 ; 
MOV	 A,#00H 
SETB	 SDA			 ;  SDA   
 ;  
READ_BITS:
LCALL	 SCL_HIGH		 ;  SCL    
MOV	 C,SDA			 ;     
 ;  \
RLC	 A			 ;     ACC.0
CLR	 SCL			 ;  SCL    
DJNZ	 BITCOUNT,READ_BITS	 ;   8 
JB	 LASTREAD,ACKN		 ;  
 ;   ?
CLR	 SDA			 ;    ,
 ;   
ACKN:
LCALL	 SCL_HIGH		 ;  SCL  
 ;  
CLR	 SCL			 ;   
RET
; 
;
;
;     SCL    
;
;
SCL_HIGH:
SETB	 SCL			 ;  SCL  
JNB	 SCL,$			 ;    SCL   
RET
; 
;
;
;      
;
;
DELAY:
NOP				 ;  
RET
;
;
;    4 
;
;
DELAY_4:
NOP				 ; 
NOP
NOP
NOP
RET
;
;
;     ( )
;
;
SET_CLOCKM:
MOV	 R1,#2EH			 ; . R1   
 ;  \
MOV	 DPTR, #YEAR		 ;  \
 ;  .
LCALL	 WRITE_TEXT		 ;  \
 ;  
LCALL	 READ_BCD		 ; 
MOV	 @R1,A
DEC	 R1
MOV	 DPTR, #MONTH
LCALL	 WRITE_TEXT
LCALL	 READ_BCD
MOV	 @R1,A
DEC	 R1
MOV	 DPTR, #DAY
LCALL	 WRITE_TEXT
LCALL	 READ_BCD
MOV	 @R1,A
DEC	 R1
MOV	 DPTR, #DAYW
LCALL	 WRITE_TEXT
LCALL	 READ_BCD
ANL	 A, #7
MOV	 @R1,A
DEC	 R1
MOV	 DPTR, #HOUR
LCALL	 WRITE_TEXT
LCALL	 READ_BCD
MOV	 @R1,A
DEC	 R1
MOV	 DPTR, #MINUTE
LCALL	 WRITE_TEXT
LCALL	 READ_BCD
MOV	 @R1,A
DEC	 R1
MOV	 DPTR, #SECOND
LCALL	 WRITE_TEXT
LCALL	 READ_BCD
MOV	 @R1,A
MOV	 R1,#28H		 ;   
 ;    
LCALL	 SEND_START	 ;   START
MOV	 A,#DS1307W	 ;    DS1307 
LCALL	 SEND_BYTE
MOV	 A,#00H		 ;   
 ;   00H 
LCALL	 SEND_BYTE	 ; DS1307
SEND_LOOP:
MOV	 A,@R1		 ;    
 ;  ACC
LCALL	 SEND_BYTE	 
INC	 R1
CJNE	 R1,#2FH,SEND_LOOP	 ;    
 ;  DS1307
LCALL	 SEND_STOP	 ;   STOP
RET
;
;
;    RAM  DS1307 
;  BYTE
;
SET_RAM:
MOV	 R1,#08H		 ;  
 ; DS1307 RAM 
MOV	 DPTR, #TEXT5	 ;     
LCALL	 WRITE_TEXT ;
LCALL	 READ_BCD	 ;    
MOV	 BYTE,A		 ;    BYTE
LCALL	 SEND_START	 ;   START
MOV	 A,#DS1307W	 ;     DS1307
LCALL	 SEND_BYTE	 ;   
MOV	 A,#08H		 ;  DS1307   
 ; 
LCALL	 SEND_BYTE	 ; RAM   08H
SEND_LOOP2:
MOV	 A,BYTE		 ;    
 ;  RAM,
LCALL	 SEND_BYTE	 ;    08H  37H
INC	 R1
CJNE	 R1,#040H,SEND_LOOP2	 ;   RAM  
CALL	 SEND_STOP	 ;   STOP 
RET
;
;
;    RAM  DS1307  
;
;
SET_RAM_UNQ:
MOV	 R1,#08H		 ;   
 ;  RAM DS1307
LCALL	 SEND_START	 ;   START 
MOV	 A,#DS1307W	 ;    DS1307 
LCALL	 SEND_BYTE	 ;   
MOV	 A,#08H		 ;    DS1307 
 ; 
LCALL	 SEND_BYTE	 ; RAM   08H
SEND_LOOP3:
LCALL	 SEND_BYTE	 ;    08H  37H
INC	 R1
INC	 A
CJNE	 R1,#040H,SEND_LOOP3	 ;   RAM  
LCALL	 SEND_STOP	 ;   STOP 
RET
;
; 
;    RAM DS1307   Ũ   
;
;
READ_RAM:
MOV	 DPTR,#TEXT4	 ;     
LCALL	 WRITE_TEXT
MOV	 R1,#30H		 ;   RAM 
 ;   
MOV	 BYTECOUNT,#00H	 ; ר  56  RAM 
CLR	 LASTREAD	 ;     
LCALL	 SEND_START	 ;   START 
MOV	 A,#DS1307W	 ;    DS1307
LCALL	 SEND_BYTE
MOV	 A,#08H		 ;     08H 
 ; DS1307
LCALL	 SEND_BYTE
LCALL	 SEND_STOP	 ;   STOP
LCALL	 SEND_START	 ;   START 
MOV	 A,#DS1307R	 ;     DS1307 
LCALL	 SEND_BYTE
READ_LOOP2:
MOV 	 A,BYTECOUNT	 ;    
 ; 
CJNE	 A,#37H,NOT_LAST2
SETB	 LASTREAD	 ;     
 ;  LASTREAD
NOT_LAST2:
LCALL	 READ_BYTE 	 ;   
MOV	 @R1,A		 ;    
 ; 
INC	 R1		 ;     1
INC	 BYTECOUNT
MOV	 A,BYTECOUNT
CJNE	 A,#38H,READ_LOOP2	 ;    RAM DS1307
LCALL	 SEND_STOP		 ;   STOP 
LCALL	 DISP_RAM		 ;   
 ;  
JNB	 RI,$			 ;     
CLR	 RI
RET
;
;
;     RAM    
;
;
DISP_RAM:
MOV	 R1,#30H		; RAM  
;
MOV	 BITCOUNT,#00H
MOV	 DPTR,#TEXT6	;  
LCALL	 WRITE_TEXT
DISP_ADDR:
LCALL	 DISP_LOC	;   
;    RAM 
DIS_LOOP:
MOV	 A,@R1		 ;   RAM ͨ
 ;   
LCALL	 WRITE_BCD	 ;    BCD 
 ; 
INC	 R1
INC	 BITCOUNT
MOV	 A,#20H		 ;    
LCALL	 WRITE_DATA
MOV	 A,BITCOUNT
CJNE	 A,#08H,DIS_LOOP	 ;    8 
 ; 
MOV	 BITCOUNT,#00H
MOV	 DPTR,#TEXT3	 ; CR,LF
LCALL	 WRITE_TEXT
CJNE	 R1,#68H,DISP_ADDR	 ;    56 
 ; RAM
RET
; ;
;
;       RAM
;
;
DISP_LOC:
MOV	 A,R1		;  HEX 
;  
ADD	 A, #28H		;    DS1307 RAM
LCALL	 WRITE_BCD	;    
MOV	 A,#20H	 	;    DS1307 RAM
LCALL	 WRITE_DATA
MOV	 A,#20H
LCALL	 WRITE_DATA
MOV	 A,#20H
LCALL	 WRITE_DATA
RET
;
;
;          
;  
;
;
READ_CLOCK:
MOV	 DPTR,#TEXT4	 ;    
LCALL	 WRITE_TEXT
READ_AGAIN:
MOV	 R1,#28H		 ;    
 ;  RAM
MOV	 BYTECOUNT,#00H	 ; ר  8  
 ; 
CLR	 LASTREAD	 ;     
LCALL	 SEND_START	 ;   START
MOV	 A,#DS1307W	 ;     00H
 ; DS1307
LCALL	 SEND_BYTE
MOV	 A,#00H
LCALL	 SEND_BYTE
LCALL	 SEND_STOP	 ;   STOP
LCALL	 SEND_START	 ;   START
MOV	 A,#DS1307R	 ;     DS1307
LCALL	 SEND_BYTE
READ_LOOP:
MOV 	A,BYTECOUNT	 ;    
 ; 
CJNE	 A,#07H,NOT_LAST
SETB	 LASTREAD	 ;     
NOT_LAST:
LCALL	 READ_BYTE	 ;   
MOV	 @R1,A		 ;     
 ; 
MOV	 A,BYTECOUNT	 ;  
 ;  
CJNE	 A,#00H,NOT_FIRST
CLR	 OSC		 ;   OSC 
MOV	 A,@R1		 ;     ACC
JNB	 ACC.7,NO_OSC	 ;    7 = 0
SETB	 OSC		 ;   OSC  7 = 1
CLR	 ACC.7		 ;   7  
MOV	 @R1,A		 ;     
NO_OSC:
NOT_FIRST:
INC	 R1		 ;   ר  1
INC	 BYTECOUNT
MOV	 A,BYTECOUNT
CJNE	 A,#08H,READ_LOOP	 ;    
 ; 
LCALL	 SEND_STOP		 ;   STOP
LCALL	 DISP_CLOCK		 ;  / 
 ;  
JNB	 RI,READ_AGAIN		 ;    
 ;   
CLR	 RI
RET
;
;
;         
;  
;
;
DISP_CLOCK:
MOV	 DPTR,#TEXT1		 ; :
LCALL	 WRITE_TEXT
MOV	 R1,#2DH			 ; 
MOV	 A,@R1
LCALL	 WRITE_BCD
MOV	 A,#/
LCALL	 WRITE_DATA
MOV	 R1,#2CH			 ; 
MOV	 A,@R1
LCALL	 WRITE_BCD
MOV	 A,#/
LCALL	 WRITE_DATA
MOV	 R1,#2EH ; YEAR
MOV	 A,@R1
LCALL	 WRITE_BCD
MOV	 A,#09H			 ; 
LCALL	 WRITE_DATA
MOV	 DPTR,#TEXT2		 ; :
LCALL	 WRITE_TEXT
MOV	 R1,#2AH			 ; 
MOV	 A,@R1
LCALL	 WRITE_BCD
MOV	 A,#3AH			 ; 
LCALL	 WRITE_DATA
MOV	 R1,#29H			 ; 
MOV	 A,@R1
LCALL	 WRITE_BCD
MOV	 A,#3AH			 ; 
LCALL	 WRITE_DATA
MOV	 R1,#28H			 ; 
MOV	 A,@R1
LCALL	 WRITE_BCD
RET
;
;
;       OSC
;
;
OSC_CONTROL:
LCALL	 SEND_START		 ;   START
MOV	 A,#DS1307W		 ;     00H 
 ; DS1307
LCALL	 SEND_BYTE
MOV	 A,#00H
LCALL	 SEND_BYTE
SETB	 LASTREAD		 ;     
 ;   
LCALL	 SEND_STOP		 ;   STOP
LCALL	 SEND_START		 ;   START
MOV	 A,#DS1307R		 ;     DS1307
LCALL	 SEND_BYTE
LCALL	 READ_BYTE		 ;   
CLR	 ACC.7			 ;  OSC
JNB	 OSC,OSC_SET
SETB	 ACC.7			 ;  OSC   OSC
 ;   
OSC_SET:					 ;  
PUSH ACC			 ;     
LCALL	 SEND_STOP		 ;   STOP 
LCALL	 SEND_START		 ;   START 
MOV	 A,#DS1307W		 ;     00H 
 ; DS1307
LCALL	 SEND_BYTE
MOV	 A,#00H
LCALL	 SEND_BYTE
POP	 ACC			 ;    
 ;   
LCALL	 SEND_BYTE		 ; OSC DS1307
LCALL	 SEND_STOP
RET
;
;
;     SQW  1
;
;
SQW_CONTROL_1HZ:
LCALL	 SEND_START		 ;   START 
MOV	 A,#DS1307W		 ;     07H
 ; DS1307
LCALL	 SEND_BYTE
MOV	 A,#07H
LCALL	 SEND_BYTE
MOV	 A,#90H			 ; SQW/OUT  1HZ
JNB	 SQW,SQW_SET		 ;    SQW = 1
MOV	 A,#80H			 ;  SQW/OUT 
SQW_SET:
LCALL	 SEND_BYTE
LCALL	 SEND_STOP
RET
;
;
;     SQW  4
;
;
SQW_CONTROL_4KHZ:
LCALL	 SEND_START		 ;   START
MOV	 A,#DS1307W		 ;     07H 
 ; DS1307
LCALL	 SEND_BYTE
MOV	 A,#07H
LCALL	 SEND_BYTE
MOV	 A,#91H			 ; SQW/OUT  1
JNB	 SQW,SQW_SET1		 ;    SQW = 1
MOV	 A,#80H			 ;  SQW/OUT
SQW_SET1:
LCALL	 SEND_BYTE
LCALL	 SEND_STOP
RET
;
;
;     SQW  8
;
;
SQW_CONTROL_8KHZ:
LCALL	 SEND_START		 ;   START 
MOV	 A,#DS1307W		 ;     07H 
 ; DS1307
LCALL	 SEND_BYTE
MOV	 A,#07H
LCALL	 SEND_BYTE
MOV	 A,#92H			 ; SQW/OUT  1
JNB	 SQW,SQW_SET2		 ;    SQW = 1
MOV	 A,#80H			 ;  SQW/OUT
SQW_SET2:
LCALL	 SEND_BYTE
LCALL	 SEND_STOP
RET
;
;
;     SQW  32
;
;
SQW_CONTROL_32KHZ:
LCALL	 SEND_START		 ;   START
MOV	 A,#DS1307W		 ;     07H
 ; DS1307
LCALL	 SEND_BYTE
MOV	 A,#07H
LCALL	 SEND_BYTE
MOV	 A,#93H			 ; SQW/OUT  1
JNB	 SQW,SQW_SET3		 ;    SQW = 1
MOV	 A,#80H			 ;  SQW/OUT
SQW_SET3:
LCALL	 SEND_BYTE
LCALL	 SEND_STOP
RET
;
;
;      
;
;
TRIGGER:
CLR	 TRIG
SETB	 TRIG
LCALL	 DELAY_4
CLR	 TRIG
RET
;
;
;           BCD 
;
;    : 1,2,3...9,A,B,C,D,E,F
;
READ_BCD:
MOV	 R0,#0		 ;  R0
BCD_LOOP:
LCALL	 READ_DATA	 ;    
LCALL	 WRITE_DATA	 ;     
CJNE	 A, #0DH, BCD	 ;  CR
MOV	 A,R0		 ;  R0  ACC  
RET			 ;  
BCD:
ADD	 A,#30H		 ;   
 ;  
JNB	 ACC.4,DIGIT	 ;    AF
ADD	 A,#07H		 ;   AF   7
DIGIT:
ANL	 A,#0FH		 ;    47
ANL	 0,#0FH 		 ; 
XCH	 A,R0		 ;   R0  ACC
SWAP	 A 		 ;   ACC
ORL	 A,R0		 ;   03 R0  ACC
MOV	 R0,A		 ;  ACC  R0
SJMP	 BCD_LOOP	 ;    CR 
;
;
;      
;
;
WRITE_BCD:
PUSH	 ACC		 ;  ACC  
SWAP	 A 		 ;   ACC 
ANL	 A,#0FH		 ;   47
ADD	 A,#07H		 ;  7  ACC  
 ;  ASCII HEX
JNB	 ACC.4,	LESSNINE 	;    9
; 08
CJNE	 A,#10H,NOTNINE		;    9
; AF
LESSNINE:
ADD	 A,#07H			 ;  7  09
NOTNINE:
ADD	 A,#30H			 ;  30   
 ;   ASCII
LCALL	 WRITE_DATA		 ;    
POP	 ACC			 ;  ACC  
ANL	 A,#0FH			 ;     
 ;  
ADD	 A,#07H
JNB	 ACC.4,NINE2
CJNE	 A,#10H,NOTNINE2
NINE2:
ADD	 A,#07H
NOTNINE2:
ADD	 A,#30H
LCALL	 WRITE_DATA
RET
;
;
READ_DATA:
JNB	 RI,READ_DATA		 ;    RI=0
CLR	 RI 
MOV	 A,SBUF			 ;   
 ;   
RET
;
;
WRITE_DATA:
JNB	 TI,WRITE_DATA		 ;    TI=0 
CLR	 TI 
MOV	 SBUF,A			 ;  
 ;   
RET
;
;
WRITE_TEXT:
PUSH	 ACC			 ;   ACC  
WT1:
CLR A				 ;  ACC
MOVC	 A,@A+DPTR		 ;     
 ;  ACC
INC	 DPTR			 ;   1  
CJNE	 A,#0,WT2		 ;   
 ;   0
POP	 ACC
 ;  ACC
RET				 ;    
WT2:
LCALL	 WRITE_DATA		 ;    
 ;  
SJMP	 WT1
;
;
;  ,     
;  
;
;
YEAR:
DB	 CR,LF,YEAR (0  99) : ,0
MONTH:
DB	 CR,LF,MONTH (1  12) : ,0
DAY:
DB	 CR,LF,DAY OF MONTH : ,0
DAYW:
DB	 CR,LF,DAY OF WEEK : ,0
HOUR:
DB	 CR,LF,HOUR (0  23) : ,0
MINUTE:
DB	 CR,LF,MINUTE (0  59) : ,0
SECOND:
DB	 CR,LF,SECOND (0  59) : ,0
TRIER:
DB	 CR,LF,PRESS ANY KEY TO SET THIS TIME ,CR,LF,0
TEXT0:
DB	 CR,LF,******* DALLAS SEMICONDUCTOR ******* 
DB	 CR,LF, DS1307 TEST PROGRAM ,CR,LF
DB	 CR,LF,PLEASE CHOOSE AN OPTION TO CONTINUE 
DB	 CR,LF, 
DB	 CR,LF,A. SET TIME(MANUAL) B. SET RAM 
DB	 CR,LF,C. READ DATE/TIME D. READ RAM 
DB	 CR,LF,E. OSC ON F. OSC OFF 
DB	 CR,LF
DB	 CR,LF,G. SQW/OUT ON1HZ H. SQW/OUT ON4KHZ
DB	 CR,LF,I. SQW/OUT ON8KHZ J. SQW/OUT ON32KHZ
DB	 CR,LF
DB	 CR,LF,K. SQW/OUT OFF
DB	 CR,LF,L. WRITE RAM UNIQUE PATTERN 
DB	 CR,LF,ESC. TO QUIT ,0 TEXT1:
DB	 CR,DATE: ,0
TEXT2:
DB	 TIME: ,0
TEXT3:
DB	 CR,LF,0
TEXT4:
DB	 CR,LF,PRESS ANY KEY TO RETURN
DB	 C R,LF,0
TEXT5:
DB	 CR,LF,ENTER THE BYTE VALUE WHICH WILL FILL THE RAM
DB	 CR,LF,0
TEXT6:
DB	 CR,LF,RAM RAM
DB	 CR,LF,ADDR DATA
DB	 CR,LF,
DB	 CR,LF,0
;******************************************
;****   *****************
;******************************************
END





- - DOC - - - - - - -



 
? | | |
. : +7 (495) 514 4110. e-mail:info@eust.ru
©1998-2016