
8–2
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):
•
Read the value from S38 using
ATS38?
.
•
Convert it to its binary value, using the following weight table.
•
To set bit 3 to 1 (binary), do a logic
OR
operation with the value.
•
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.
•
Using the result decimal value, do an
ATS38=n
to set the register.
Note:
The values used in the example below differ from the actual values
in the S-register and are used for demonstration purposes only.
Bit
Binary value
Decimal value
Hexadecimal value
0
00000001
1
$01
1
00000010
2
$02
2
00000100
4
$04
3
00001000
8
$08
4
00010000
16
$10
5
00100000
32
$20
6
01000000
64
$40
7
10000000
128
$80
Operation
Example 1
Example 2
Binary
Dec.
Hex.
Binary
Dec.
Hex.
10001000
136
$88
01000000
64
$40
OR
00001000
8
$08
00001000
8
$08
10001000
136
$88
01001000
72
$48
NOT
00001000
8
$08
00001000
8
$08
11110111
247
$F7
11110111
247
$F7
AND
10001000
136
$88
01000000
64
$40
10000000
128
$80
01000000
64
$40
Note:
If you enter values from the LCD front panel, use the hexadecimal
(hex) values.
Содержание 2864 Series
Страница 1: ...i 2864 Series Modem User s Manual Document No 8406 Rev 1 0 ZyXEL COMMUNICATIONS CORPORATION...
Страница 8: ...viii...
Страница 26: ...1 10...
Страница 42: ......
Страница 50: ...3 14...
Страница 66: ...5 10...
Страница 110: ...8 24...
Страница 128: ...10 6...
Страница 134: ...11 6...
Страница 148: ...13 10...
Страница 204: ...16 28...
Страница 224: ...21 4...
Страница 230: ...23 4...
Страница 234: ...24 4...
Страница 246: ...A 2...
Страница 248: ...B 2...
Страница 252: ...D 2...
Страница 256: ...E 4...
Страница 267: ......