Mitsubishi DS5000TK Uživatelská příručka Strana 155

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 174
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 154
USER’S GUIDE
050396 154/173
155
APPLICATION: USING THE DS5000T RTC
(DS1215 EXAMPLE)
The DS5000T and DS2250T use the DS1215 Phantom
Time Chip RTC. This clock is basically a serial device
that uses a single address bit as an input and a single
data bus bit as an output. The following program is an
example of how to use this clock. It provides a serial port
interface allowing a user to set and read the time of day.
Note that the serial port setup expects 9600 baud com-
munication and an 11.0592 MHz crystal. If a user’s
application uses different values, this setup must be
modified. All of the timekeeping subroutines can be
incorporated into a user’s program by removing the
command interface and serial port setup.
Programmer’s note: In the Write subroutine at the end
of this example program, there is one unusual state-
ment. The action of writing a byte to the RTC is actually
done using a read instruction (MOVX A, @DPTR). This
is because a write instruction would write to the RAM
under CE2
if one were present. Since the DS1215 is
configured to use A2 as a write enable and A0 as the
data bit, this instruction is acceptable.
; Program DEMODS5T
;
; This program responds to commands received over the serial
; I/O port to send or receive the date/time information between
; the DS1215 in the DS5000T and the serial I/O port. This allows
; an external program or user to access the date/time information.
;
; The program first sets up the serial port for transmission at
; 9600 baud with eight data bits, no parity, and one stop bit.
;
; Next, the program begins execution of a loop waiting for an
; instruction from the serial port. Two valid instructions, R and W,
; are recognized.
;
; Receipt of the R character causes the DEMODS5T program
; to read eight bytes of date/time information from the DS1215
; and send them out over the serial port.
;
; Receipt of the W character causes the DEMODS5T program
; to wait for eight bytes of date/time information from the serial
; port and write them to the DS1215.
;
; Any other byte received from the serial port is incremented and
; then sent back out to the serial port.
;
;
PCON equ 87H
MCON equ 0C6H
TA equ 0C7H
;
cseg at 0
sjmp START
cseg at 30H
START: ;Initialization.
mov TA, #0AAH ;Timed
mov TA, #55H ;access.
mov PCON, #0 ;Reset watchdog timer.
mov MCON, #0F8H ;Turn off CE2 for memory access.
Zobrazit stránku 154
1 2 ... 150 151 152 153 154 155 156 157 158 159 160 ... 173 174

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

Žádné komentáře

Sim2 D80E Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Projektoren Sim2 D80E.
Wir stellen 1 PDF-Handbücher Sim2 D80E zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung






Weitere Produkte und Handbücher für Projektoren Sim2

Modelle Dokumententyp
C3X Bedienungsanleitung   Sim2 C3X Manual del usuario, 32 Seiten
C3X Bedienungsanleitung   Sim2 C3X Manuel d'utilisation, 32 Seiten
C3X Bedienungsanleitung   Sim2 C3X Manuale d'uso, 34 Seiten
C3X1080 Bedienungsanleitung   Sim2 C3X1080 User Manual, 29 Seiten
C3X Bedienungsanleitung   Sim2 C3X Benutzerhandbuch, 32 Seiten
C3X1080 Bedienungsanleitung   Sim2 C3X1080 Manuale d'uso, 32 Seiten
HT5000E Bedienungsanleitung   Sim2 HT5000E Manuale d'uso, 36 Seiten
HT5000E Bedienungsanleitung   Sim2 HT5000E Manuel d'utilisation, 35 Seiten
HT5000E Bedienungsanleitung   Инструкция по эксплуатации Sim2 HT5000E, 34 Seiten
HT5000E Bedienungsanleitung   Sim2 HT5000E Manual del usuario, 35 Seiten
HT3000 Host Bedienungsanleitung   Sim2 HT3000 Host Manuel d'utilisation, 30 Seiten
HT3000 Bedienungsanleitung   Sim2 HT3000 Manuale d'uso, 35 Seiten
HT3000E Bedienungsanleitung   Sim2 HT3000E Manuel d'utilisation, 33 Seiten
HT3000E Bedienungsanleitung   Sim2 HT3000E Manuale d'uso, 35 Seiten
HT380 Bedienungsanleitung   Sim2 HT380 Manuel d'utilisation, 33 Seiten
HT300 Bedienungsanleitung   Sim2 HT300 User Manual, 10 Seiten
HT200 DMF Bedienungsanleitung   Sim2 HT200 DMF User Manual, 22 Seiten
HT300 Plus Bedienungsanleitung    Sim2 HT300 Plus Manuale d'uso, 6 Seiten
HT300 E-Link Bedienungsanleitung   Sim2 HT300 E-Link User Manual, 40 Seiten
HT305 E Bedienungsanleitung   Sim2 HT305 E Manuale d'uso, 40 Seiten