You are on page 1of 20

GPIB

By S.Senthilmurugan Asst.Professor/ICE SRMUniversity.Chennai.

ParallelinterfacesinDAQ

GPIB(tutorialaccordingtoAgilentand NationalInstrumentssources) Parallelport Nonstandardinterfaces(seelectureson multifunctionpluginboards) Systemandcomputerbusses PCI,VXI,... (seelecturesonpluginboards)

History 1965HewlettPackarddesignsHPIBfor instrumentationsystems 1975HPIBbecomesIEEE488standard 1987IEEE488.2adopted;IEEE4881978 becomesIEEE488.11987 1992SCPISpecificationintroducedforIEEE488 instruments 1990IEEE488.2Standardrevised 1993NationalInstrumentsproposeshighspeed extensionstoIEEE488.1calledHS488

Basiccharacteristics Anyinstrumentcanbeused Eachinstruments(upto15)hasitsuniqueaddress withinrange031inbasicaddressingmode Linearorstarcableconfiguration


24/25wires 3typesofconnectors(AmphenolCHAMPorCinchSeries 57MICRORIBBONtype) Totallengthofcable20m,max.4mperinstrument

TTLlevels,negativelogic,drivers:3stateoropen collector(NDAC,NRFD,SRQ)

TypesofGPIBmessages

Communicationisbasedonvarious messages:
Devicedependentmessagesrelated(mainly)to theinstrumentmeasuringfunctions Interfacemessages(commandmessages commandsassomedevicedependantmessages accordingIEEE488.2)relatedtothe communication(interface)functions

Maincommunicationfunctions SystemControllerandActiveController controls communication,sendinterfacemessages,e.g. monitorsbusactivities,addresses(enables) instruments,etc. Listenerreceivesthedevicedependentmessages Talkersendsthedevicedependentmessages Simplesystemdoesnotneedcontroller thedevice workalwaysinthemodestalkonlyandlistenonly

InterfaceSignalsandLines
Databus(8lines)similarto anycomputerdatabus: commands/data Handshakinglines= asynchronouscontrolof transferonDIO Interfacemanagementlines =controlofsomeinterface functions

Handshaking(HS)lines NRFD(NotReadyforData) AcceptorofHS NDAC(NotDataAccepted) AcceptorofHS DAV(DataValid) SourceofHS

InterfaceManagementLines
ATN(Attention) controllerdrivesATNtruewhenitusesthe DIOtosendcommands,andfalsewhenaTalkercansenddata messages. EOI(endoridentify) twopurposes:
Talker:tomarktheendofamessagestring, Controller:totelldevicestoidentifytheirresponseinaparallelpoll.

IFC(interfaceclear) TheSystemControllerdrivestheIFCline toinitializethebusandbecomeCIC. REN(remoteenable) TheSystemControllerdrivestheREN linetoplacedevicesinremoteorlocalprogrammode. SRQ(servicerequest) AnydevicecandrivetheSRQlineto asynchronouslyrequestservicefromtheController.

IEEE488.2andSCPI 488.1(1975) missingmainly:definitionofdata formats,statusreporting,messageexchange protocol,commonconfigurationcommands,device specificcommands,etc. 488.2(1987)arisenfrom488.1(compatible), softwareoriented,increasesdataformat compatibility,statusreportinganderrorhandling SCPI devicespecificcommandscomingfrom generalizedinstrumentmodel

ComparisonofIEEE488.1488.2andSCPI

IEEE488.2MandatoryControllerSeq.
Description Send ATN-true commands Set address to send data Send ATN-false data Send a program message Set address to receive data Receive ATN-false data Receive a response message Pulse IFC line Place devices in DCAS Place devices in local state Place devices in remote state Place dev. in remote with local lockout state Place devices in local lockout state Read IEEE 488.1 status byte Control Sequence SEND COMMAND SEND SETUP SEND DATA BYTES SEND RECEIVE SETUP RECEIVE RESPONSE MESSAGE RECEIVE SEND IFC DEVICE CLEAR ENABLE LOCAL CONTROLS ENABLE REMOTE SET RWLS SEND LLO READ STATUS BYTE

Send group execution trigger (GET) message TRIGGER

IEEE488.2ControllerProtocols
Keyword RESET FINDRQS ALLSPOLL PASSCTL FINDLSTN SETADD TESTSYS Name Reset System Find Device Requesting Service Serial Poll All Devices Pass Control Find Listeners Set Address Self-Test System Compliance Mandatory Optional Mandatory Optional Optional Optional Optional, but requires FINDLSTN Optional

REQUESTCTL Request Control

IEEE488.2Instruments

Minimalsetofinterfacecapabilitiesofeach device:
Tosendandreceivedata(T5,T6,TE5,TE6,L3,L4, LE3,LE4,AH1,SH1) Torequestservice(SR1) Torespondtoadeviceclear(DC1)

+othercapabilitiesareoptional:
RL0/RL1;PP0/PP1;DT0/DT1;E1/E2;C0/Cinsome version.

IEEE488.2CommonCommands
Mnemonic *IDN? *RST *TST? *OPC *OPC? *WAI *CLS *ESE *ESE? *ESR? *SRE *SRE? *STB? Group System Data Internal Operations Internal Operations Synchronization Synchronization Synchronization Status and Event Status and Event Status and Event Status and Event Status and Event Status and Event Status and Event Description Identification query Reset Self-test query Operation complete Operation complete query Wait to complete Clear status Event status enable Event status enable query Event status register query Service request enable Service request enable query Read status byte query

IEEE488.2DeviceStatusModel

SCPIInstrumentModel

Parallelport IEEE1284

Primary8bitsinterfaceforconnecting printers(Centronics) 1994 thefirststandardIEEE1284:


Standard(centronicscompatible)parallelport (SPP):onewaydatalines+3wirehandshaking+ additionalstatus,controllines verysimple: transferfullycontrolledbysoftware (microprocessor) EPP ECP

Enhancedparallelport

Bidirectionaldatalines Similartomicrocontrollerbuscommunication (addressingregistersinprinterandinPC,then datatransfer) Transferrateupto10MB/s DatatransferpartiallycontrolledbyPC hardware

Extendedcapabilities parallelport
Bidirectionaldatatransferfullysupportedby PChardware(dataandaddresswrittentothe registerinPCareautomaticallysendtothe printer Networking(daisychain:input=hostand output=passtroughconnectors) ParallelportisusedforsomelowcostDAQ devices

You might also like