Lenovo ThinkPad 560E TP 560Z Technical Reference Manual - Page 37

RT/CMOS RAM I/O Operations

Page 37 highlights

RT/CMOS RAM I/O Operations During I/O operations to the RT/CMOS RAM addresses, you should mask interrupts to prevent other interrupt routines from changing the RT/CMOS address register before data is read or written. After I/O operations, you should leave the RT/CMOS address and NMI mask register (X'0070') pointing to status register D (X'00D'). Attention The operation following a write to X'0070' should access X'0071'; otherwise, intermittent failures of the RT/CMOS RAM can occur. Writing to the RT/CMOS RAM requires the following: 1. Write the RT/CMOS RAM address to the RT/CMOS address and NMI mask register (X'0070'). 2. Write the data to the RT/CMOS data register (X'0071'). 3. Write the address, X'0F', to the RT/CMOS and NMI mask register; this leaves X'0070' pointing to the shutdown status byte (X'0F'). 4. Read address X'0071' to restore the RT/CMOS. Reading from the RT/CMOS RAM requires the following steps: 1. Write the RT/CMOS RAM address to the RT/CMOS and NMI mask register (X'0070'). 2. Read the data from the RT/CMOS data register (X'0071'). 3. Write the address, X'0F', to the RT/CMOS and NMI mask register; this leaves X'0070' pointing to the shutdown status byte (X'0F'). 4. Read address X'0071' to restore the RT/CMOS. ThinkPad 560Z System Board 2-19

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134

RT/CMOS RAM I/O Operations
During I/O operations to the RT/CMOS RAM addresses, you should
mask interrupts to prevent other interrupt routines from changing the
RT/CMOS address register before data is read or written.
After I/O
operations, you should leave the RT/CMOS address and NMI mask
register (X
'
0070
'
) pointing to status register D (X
'
00D
'
).
Attention
The operation following a write to X
'
0070
'
should access
X
'
0071
'
; otherwise, intermittent failures of the RT/CMOS RAM
can occur.
Writing to the RT/CMOS RAM requires the following:
1. Write the RT/CMOS RAM address to the RT/CMOS address and
NMI mask register (X
'
0070
'
).
2. Write the data to the RT/CMOS data register (X
'
0071
'
).
3. Write the address, X
'
0F
'
, to the RT/CMOS and NMI mask
register; this leaves X
'
0070
'
pointing to the shutdown status
byte (X
'
0F
'
).
4. Read address X
'
0071
'
to restore the RT/CMOS.
Reading from the RT/CMOS RAM requires the following steps:
1. Write the RT/CMOS RAM address to the RT/CMOS and NMI
mask register (X
'
0070
'
).
2. Read the data from the RT/CMOS data register (X
'
0071
'
).
3. Write the address, X
'
0F
'
, to the RT/CMOS and NMI mask
register; this leaves X
'
0070
'
pointing to the shutdown status
byte (X
'
0F
'
).
4. Read address X
'
0071
'
to restore the RT/CMOS.
ThinkPad 560Z System Board
2-19