IBM 4613 Manual Do Utilizador

Página de 104
SurePOS 100 Technical Reference 
 
 
 
 
 
 
 
Page 24 of 104 
 
7.0 System 
Programming 
Considerations 
7.1 Identification 
via 
software 
The system vital product can be obtained from the SMBIOS.  Information which can be parsed from SMBIOS 
includes (but is not limited to):  
• Machine 
Type 
Model 
• Serial 
Number 
• UUID 
 
7.2 Control 
Registers 
The following are the only control registers supported on SurePOS 100, and are compatible with the 
SureOne 
models P80 and P81.
 
 
SurePOS 100 has a custom designed integrated circuit to manage COM port assignments, keylock reads, and 
cash drawer configuration. The SurePOS 100 has two I/O ports located at I/O addresses 240h and 241h. Address 
240h is the index port and address 241h is the data port. A register index value is written to address 240h, then 
address 241h is read from or written to in order to actually pass data to or from the control registers. 
 
Usage examples: 
 
To read index registers 10h and 11h. 
Write the value 10h to I/O address 240h. 
Read I/O address 241h. The read value is the value of index register 10h. 
Write the value 11h to I/O address 240h. 
Read I/O address 241h. The read value is the value of index register 11h. 
 
To write the index register at 12h with 55h. 
Write the value 12h to I/O address 240h. 
Write the value 55h to I/O address 241h. 
 
Programs that access control registers must insure that the index register at I/O address 240h is written to 00h at 
the end of any I/O operation to prevent register contents from being changed accidentally by runaway code.  
7.2.1 Definitions: 
 
Keylock Position 
INDEX 26H: 
Read 
7 6 5 4 3 2 1 0 Function 
------------------------------------------------------------------- 
x x x x x 1 1 1 Position 1 (the locked position shown on the cover) 
x x x x x 1 1 0 Position 2 
x x x x x 1 0 1 Position 3 
 
Control register S 
Cash drawer setup