ZyXEL Communications 2864 Series User Manual page 88

Zyxel communications modem user's manual 2864
Table of Contents

Advertisement

For example, if you want to set S38 bit 3 to 1 for a specific application, you may
either use ATS38.3=1 (simple) or use the following method (difficult):
Note:
The values used in the example below differ from the actual values
in the S-register and are used for demonstration purposes only.
Read the value from S38 using ATS38?.
Convert it to its binary value, using the following weight table.
Bit
Binary value
0
00000001
1
00000010
2
00000100
3
00001000
4
00010000
5
00100000
6
01000000
7
10000000
To set bit 3 to 1 (binary), do a logic OR operation with the value.
Operation
Example 1
Binary
10001000
OR
00001000
10001000
To set bit 3 to 0 (binary), you must invert the value using a logic NOT oper-
ation and then do an logic AND operation.
NOT
00001000
11110111
AND
10001000
10000000
Using the result decimal value, do an ATS38=n to set the register.
Note:
If you enter values from the LCD front panel, use the hexadecimal
(hex) values.
Decimal value
1
2
4
8
16
32
64
128
Example 2
Dec. Hex. Binary
136
$88
01000000
8
$08
00001000
136
$88
01001000
8
$08
00001000
247
$F7
11110111
136
$88
01000000
128
$80
01000000
8–2
Hexadecimal value
$01
$02
$04
$08
$10
$20
$40
$80
Dec. Hex.
64
$40
8
$08
72
$48
8
$08
247
$F7
64
$40
64
$40

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Elite 2864iElite 2864lElite 2864Elite 2864iu

Table of Contents