Hardware Reference
In-Depth Information
:STATus:OPERation:ENABle?
:STATus:QUEStionable[:EVENt]?
:STATus:QUEStionable:CONDition?
:STATus:QUEStionable:ENABle
:STATus:QUEStionable:ENABle?
:STATus:PRESet
Im Beispielgerät ist keiner dieser Befehle realisiert, deswegen muss SCPI = 0 gesetzt
sein.
Für die Einträge in den Bitmaps USB488 Device Capabilities und USB488 Interface
Capabilities gelten zusätzlich folgende Regeln [USB488: 4.2.2]:
1. Wenn DT=1 ist, dann muss Trigger=1 sein (im Beispielgerät beides 0).
2. Wenn RL=1 ist, dann muss REN=1 sein (im Beispielgerät realisiert).
3. Wenn 488.2 =1 ist, dann muss SR=1 sein (im Beispielgerät realisiert).
4. Wenn SCPI=1 ist, dann muss SR=1 und 488.2=1 sein (im Beispielgerät ist
SCPI=0).
;******************************************************************************
; USBTMC Request: GET_CAPABILITIES
;******************************************************************************
; References: USBTMC Chapter 4.2.1.8, USB488 Chapter 4.2.2
GET_CAPABILITIES
movlw UPPER CapabilitiesDescriptor
movwf TBLPTRU
movlw HIGH CapabilitiesDescriptor
movwf TBLPTRH
movlw LOW CapabilitiesDescriptor
movwf TBLPTRL
call IN_Descriptor
; replace USB488 InterfaceCapabilities and DeviceCapabilities data fields with
respective EEPROM contents
movlw 0x86
movff WREG,EEADR ;pointer to EEPROM USB488 IntCap data field
; load FSR0 with Control IN offset address for IntCap
movlw controlINlow+.14
movwf FSR0L
movlw controlINhigh
movwf FSR0H
call ReadEepromInc
movff EEDATA,POSTINC0
call ReadEepromInc
movff EEDATA,INDF0 ;this is the USB488 DevCap data field
call
Transmit_IN_Descriptor
bra
transtest_over_ctl_out
Search WWH ::




Custom Search