Configuring an M1 CPU with Modsoft

Setting the Time, Continued

Option 2

Go online and set the register values individually, using the following guidelines and

 

procedure for setting the status bits and setting the time bits. The CPU must be

 

running while you are setting the bits.

 

 

 

 

 

 

 

 

 

Setting the

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The control register (4x) uses its four most significant bits to report status:

 

 

Status Bits

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Control Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

14

13

12

11

 

10

9

8

 

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 = error

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 = All clock values have been set

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 = Clock values are being read

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 = Clock values are being set

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Setting the Time

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The following table shows how the registers handle time-of-day clock data, where

Bits

register 4x is the first register in the block reserved for the clock:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Continued on next page

870 USE 101 10 V.2

229

Page 229
Image 229
Schneider Electric Processor Adapter manual Running while you are setting the bits, Setting, Status Bits