Инструкция для ZYXEL omni.net LCD

(скачивание инструкции бесплатно)
Формат файла: PDF
Доступность: Бесплатно как и все руководства на сайте. Без регистрации и SMS.
Дополнительно: Чтение инструкции онлайн
background image

Technical Reference for ZyXEL omni.net series 

 

B-3

bits in the S-register simultaneously, the second command lets you change bit 'm' without affecting 

other bits in this S-register. When using ATS

r

=

n

, you need to do a conversion to or from the binary 

number to find out which bits you manipulate. 

For example, if you want to set S38 bit 3 to 1 for a specific application, you may either use the 

straight-forward command ATS38b3=1 or use the following ATS38=

command, as explained in 

the following example: 

1. 

Read the value from S38 using ATS38? 

 

NOTE: 

The values used in the example below differ from the actual 

values in the S-register and are used for demonstration purposes only.

 

 

2. 

Convert it to binary, using the following weight table: 

Bit 

Binary value 

Decimal value 

Hexadecimal value 

0 00000001 

 

$01 

1 00000010 

 

$02 

2 00000100 

 

$04 

3 00001000 

 

$08 

4 00010000 

 

16 

$10 

5 00100000 

 

32 

$20 

6 01000000 

 

64 

$40 

7 10000000 

 

128 

$80 

 

3. 

To set bit 3 to 1 (binary), do a logic OR operation with the value. 

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 

 

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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
Оглавление инструкции

Document Outline