ZyXEL Elite 2864I User Guide - Page 88
ATS38.3=1, ATS38?, ATS38=n
View all ZyXEL Elite 2864I manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 88 highlights
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 Decimal value 1 2 4 8 16 32 64 128 Hexadecimal value $01 $02 $04 $08 $10 $20 $40 $80 • To set bit 3 to 1 (binary), do a logic OR operation with the value. Operation OR Example 1 Binary 10001000 00001000 10001000 Example 2 Dec. Hex. Binary 136 $88 01000000 8 $08 00001000 136 $88 01001000 Dec. Hex. 64 $40 8 $08 72 $48 • To set bit 3 to 0 (binary), you must invert the value using a logic NOT operation and then do an logic AND operation. 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 • 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. 8-2