Download VM6068 - VTI Instruments
Transcript
VXI Technology, Inc. SERial:RECeive:HMASk Purpose Sets a receive channel’s HDLC address mask Type Setting Command Syntax [SYSTem:][COMMunicate:]SERial[<channel>]:RECeive:HMASk <mask> Command Parameters <channel> = 1 | 2 | 3 | 4 (default is Channel 1) <mask> = 0 to 65535 Reset Value N/A - All channels set to UART mode. When a channel is set to HDLC mode, the mask is set to 0. Query Syntax [SYSTem:][COMMunicate:]SERial[<channel>]:RECeive:HMASk? Query Parameters <channel> = 1 | 2 | 3 | 4 (default is Channel 1) Query Response <mask> = ASCII number from 0 to 65535 Description This command is only valid in HDLC mode. When issued in another mode an error is generated. In HDLC mode, each channel has five 16-bit registers for address recognition - one mask register and four address registers. This command deals with the mask register. As a frame is received the address is checked against the four address registers and then masked by the mask register. A one in the mask register represents a bit position for address comparison. A zero in the mask register represents a bit position that is not compared. Upon an address match, the address and data are stored in the buffer. If the address does not match, nothing is stored in the buffer. Note: For 8-bit addresses, the upper 8 bits of the mask register should be set to 0s. Only the low order 8 bits of the mask register and address registers are then used for address matching. If the mask register is set to all 0s then all addresses are recognized. All address registers are used for address comparison all the time. If the user wants only one address to be recognized, all address registers must be set to that address. Note: The least significant byte of an address is received first. Example: A frame that begins with $7E (Flag), $68, $AA, ... is received. To recognize this as a 16-bit address, the mask should be set to $FFFF and one of the address register should be set to $AA68. To recognize this as an 8-bit address, the mask register should be set to $00FF and one of the address register should be set to $XX68 (the upper 8 bits don’t matter). Examples Related Commands 98 Command / Query SER3:REC:HMAS 255 Response (Description) SER3:REC:HMAS? 255 SERial:RECeive:HADDress VM6068 Command Dictioinary