ZyXEL U-1496S Plus User Guide - Page 42

Sedecimal Value

Page 42 highlights

to set only bit 'b' of S-Register 'r' to value 'n' without affecting other bits in this S-Register. When using ATSr = n, you need to do a conversion to or from the binary number to find out the bits. For example, if you want to set S38 bit 3 to 1 for a specific application: Do an ATS38 = ? to find the original value. Convert it to binary: Bit Binary Value Decimal Value Sedecimal 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 We Use To set a bit to '1', do a logic OR with the value: 10001000 OR 00001000 10001000 136 $88 01000000 8 $08 00001000 136 $88 01001000 64 $40 8 $08 72 $48 To set a bit to '0', do a logic NOT AND with the value: NOT AND 00001000 11110111 10001000 10000000 8 $08 00001000 247 $F7 11110111 136 $88 01000000 128 $80 01000000 8 $08 247 $F7 64 $40 64 $40 Using the decimal value, do an ATS38 = n to set the register. Using ATS38.3 = 1 to do the same is much easier. Note: If you enter values from the U-1496 front panel, use the sedecimal (hex) values. S-REGISTER DESCRIPTIONS Following are the descriptions for each S-Register. In most bit mapped S-Registers, the default bit value is 0 which is the normal situation and only the non-default situation is described. Some reserved bits are for factory use and the user should not change them. S0 Default= 0; Sets the number of rings on which the modem will answer automatically. S0=0 disables autoanswer. The range of rings is 0 to 255. (Country specific) S1 Default=0; Counts the incoming rings and stores the value to this register. User can read but should not change this value. S2 Default=43; S2 holds the ASCII decimal value for Escape Sequence character. Default character is "+". A value of 128-255 disables the escape code. S3 Default=13; Holds the ASCII decimal value of Carriage Return character. S4 Default=10; Holds the ASCII decimal value of Line Feed character.

  • 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

to set only bit 'b' of S-Register 'r' to value 'n' without affecting other bits in this S-Register.
When using ATSr = n, you need to do a conversion to or from the binary number to find out the
bits. For example, if you want to set S38 bit 3 to 1 for a specific application:
Do an ATS38 = ? to find the original value.
Convert it to binary:
Bit
Binary Value
Decimal Value
Sedecimal Value
We Use
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
To set a
bit
to '1', do a logic OR with the value:
10001000
136
$88
01000000
64
$40
OR
00001000
8
$08
00001000
8
$08
10001000
136
$88
01001000
72
$48
To set a bit to '0', do a logic NOT AND with the value:
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 decimal value, do an ATS38 = n to set the register.
Using ATS38.3 = 1 to do the same is much easier.
Note: If you enter values from the U-1496 front panel, use the sedecimal (hex) values.
S-REGISTER DESCRIPTIONS
Following are the descriptions for each S-Register. In most bit mapped S-Registers, the default
bit value is 0 which is the normal situation and only the non-default situation is described. Some
reserved bits are for factory use and the user should not change them.
S0
Default= 0;
Sets the number of rings on which the modem will answer automatically.
S0=0 disables autoanswer. The range of rings is 0 to 255. (Country specific)
S1
Default=0;
Counts the incoming rings and stores the value to this register. User can
read but should not change this value.
S2
Default=43;
S2 holds the ASCII decimal value for Escape Sequence character.
Default character is "+". A value of 128-255 disables the escape code.
S3
Default=13;
Holds the ASCII decimal value of Carriage Return character.
S4
Default=10;
Holds the ASCII decimal value of Line Feed character.