ZyXEL U-1496S Plus User Guide - Page 42
Sedecimal Value
View all ZyXEL U-1496S Plus manuals
Add to My Manuals
Save this manual to your list of manuals |
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.