Maxim-integrated Secure Microcontroller Uživatelský manuál Strana 171

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 187
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 170
Secure Microcontroller User’s Guide
171 of 187
Application: Using the DS2251T/DS2252T RTC
The RTC of the DS2251T or DS2252T is accessed in a parallel fashion like a RAM. The user simply
writes to the registers to set the time and control functions. The following program is an example of how
to use this clock. It provides a serial port interface allowing an user to set and read the time of day. Note
that the serial port setup expects 9600-baud communication and an 11.0592MHz crystal. If a user’s
application uses different values, this setup must be modified. All of the timekeeping access is performed
in the code under Set Time and Tell Time. The remainder of this program concerns getting data in and out
of the serial port for display purposes and has nothing to do with timekeeper access.
;Program DS1283
;
; This program responds to commands received over the serial
; port to set the date and time information in the RTC
;
; The program first initializes the serial port for communication
; at 9600 baud with eight data bits, no parity, and one stop bit.
;
; After setting the date and time, the program begins execution
; of an infinite loop which sends back the date and time each
; time a character is received.
;
CR EQU 0DH
LF EQU 0AH
;
MCON EQU 0C6H
TA EQU 0C7H
CSEG AT 0
;
MOV TA, #0AAH ; Timed
MOV TA, #55H ; access.
MOV PCON, #0 ; Reset watchdog timer.
ANL MCON, #0FBH ; Turn off PES for memory access.
MOV P2, #0 ; Clear high byte of address.
; for clock access
;
MOV IE, #0
MOV TMOD, #20H ; Initialize the
MOV TH1, #0FAH ; serial port
MOV TL1, #0FAH ; for 9600
ORL PCON, #80H ; baud, with 11.0522MHz crystal.
MOV SCON, #52H
MOV TCON, #40H
;Messages
MOV DPTR, #TEXT0
LCALL TEXT_OUT
LCALL CHAR_IN
LCALL CHAR_OUT
PUSH ACC
MOV DPTR, #TEXT3
LCALL TEXT_OUT
POP ACC
ANL A, #5FH
CJNE A, #’Y’, TELL_TIME
;Set Time
CLR A
MOV R0, #0Bh
LCALL WBYTE ; Freeze the registers.
MOV DPTR, #YEAR
Zobrazit stránku 170
1 2 ... 166 167 168 169 170 171 172 173 174 175 176 ... 186 187

Komentáře k této Příručce

Žádné komentáře

Miele KM 2050 podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Płyty grzewcze Miele KM 2050.
Dostarczamy 1 pdf podręczników Miele KM 2050 do pobrania za darmo według typów dokumentów: Instrukcja Użytkownika






Więcej produktów i instrukcji dla Płyty grzewcze Miele

Modele Rodzaj dokumentu
KM 5773 Instrukcje Operacyjne   Miele KM 5773 Operating instructions, 40 strony
KM 523 Instrukcja Użytkownika    Montage- en gebruiksaanwijzing keramisch kookvlak KM 520 KM 523, 36 strony
G 611 Instrukcje Operacyjne   Miele G 611 Operating instructions, 44 strony
KM 547 Instrukcja Użytkownika   Geräteinformationen für Kochfelder / Kochmulden, 2 strony
KM-5600 Instrukcja Użytkownika   Mode d`emploi et notice de montage Plan de, 76 strony
KM 5813 Instrukcja Użytkownika   - MIELE CENTER NEUWIRTH, 64 strony
KM6379 Instrukcja Użytkownika    Gebruiks- en montageaanwijzing Keramische, 84 strony
KM 5940 Instrukcja Użytkownika   en montagehandleiding Inductiekookplaten KM 5940 / KM 5950, 48 strony
KM 87-2 Instrukcje Operacyjne   Miele KM 87-2 Operating instructions, 28 strony
KM 5676 Instrukcje Operacyjne   Miele KM 5676 Operating instructions, 44 strony
DA 249-4 Instrukcja Użytkownika   DA 249-4 de.vp - MIELE CENTER NEUWIRTH, 40 strony
CSAD 1300 Instrukcja Użytkownika   domino cs 1212-1, 1 strony
KM 2357 Instrukcja Użytkownika    Gebruiks- en montageaanwijzing Gaskookvlakken KM 2356 KM 2357, 56 strony
CS 1021 Instrukcja Użytkownika    Mode d`emploi et notice de montage Plan de cuisson au gaz CS [en] , 64 strony
KM 6351 Instrukcja Użytkownika   Mode d`emploi et notice de montage Plan de, 84 strony
KM 451 Instrukcje Operacyjne   Miele KM 451 Operating instructions [en] [es] , 36 strony
KM 3014 Instrukcja Użytkownika    Gebruiks- en montageaanwijzing Gaskookvlakken KM 3010 KM 3014, 56 strony
KM 3034 Instrukcja Użytkownika     Gebruiks- en montageaanwijzing Gaskookvlakken KM 3034 KM 3054, 64 strony
KM 2051 Instrukcja Użytkownika    Gebruiksaanwijzing Gaskookvlakken KM 2010, 52 strony
KM 6348 Instrukcja Użytkownika   Mode d`emploi et notice de montage Plans de, 80 strony