
Configuring an M1 CPU with Modsoft
870USE10110 July 2004 191
Setting the
Status Bits
The control register (4x) uses its four most significant bits to report status:
Setting the Time
Bits
The following table shows how the registers handle time-of-day clock data, where
register 4x is the first register in the block reserved for the clock.
Procedure Follow the steps in the table below to set the register values for the time-of-day
clock.
Control Register
1514131211109876543210
1 = error
1 = All clock values have been set
1 = Clock values are being read
1 = Clock values are being set
Register Data Content
4x The control register
4x + 1 Day of the week (Sunday = 1, Monday = 2, etc.)
4x + 2 Month of the year (Jan = 1, Feb = 2, etc.)
4x + 3 Day of the month (1...31)
4x + 4 Year (00...99)
4x + 5 Hour in military time (0...23)
4x + 6 Minute (0...59)
4x + 7 Second (0...59)
Step Action
1 Set the correct date and time in registers 4x + 1 through 4x + 7.
Example: To set the clock for Thursday, April 9, 1998 at 4:17:00, set the following
values in the registers:
4x + 1 54x + 2 44x + 3 94x + 4 984x + 5 44x + 6 174x + 7 00
2 Load the value 8000H in register 4x to write the data to the clock.
Komentáře k této Příručce