Hardware description
A.5 System resources
SIMATIC IPC BX-39A
Operating Instructions, 07/2022, A5E50715883-AA
101
A.5.2.3
Battery status register (read only)
The status of the CMOS battery (two levels) can be read out via the battery status register as
follows.
Note:
Always use read-modify-write operations so that reserved bits are not overwritten. This
can lead to impairment of the functionality of the device.
Procedure
1.
Write 06h into the GPIO port select register (280h) to select the relevant register (GPIO6).
2.
To get information about the battery status, read the desired value from the GPIO6 data
register (282h).
Meaning of the bits
Battery status register (read, address 282h)
Bits
Meaning of the bits
7
6
5
4
3
2
1
0
x
Reserved
x
Reserved
x
Reserved
0
0
CMOS battery capacity is still sufficient
0
1
CMOS battery capacity is exhausted (remain-
ing capacity is sufficient for approx. one
month)
1
1
CMOS battery is empty or missing
x
Reserved
x
Reserved
x
Reserved