Home
        The GPIB to RS232 and Digital-IO Converter User Manual for KI
         Contents
1.       SOUR  FREQ     1      88000000  0  041   gt  SEND  24   SOUR POW  ALC  BAND  AUTO     1   lt  ON  042   gt  SEND  24   SOUR POW LEV  66   SOUR POW LEV   1       66  00  043   gt  SEND  24   SOUR FREQ 6686        SOUR  FREQ     1      66000000  0  044     gt  SEND  24   SOUR POW ALC BAND   1      100000  045     SEND  24   SOUR CORR   1   lt  0  046   gt  SEND  24     SOUR POW LEV  44        SOUR POW LEV   1   lt    44  00  047   gt  SEND  24  SOUR FREQ 4486      SOUR  FREQ     1   lt   44000000  0  048   gt  SEND  24  OUTP AMOD AUTO   SOUR POW STEP 1        OPC     1   lt  1  049   gt  SEND  24  SOUR POW LEV  55        SOUR  POW  LEV     1       page42    050    051    052    053    054    055    Utilizi    of KI G    The met              The r  001    002    003    004    005    006    007    008    009    010     lt    55  00     gt  SEND  24     SOUR FREQ 5586        SOUR  FREQ     1   lt   55000000  0    gt  SEND  24     SOUR FREQ 996        SOUR  FREQ     1   lt   99000000  0    gt  SEND  24     SOUR  AM EXT COUP         X0PC     1   lt 1    gt  SEND  24   SOUR  FREQ 1006        SOUR  FREQ     1   lt   100000000  0    gt  SEND  24   SOUR POW LEV  20   SOUR  POW  LEV     1   lt    20  00    gt  SEND  24   SOUR  FREQ 200E6        SOUR  POW LEV  10     SOUR  FREQ     1   lt   200000000  0       ng KiGiRax and GPIB Controller KI GC1201 to test the functions  RUA01     hod described as below      1  Make the Rxd and Ted pin for KI GRUAO1 RS232 PORTa linked  together and
2.      KI GC1201 firmware version 2 1  and Further  is to support PIO only   firmware update please contact with E mail  kitec phkaku  com     Instruction   Findlisten   Rp   24  25  26  27    Description     1  PC give instruction  Findlisten   to X1 6C1201   2  KI GC1201 will execute the  Findlisten    procedure of IEEE488  to each GPIB address  from 1 to 30    3  KI GC1201 will transmite back to PC the result   24  25  26  27     obtained from executing the item 2 above mentioned     24 means Primary Address   24 and without Secondary Addres    25 means Primary Address   25 and without Secondary Addres    26 means Primary Address   26 and without Secondary Addres    27 means Primary Address   27 and without Secondary Addres    Instruction   Findlistenf 24 25 26 27  Rp   ZZ18ZZ19ZZ1AZZ1B    Description     ZZ in the     ZZ18ZZ19ZZ1AZZ1B means the GPIB without  Secondary Address  Example  ZZ18 means the GPIB Address for Digital IO  Port of   1      401 is Primary Address 24   Hex18 24 and without Secondary Address     Instruction   Findlisten  24 25 26 27  Rp   24  25  26  27    page36    Description     1  PC give instruction  Findlisten  24 25 26 27 to KI GC1201    2  KI GC1201 will execute the  Findlisten  procedure of IEEE488  to GPIB address 24  25  26 and 27    3  KI GC1201 will transmite back to PC the result     24  25  26  27  obtained from executing the item 2 above mentioned     24 means Primary Address   24 and without Secondary Addres    25 means Primary Address  
3.     sets Square llave input and the output with Programmable Duty Cycle  interface  KI GRUAO1  DUTY XR1            sets Square llave input and the output with Programmable Frequency  interface  KI GRUAO1  XR1     and then many electrical interfaces above mentioned are controlled  through KI GRUAO1 by GPIB Controller     page6         Other Instruments  or Equipments with  GPIB Interface    Instrument  with GPIB  Interface    GPIB CONTROLLER  KI GC1201    PC Control all  Instruments    Equipments and  all Interfaces  of KI GRUAOI                         Equipment  with RS232 Private PCB for    jnterfuce testing purpose    The Output or    2 Input control  1119         obtained    from K1 6RUA01  KI GRUAO1    Communicating  PC Programmed with KI GRUAO1  Duty Cycle or by Interface  Frequency for of RS232 TTL    the S    Vave   utput The Square Waves    K x a Terina kind  quare Wave    uty Cycle        Topat Yros  f ce Frequency input  Private PCB from KI GRUAOI    Interface 1P2T Switch input  of Relay  EL from the relay of    the K1 6RUA01    Rx Tx    Digital IO PORTz     and  the 10 of square save    KI GRUXR1 KI GRUADI     Wa    124    page7    e  GPIB to 83232 and Digital 10  Converter    5  75160 5  75161 PORTU           Tx Rx    KI  GRUADI St    N  8    Jee IG   5u59264G40J             mmm    POTIR JACK with center         P     NC ud BYDC 2 1915  5    11     25044    GPIB to 20r4RS232 and 3DigitallO Converter  KI GRUSR1   KI GRUAO1 SR1   KI GRUAO1 S4R    SN75160 575191  KI
4.   00    Description      page33     1  KiGirax  exe will transmite  PIO 26     00     PIO  27   to KI GC1201      22   a  KI GC1201 will transmite the Hex data     00    to the  PORTx of KI GRUAO1     i e  KI GC1201 transmite the following signal of          488  1 to KI GRUAOI    ATN01 UNL          LA26 ATNOO 00  ATN01     b  KI GRUAO1 will configure the output value of  Digital IO PORTx as  00      c  KI GC1201 will read the input value of the KI GRUAOI  PORTy  i e  KI GC1201 transmite the following signal  of ieee488  1 to KI GRUAOI    ATN01 UNL 1400 TA27 ATNOO READ DATA  ATN01    KI GC1201 read the correct value to be     00        b  PIO 26   FF  P10   27  Rp  FF    Description       1  KiGirax  exe will transmite  PIO 26     FF     PIO  27   to KI GC1201     2     a  KI GC1201 will transmite the Hex data  FF  to the  PORTa of KI GRUAOl  i e  KI GC1201 transmite the  following signal of ieee488 1 to KI GRUAOI   ATNO1 UNL TAO0 LA26 ATNOO FF EOI ATNOI     b  KI GRUAO1 will configure the output value of the  Digital IO PORTx as     FF        c  KI GC1201 will read the input value of the  PORTy of KI GRUA01   i e  KI GC1201 transmite  the following signal of ieee488 1 to KI GRUAOI    ATN01 UNL 1400 TA27 ATNOO  DATA ATNOI  KI GC1201 read the correct value to be     FF          PIO 27   00     PI0  26    page34    Rp  00  Description       1  KiGirax  exe will transmite  PIO 27     00     PIO  26   to KI GC1201      22   a  KI GC1201 will transmite the Hex data     00    to  t
5.   14  To inspect function of Rs232 PORTa and PORTb for KI GRUA01          14    3     To inspect function of Digital 10 PORT  and PORTy for KI GRUA01    16    Application Example for KI GRUA01                                    19  Example for controlling KI GRUAO1 Digital IO PORT with KI GC1201   19  Examples for controlling KI GRUAO1 RS232 PORT with KI GC1201        21  To test KI GRUAO1 RS232 Port with Angilent 82357                     21  To test KI GRUAO1 Digital IO Port with Angilent 82357B              21  Programming examples for KI GRUAO1 with PC and Visual C             23  VISUAL C   communication subprograms for KI GRUAO1 RS232 PORT       24    page2    The Electrical specification of K1 6RUA01 R2         Power voltage   DC 6 81 to 7 5V   Power current   DC 150 mA  no load  and DC 250 mA  Max   GPIB Connector   DB24  Female   RS232 Connector   DB9  DTE  Female   Power Jack   2  Imm 5  5mm 11mm     Voltage for the center of Power Jack is positive    The ports for interface     TTL level output port number for RS232    1  PORTa     RS232 level output port number for RS232   2  PORTa and PORTb     Port number for Digital IO   2  PORTx and PORTy     Port number for IEEE GPIB  1  Interface voltage     the output voltage of Tx pin for RS232 TTL connector   DC 5V   the input voltage of Rx pin for RS232 TTL connector   DC 5V   the output voltage for pin of Digital IO   DC 5V   the input voltage for pin of Digital IO   DC 5V Max   Support to GPIB Function     SH  AH  L  T
6.   Female  RS232 Connector   DB9  DTE  Female    Power Current  Power Voltage   DC 7V    DC 130 mA  no load   DC 250 mA  Max     page12    Interface Voltage      RS232 TTL Interface Yoltage   4  85VDC to 5  25VDC  Regulated   Digital IO Interface Voltage   4 85VDC to 5 25VDC  Regulated     The output of Digital IO Pin      Voltage    Digital IO Interface Voltage  Max   Current Source     5 mA Max  each pin     The input of Digital IO Pin     Voltage  TTL Level  must not excess the Digital IO Interface Voltage   The Access of Digital IO Pin    Method  Directly IO Acess   that is      a  The data input from GPIB BUS will be  transmitted to Digital IO PORT directly      b  The data input from Digital IO PORT will be  transmitted to GPIB BUS directly      c  The Input Output state of Digital IO PORT will  be switched automatically      d  The Digital IO PORT have the function of Latch  when being in the Output State      e  The GPIB DATA format regard to the input and  output of Digital IO PORT      One Byte PORT Value 4 EOI Signal  The output of RS232 TxPIN      Voltage   RS232 TTL Interface Yoltage  Max     The input of RS232 RxPIN    Voltage  TTL Level  must not excess the RS232 TTL Interface Vol tage   GPIB Handshake Timing  Per Byte      Data output  Sus Min  Data input  50ns Min    Support to GPIB Function       1  AHI  14  T6  SRI    page13    KI GRUAO1 receive data which will be saved in its IO BUFFER  from RS232 PORT  After already receiving whole BLOCK DATA   datat0d0a  
7.   GRUSRI KI  ERU    5  9  D  5          a       page8    v  IIIJ e  GPIB to RS232 and DigitallO Converter  KI GRUA01   KI GRUAO1 DR1     0  45 82338 mm    GPIB to 2PCS RS232 and Digital 10 Converter  KI GRUDR2   KI GRUAO1 DR2    wire   99206 61        0 0     v Mti       ww eesos     0692285        page9        q      o  Q                  e                               The feature of KI GRUAO1      a  The 2 sets of instruments which are lov cost and have the  interface of RS232 only will be able to link together  and link with the other instruments which have the  interface of GPIB through KI GRUAOI     b  a GPIB Controller and the two sets of Digital 10 Port   16 IO PIN  for KI GRUAO01 will be able to control  the electronic circuit board and also read the digital  signal from it     c  The GPIB Controller and PC will be able to control  the instruments of item a  above mentioned  after  these instruments have been linked with KI GRUAOI  The driving of the KI GRUA01 Interfae signal will  be taken by Embed MPU 8051 and     14 1  4128  It is  not necessary to add extra PC Driver  operation  is easy  and many complicating programs for  controlling will be simplified as a program of  Gpib Application     For example     page10      COM3 128000       PC can get data from Barcode Scanner  for example  ST 66    Control Relay  LEG 5   execute instructions input from the  Yindovs button of Windows Program  mentioned as above  and  output exection result to the log file  xxxxxxxxxxx
8.   KI GRUAO  will enable its REQUEST SERVICE   signal  If all of the data in the IO BUFFER of KI GRUAO1 are  read by GPIB CONTROLLER  the IO BUFFER will be cleared and the  REQUEST SERVICE signal will be disabled by KI GRUAOI    Description   GPIB CONTROLLER gives the Query instruction to KI GRUAOl1 if  instrument needs much time to prepare the data which will be  transmitted to GPIB CONTROLLER  It will put to use the SR  function of KI GRUAO1 to escape making the GPIB ERROR for  reading data from instrument too fast or wasting too much time  for reading data from the instrument too slow     SR Function output     Serial Poll will output 3 bytes    First Byte   50           KI GRUA01 IO Buffer  is ready   First Byte   NULL   KI GRUAO1 Out Buffer    is not ready    Second Byte    t meas that 10 Buffer of KI GRUAO1  get ready just time for the  High Byte Value of the data number    Third Byte   It meas that 10 Buffer of KI GRUAO1  get ready just time for the  Low Byte Value of the data number   Description     To take KI GC1201 Controller    Instruction   SPOLL 24  Rp   80  Description     Because 80   50Hex is means that    KI GRUAO1 10 Buffer is ready     Instruction   SPOLL amp  24  Rp   80  1  64  Description   First Byte   80    Because 80   50Hex is means that    KI GRUAO1 10 Buffer is ready   Second Byte  1    page14    Third Byte   64  data Number in KI GRUAO1 10 Buffer   256 1 64      820  Instruction   SPOLL amp   24  Rp   500140  Description   First Byte   50    50Hex
9.   SR   The configuration of KI GRUAO1 when it is powered on     RS232 BAUDRATE   9600  It can be changed by instruction  RS232 xxxxx      GPIB ADDRESS   24  25  26  27  It can be changed by instruction  GPIB xx     The parameter value of Control of Data Flow    0  All of the RS232 PORT are configured as Default Data Flow Type and it  can be changed by the instruction of    INPUT n     The parameter value of Baudrate   T  The Baudrate of RS232 PORT is configured as 9600 and it  can be changed by the instruction of   RS232 n             The parameter value of GPIB      24  The GPIB address of Porta  Portb  Portx and Porty is configured as  24  25  26 and 27 and it can be changed by the instruction of  GPIB nn  The parameter of Rs232 interface      Baudrate   2400  9600 default   14400  19200  28800   38400  57600  115200  128000  Parity   none  Bit No   8  Stop Bit No zl  Signal Line   RXD 2th pin   TXD 3th pin   Input Buffer   148 bytes    RS232 Connector of PORTa Rs232 Level   DTE   The PCB of KI GRUAO1 R2    Material   FR4 double side and surface with Immersion gold  Size   5  49     x 6  48cm    page3    The Electrical specification of K1 6RUA01 R4         Power voltage   DC 6 81 to 7 5V   Power current   DC 150 mA  no load  and DC 250 mA  Max   GPIB Connector   DB24  Female   RS232 Connector   DB9  DTE  Female   Power Jack   2  Imm 5  5mm 11mm     Voltage for the center of Power Jack is positive    The ports for interface     TTL level output port number for RS232    1  PO
10.   instrument vith RS232 PORT     Some old type of instrument whose RS232 PORT operation  put to use the RTS  CTS  DTR and DSR of the Handshake   Signal Line and vhich have no svitch for the function  of the RS232 Handshake Option is unable to link with  KI GRUAOl  There are two solutions      1  Utilizing the GPIB interface to link the instrument    GPIB Controller and the other instrument     23Tt should put the signal of the DATA SET READY and  CLEAR TO SEND which are read through the DSR and  CTS pin by the instrument to be YES  This method is  as below     Method for disabling the Hardware Handshaking  Function of Instrument    The RS232 DSR The RS232 TXD  pin of Instrument IM148 pin of Instrument  wr    The RS232 RTS         The RS232 CTS    pin of Instrument pin of Instrument      and then link instruments and GPIB Controller  through the RS232 PORT of KI GRUAOI    Instruments whose RS232 PORT operation does not use the  DTR and DSR of the Handshake Signal Line is able to link  with KI GRUAOI    method of Data Flow Type is setup for KI GRUAOI       The RS232 PORT DTE of KI GRUAO1 is linked with that of    PC Cor USB to RS232 Converter  through  RS232 CABLE FOR CROSSOVER     KI GRUAO1 is connected with power  7V  Min 46 8V             5V      The Application Program of KiGirax exe  WindowsXp Hyper Terminal  or other Windows RS232 Terminal are executed and the Baudrate    page16    of RS232 PORT for PC is setup as 115200  4  The set up of Data Flow Type for KI GRUA01   In
11.  25 and without Secondary Addres    26 means Primary Address   26 and without Secondary Addres    27 means Primary Address   27 and without Secondary Addres    Instruction   PIO  26 PIO 27  00  idn       00 5PORTy  Read From PORTx     PIO  26  Rp    00   PORTy  Read From PORTx 00    Description     1  PC give the instruction   PIO  26 PIO 27  00  idn       00 5PORTy  Read From PORTx    P10   26   to KI GC1201    2  KI GC1201 will transmite the low level instruction for  PIO  26   to the PORTx Primary Address   26  of KI GRUAO1 and make PORTx  to be setup as state of input   3  KI GC1201 will transmite  00   Hex  and EOI Signal to PORTy   Primary Address   27  of KI GRUAO1 and make the output of  PORTy to be setup as     00     Hex     4  KI GC1201 will transmite      00 5PORTy  Read From PORTx  back  to PC    5  KI GC1201 read the PORTx input of KI GRUAOI    6  KI GC1201 transmite the result read from item5 back to PC     Instruction   PIO  26 PIO 27  FF  idn       FF 5PORTy  Read From PORTx     PIO  26  Rp    FF  gt PORTy  Read From PORTx FF    Description     1  PC give the instruction   P10  26 PIO 27     FF     idn    FF  gt PORTy  Read From PORTx    PIO  26   to KI GC1201    2  KI GC1201 will transmite the low level instruction for  PIO  26  to the PORTx Primary Address   26  of KI GRUAO1 and make PORTx  to be setup as state of input   3  KI GC1201 will transmite  FF   Hex  and EOI Signal to PORTy   Primary Address   27 of KI GRUAO1 and make the output of    page37    PO
12.  LEV   1   lt    11 00  003   gt  SEND  24  SOUR FREQ 11E6        SOUR FREQ   1      11000000  0  004   gt  SEND  24     XESE    XESR         XPRE       XSRE       NSTB       XOPC    lt   0 128 0 0 16 1  005   gt  SEND  24     SOUR POW LEV  15   SOUR POW LEV   1    page40     lt      15  00    006     SEND  24     SOUR FREQ 25E6   SOUR  FREQ     1     lt     25000000  0    007     SEND  24     SOU     lt      18  00    IR POW LEV  18  SOUR POW LEV  1    008   gt  SEND  24     SOUR FREQ 1886        SOUR  FREQ     1     lt      18000000  0    009     SEND  24     SOUR POW LEV  12   SOUR POW LEV   1    010    011     lt      12  00      gt  SEND  24  SOUR FREQ 12EF6  SOUR FREQ  1     lt     12000000  0      gt  SEND  24  SOUR POW LEV  10  SOUR POW LEV  1     lt      10  00    012   gt  SEND  24  SOUR FREQ 50E6   SOUR  FREQ     1     lt     50000000  0    013   gt  SEND  24   SOUR POW LEV  10   SOUR POW LEV   1     lt      10  00    014   gt  SEND  24  SOUR FREQ 1086        SOUR  FREQ     1    015    016    017     lt     10000000  0      gt  SEND  24  SOUR POW LEV  13   SOUR  POW  LEV      lt      13  00      gt  SEND  24  SOUR FREQ 13E6        SOUR FREQ   1     lt     13000000  0      gt  SEND  24  SOUR POW LEV  16  SOUR POW LEV  1     lt      16  00    018   gt  SEND  24  SOUR FREQ 16E6   SOUR  FREQ     1     lt     16000000  0    019     SEND  24  SOUR POW LEV  19   SOUR POW LEV   1    020    021    022    023    024    025     lt      19  00      gt  SEND  24  SOUR FREQ 19EF
13.  of first byte is means that KI GRUAOI  10 Buffer is ready     Second Byte   01           1  Third Byte   40 Hex    64  data Number in KI GRUAO1 IO Buffer   256 1 64      820  KI GC1201 GPIB Controller firmware Version 2 1 and further  is  to support the function for Multiple Byte Serial Poll   Serial Pol1 with Multiple Byte  and take the job of testing  the SR Function of KI GRUAO1     The configuration of KI GRUAO1 when it is powered on      RS232 BAUDRATE   9600  It can be changed by instruction   RS232 xxxxx        GPIB ADDRESS   24  25  26  27  It can be changed by instruction   GPIB xx      Control of Data Flow   All of the RS232 PORT are Default Data Flow Type   that is  the value of Input is  0   and that can  be changed by the instruction of   INPUT  x     XThe Material and Size of KI GRUAO1 PCB     Material          which is Double side and surface with Immersion gold    Size   5  49cm x 6  64cm    XProtocol of KI GRUAO1 RS232 PORT interface     Baudrate   2400  9600  default   14400  19200  28800  38400  57600  115200  128000   Parity   none   Bit No  8   Stop Bit No  1   Signal Line   RAD  TXD   10 Buffer   748 bytes    Output format of PORTa Rs232 Level   DTE   Same vith the output format of PC Rs232 PORT     page15    Note      a      b      c                 Because KI GRUAO1 does not support RTS  CTS  DTR and  DSR of Handshake Signal Line  the RS232 Handshake   Option of RS232 PORT for instrument must set up as  OFF  and then the KI GRUAO1 will be able to link
14.  the Rxd and Txd pin for KI GRUAO1 RS232 PORTb  linked together also    2  To execute the test program KI GRUAOITst for KiGiRax     esults for testing       gt  FINDLISTEN     lt  24  25  26  27     gt  FINDLISTEN  24 25 26 27    lt   27182719771  721       gt  PIO  26 27  FF00    lt  255 00     gt  SEND  24   ABCDEFGHI JKLMNOPQRSTUVWXYZ1 234567890   lt   ABCDEFGHI JKLMNOPQRSTUVWXYZ123456 890     gt  SEND  25   ABCDEFGHIJKLMNOPQRSTUYWXYZ123456 7890   lt   ABCDEFGHI JKLMNOPQRSTUVWXYZ123456 890     gt  SEND  26     FF    lt  F     gt  SEND  27   00       lt  0     gt  SEND 25   1234567890    lt       gt  SPOLL  25       80       SEND  25    page43    011    012    013    014    015    016    017    018    019    020    021    022    023    024    025    026    027    028    029    030        1234567890     gt  SEND 24   1234567890    lt       gt  SPOLL  24    lt   80     gt  SEND  24    lt   1234567890     gt  SEND  24   ABCDEFGHI JKLMNOPQRSTUVWXYZ1 234567890   lt   ABCDEFGHI JKLMNOPQRSTUVWXYZ1234567890    gt  SEND 25     1234567890    lt      gt  SPOLL  25    lt  80     gt  SEND  25    lt   1234567890     gt  PIO  27 26     00FF       lt  00 255     gt  SEND  24                      JKLMNOPQRSTUVWXYZ1 234567890   lt   ABCDEFGHI JKLMNOPQRSTUVWXYZ123456 7890    gt  SEND  25   ABCDEFGHI JKLMNOPQRSTUVWXYZ1 234567890   lt   ABCDEFGHI JKLMNOPQRSTUVWXYZ123456 7890    gt  SEND 25   1234567890           gt  SPOLL  25    lt   80     gt  SEND  25    lt   1234567890     gt  SEND 24     12
15. 01 will transmite the data to instrument  through KI GRUAO1 RS232 Port    b  The number of data are not limitted     c if the data is the   d or the Oa   KI GRUAO1 will give up the data     d if the data is with the signal of EOI     KI GRUAO1 will transmite datat0dt0a to instrument  through KI GRUAO1 RS232 Port    kk 2 sets of RS232 PORT for KI GRUAOl only hold one  10 Buffer for common use  When PC give the  query instruction to one of RS232 PORT such as PORTb   of KI GRUAO1 through GPIB Controller  the next step   PC must give the read data instruction to that of  KI GRUAO1   must read the data in output buffer of  instrument and must send them back to PC through that  of KI GRUAO1 mentioned above  There are no data  carried away     For instance   Method with exaction     SEND  25  VSET 5       VOUT      SEND 26  VSET 7  or  SEND 25     VSET 5   VOUT      SEND  25 SEND 26  VSET 7    Method without exaction   SEND 25     YSET 5   VOUT      SEND 26   VSET     SEND  25    When the data in output buffer of instrument are  sent back to PC through RS232 PORT of KI GRUAOI  the data path for address 25 is closed and the  data path for address 26 is opened  by the  instruction     SEND 26     YSET           therefore the data transmitted to PC from output    page18    buffer of instrument address 25 will be carried  away     Code Reader Data F low Type        It is suit for transmitting a small number of data which  transmition timing is indefinited from instrument to  KI GRUAO1 R
16. 34567890           gt  SPOLL  24     lt   80     gt  SEND  24    lt   1234567890     gt  SEND  24   ABCDEFGHI JKLMNOPQRSTUVWXYZ1234567890   lt   ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890    gt  SEND 24   1234567890       lt        SPOLL  24       80       SEND  24    lt   1234567890    Programming examples for KI GRUAO1 with PC and Visual          page44    KI GRUAO1 will be configured as default situation      Gpib Address 24  25  26  27  Rs232 Baudrate 9600    1  Transmitting  vset 5    iset 0 25    vset   and  iset   to  the RS232 PORTa of KI GRUAOl and reading the value of  vset and iset from the RS232 PORTa of KI GRUA01 should  be taken by PC and the program of Visual CH     The codes of VISUAL            WriteFile     hComm    SEND 24 N vset 5V V iset 0  25V  r n   strlen  SEND 24 V vset 5V V iset 0  25V  r n     amp nBytesWrite  NULL     WriteAndReadBus      1000  hComm    SEND  24 V vset V V iset V  r n   RdDataStr       Description   The value of vset and iset     4  992 0  2497    will be transmitted back to PC and saved in RdDataStr  through the RS232 PORTa of KI GRUAO1 from instrument    after sub program execute completely     2       configure the output of KI GRUAO1 DIGITAL IO PORTc as  3aHex  00111010     The codes of VISUAL C       char portc   char buffer     page45    portc 0x3a   wsprintf buffer   PIO 26 V    2xV  r n   portc      WriteFile      hComm  buffer  strlen buffer    amp nBytesWrite  NULL   gt      3  To configure the bit6 output of KI GRUAO1  PORTc a
17. 6  SOUR FREQ  1     lt     19000000  0      gt  SEND  24  SOUR POW LEV  22  SOUR POW LEV  1     lt      22  00      gt  SEND  24  SOUR FREQ 226     SOUR FREQ   1     lt      22000000  0      gt  SEND  24   SOUR POW LEV  26        SOUR POV LEY     1     lt       26  00      gt  SEND  24  SOUR FREQ 26E6        SOUR FREQ   1     lt      26000000  0      gt  SEND  24   SOUR POW LEV  29    SOUR POW LEV  1     lt       29  00    026   gt  SEND  24     SOUR FREQ 2986        SOUR  FREQ     1     lt      29000000  0       027   gt  SEND  24   SOUR POW LEV  32   SOUR POW LEV   1    page41         32  00  028   gt  SEND  24     SOUR FREQ 3286        SOUR  FREQ     1      32000000  0  029   gt  SEND  24  XCLS  XESE 1                32   XSRE 32   XOPC    lt 1  030   gt  SEND  24     SOUR  FREQ 200E6        SOUR  FREQ    lt   200000000  0  031   gt  SEND  24   SOUR POW LEV  30   SOUR  POW  LEV     1       30  00  032   gt  SEND  24   SOUR FREQ OFFS   1      10  00  033   gt  SEND  24   SOUR POW LEV  77       SOUR POW LEV   1   lt   TT  00  034   gt  SEND  24   SOUR FREQ 7TE6   SOUR  FREQ     1   lt   77000000  0  035   gt  SEND  24   SOUR  FREQ  STEP     1   lt   2000000  0  036   gt  SEND  24   SOUR POW LEV  25   SOUR  POW  LEV     1   lt   25  00  037   gt  SEND  24     SOUR  FREQ 1756        SOUR  FREQ     1   lt   175000000  0  038   gt  SEND  24   SOUR POW LIM   1      10  00  039   gt  SEND  24   SOUR POW LEV  88   SOUR POW LEV   1       88  00  040   gt  SEND  24   SOUR FREQ 8886  
18. 6789asdfgh jhzxcvbn   E0I  in 10 Buffer of KI GRUAO1  will be transmitted back to the EDIT WINDOW of  Agilent Connection Expert      The methods for utilizing the Angilent 82357B Gpib Control ler    page39    to test the functions of KI GRUAO1 Digital 10 Port      to execute Agilent Connection Expert    to execute  menu function  Tool   Interactive 10      menu function  Connect    6P1B  27  1NSTR     KI GRUA01    Execute menu function Connect   GPIB  27  INSTR     input command    example        To input   j    and click the button of Send Command   because Ascii j   Hex6A  so the output of KI GRUAOI  PORTy  GPIB ADDRESS is 27  will be setup as  6A  Hex   01101010     Note   KI GRUAO1 will receive only the first byte of    Command  so it is the same to input the           or      jPwqerGFhurDSA12387y43zx       b  To click the button of Read Response button   the data  input from KI GRUAO1 PORTy will be transmitted to  the EDIT WINDOW of Agilent Connection Expert    Example     The GPIB Controller KI GC1201 and the RS232 PORTa of KI GRUAOI   Handshake setup as OFF  are utilized for controlling the instrument  of ROHDE amp SCHWARZ SME 03  The RS232 PORT for both KI GRUAO1 and  ROHDE amp SCHWARZ SME 03 are DTE so it is necessary to take the linking  method of Cross Link for them  described it as below      RS232 DB9 DTE  ROHDESSCHWARZ  SME 03       001   gt  SEND  24     xIDN    lt   Rohde amp Schwarz  SME03  833777 013  4  11  002   gt  SEND  24     SOUR POW LEV  11   SOUR POW
19. CB of KI GRUAOI1 R4    Material   FR4 double side and surface with Immersion gold  Size   5  49cm x 6  48cm    page4    Preface  The design concept for KI GRUAOI   The interface for the instrument     Because the Packaged Message and Packaged Data are used to  make communication between the interface of LAN or USB on  the instrument and the other interface for the controller   Such as PC   Each interface for LAN or USB need to supply  the driver to the interface controller for which interface  is able to communicate with the controller  If there are  many different brands of instrument to be used  the design  of application program for controller will be very difficult    But the Raw Message and Raw Data are used to make   communication between the interface of GPIB or RS232 on the  instrument and the other interface for the controller    Such as PC   the interface of GPIB or RS232 will be able to  Communicate directly with the interface of controller    Under the situation of utilizing many different brand of the  Instrument  there are no need of additional driver and the  design for program of controller will be simple as an instrument  to be used     The LAN is usually used to make communication with the  Long Distance or the Big Data transmission  the cost of LAN  Included of instrument and program design will be very  expensive     If there are no need for communication with the Long Distance  or the Big Data transmission  it would be cost down and raise  up the working 
20. KI GC1201 will transmite the      ABCDEFGHI JKLMNOPQRSTUVWXYZ1 234567890    and signal of EOI  to the PORTb of KI GRUA01  3  KI GRUAO  will transmite    page38        ABCDEFGHI JKLMNOPQRSTUVWXYZ1 234567890   to 10 buffer of KI GRUAO1 from the TXD Pin  through RXD Pin of RS232 PORTb    4  KI GC1201 will read the contents of 10 Buffer in  KI GRUAO1 and send the read results back to  KiGirax  exe   5  the contents read from item 4 must be       ABCDEFGHI JKELMNOPQRSTUVWXYZ1 234567890         The methods for utilizing the Angilent 82357B Gpib Control ler  to test the functions of KI GRUAO1 RS232 Port      the Gpib Controller of Angilent 82357B is linked with  the KI GRUA01 Board through GPIB CABLE       The signal wire RXD and TXD of the TTL Level RS232 PORTb  for KI GRUAO01 are linked together  it means that the  TTL Level RS232 Port of K1 GRUA01 will be linked as  below     PORTb RXD YS PORTb TXD      Agilent Connection Expert program  to be executed       menu function  Tool of Interactive 10 to be executed      KI GRUAOL    Execute the menu function Connect   GPIB  25   INSTR     command to be given   example     a  To input     123456789asdfghjhzxcvbn    and then click  the button Send Command     1  Angilent 82357B Gpib Controller will transmite  the data  123456789asdfghjhzxcvbn to KI GRUAOI    2  KI GRUAOl will transmite the data      123456789asdfgh jhzxcvbn    to its 10 Buffer through PORTb RXD and  PORTb TXD    b  Click the button to read response   the data      12345
21. ORT for most instruments  are usually the DCE method  Data Communication Equipment   The  DTE  Data Terminal Equipment  of KI GRUAO1 is able to link  with DCE of instrument  However  if the wiring method of  RS232 PORT for instrument is not DCE but DTE  It is  necessary for linking the RS232 PORTs of KI GRUAO1 and  instrument with the cable of the RS232 CABLE FOR CROSSOVER        It is necessary for making the RS232 PORT DTE of KI GRUAOI  linked to the RS232 PORT of PC throuth the cable of  RS232 CABLE FOR CROSSOVER  because the wiring method of the  RS232 PORT for PC are usually the method of DTE   Data Terminal Equipment     It is necessary for Txd PIN to exchange Rxd PIN through the  cable of the RS232 CABLE FOR CROSSOVER to make the  RS232 PORT DTE of KI GRUAO1 linked to the RS232 PORT of   PC  instead of wiring directly DTE of KI GRUAO1 with DTE   of PC  it will make the Short Circuit of Rs232 Output Signal  and demage the PC  KI GRUAO1 and RS232 PORT of instrument       In a word   a  The Txd PIN for RS232 PORT of KI GRAA01 must be linked  with the Rxd PIN for PC or instrument  b  The Rxd PIN for RS232 PORT of KI GRAA01 must be linked  with the Txd PIN for PC or instrument       the format of data input and output for Digital IO PORTx and  Digital 10 PORTy of KI GRUAO1 are always    one byte of DATA of PortValue   signal of EOI    in accordance with IEEE488 standard procedure to make  transmiting or receiving        The Controlling Flow for KI GRUAO1 Digital IO PORT   G
22. ORTa TXD  PORTb RXD YS PORTb TXD    3  Configuration of KI GRUAOl will be taken as default  and the GPIB ADDRESS and RS232 Protocol described below     Primary Address all position for An configured as open       address 24 vs PORTa  address 25 vs PORTb  address 26 vs PORTx  address 27 vs PORTy    RS232 Protocol Bl  B2 and B4 configured as open    9600 n 8 1    page31      The GPIB connector of KI GRUAOl is linked with that    of KI GC1201       The USB connector of PC is linked with that of KI GC1201      KI GRUAO1 will be connected with the POWER  DC  7V        Start to test      a  Instruction  SEND 24   abcdefghi jklmnopqrstuvwxyz     SEND  24  Rp  abcdefghi jkImnopqrstuvwxyz    Description       1  KiGirax exe will transmite  SEND 24   abcdefghi iklmnopqrstuvvxyz     SEND  24  to KI GC1201   2    a  KI GC1201 will transmite      abcdefghi iklmnopqrstuvvxyz  to KI GRUAOI   b  KI GRUAO1 will transmite      abcdef ghi jkImnoparstuvwxyz  to 10 buffer of KI GRUA01 from TXD Pin of RS232 PORTa  through the RXD Pin of RS232 PORTa     c  KI GC1201 will read the contents of 10 Buffer in  KI GRUAO1 and send the read results back to  KiGirax  exe    d  the contents read from item c must be       abcdefghi jkImnopqrstuvwxyz      b  Instruction  SEND 25     abcdefghi iklmnopqrstuvvxyz     SEND  25  Rp  abcdefghi iklmnopqrstuvvxyz    Description       1  KiGirax  exe will transmite  SEND 25   abcdefghi iklmnopqrstuvvxyz     SEND  25  to KI GC1201      22   a  KI GC1201 will transmite t
23. PIB CONTROLLER  lt   gt  IEEE488 Interface  lt   gt  Digital 10 PORT  Description    GPIB Controller directly control the interface of IEEE488    with IEEE488  1 command to set up Digital 10 PORT    XThe Digital IO PORTx and Digital IO PORTy of KI GRUAO1 have    page29    The properity of Dual Direction     Each Digital IO pin of KI GRUAO1 is able to input and output  signal      a  KI GRUAO1 will automatically configure the Digital IO  pin as the state of output while PC send the signal to  the Digital IO pin through the GPIB controller     b  KI GRUAO1 will automatically configure the Digital IO  pin as the state of input while PC read the signal from  the Digital IO pin through the GPIB controller       Digital IO will have the function of Latching while it is  configured as the state of output    Note     Instruction for reading Digital IO PORT  such as  READ  SEND      should not be utilized if the Digital IO PORT of KI GRUAOl is  taken as a Output Control Pin only  for the Digital IO PORT output  of KI GRUAO1 will be cleared and configured as High Impedance  situation  State of Input  after executing the instruction for  reading     For instance    Executing instruction  PIO 2 3   3AF4       will make the output latch of Digital IO PORT2 as  3A  and  Digital 10 PORT3 as  F4    Executing instruction  PIO  2 8   3AF4     will make the output latch of Digital IO PORT2 and PORT3 to be  cleared and configured as State of Input    XTo read the data describing for KI GRUAO1 fr
24. RTa     RS232 level output port number for RS232   4  PORTa  PORTb  PORTc AND PORTA     Port number for Digital IO   2  PORTx and PORTy     Port number for IEEE GPIB   1  Interface voltage     the output voltage of Tx pin for RS232 TTL connector   DC 5V   the input voltage of Rx pin for RS232 TTL connector   DC 5V   the output voltage for pin of Digital I0   DC 5V   the input voltage for pin of Digital 10   DC 5V Max   Support to GPIB Function     SH  AH  L  T  SR   The configuration of KI GRUAO1 when it is powered on     RS232 BAUDRATE   9600  It can be changed by instruction  RS232 xxxxx      GPIB ADDRESS   2  3  4  5  6 and 7  It can be changed by instruction   GPIB xx        The parameter value of Control of Data Flow    0  All of the RS232 PORT are configured as Default Data Flow Type and it  can be changed by the instruction of    INPUT n     The parameter value of Baudrate   T  The Baudrate of RS232 PORT is configured as 9600 and it  can be changed by the instruction of    RS232 n                The parameter value of GPIB   2  The GPIB address of Porta  Portb  Portc  Portd  Portx and Porty  is configured as 2  8  4  5  6 and 7 and it can be changed by the  instruction of    GPIB nn      The parameter of Rs232 interface      Baudrate   2400  9600 default   14400  19200  28800   38400  57600  115200  128000  Parity   none  Bit No   8  Stop Bit No   1  Signal Line   RXD 2th pin   TXD 3th pin   Input Buffer   148 bytes    RS232 Connector of PORTa Rs232 Level   DTE   The P
25. RTy to be setup as FF     Hex     4  KI GC1201 will transmite   FF  gt Porty  Read From PORTx  back  to PC    5  KI GC1201 read the PORTx input of KI GRUAOI    6  KI GC1201 transmite the result read from item5 back to PC    Examples of utilizing KI GC1201 to control the RS232 PORT  of KI GRUAO1    Instruction   SEND  24   ABCDEFGHI JKLMNOPQRSTUVWXYZ123456 77890  Rp   ABCDEFGHIJKLMNOPQRSTUVWXYZ123456 1890    Description      Make the Txd and Rxd of KI GRUAO1 PORTa  GPIB address   24   short before giving instruction  SEND  24         1  KiGirax exe will transmite the   SEND  24   ABCDEFGHI JKLMNOPQRSTUVWXYZ1 234567890       to KI GC1201    2  KI GC1201 will transmite the       ABCDEFGHI JKLMNOPQRSTUVWXYZ1 234567890    and signal of EOI  to the PORTa of KI GRUA01   3  KI GRUA01 will transmite       ABCDEFGHI JKLMNOPQRSTUVWXYZ123456 7890   to 10 buffer of KI GRUAO1 from the TXD Pin  through RXD Pin of RS232 PORTa    4  KI GC1201 will read the contents of 10 Buffer in  KI GRUAO1 and send the read results back to  KiGirax  exe   5  the contents read from item 4 must be       ABCDEFGHI JKLMNOPQRSTUVWXYZ1 234567890       Instruction   SEND 25   ABCDEFGHIJKLMNOPQRSTUYWXYZ1234567890    SEND  25  Rp   ABCDEFGHIJKLMNOPQRSTUVWXYZ123456 1890    Description      Make the Txd and Rxd of KI GRUAO1 PORTb  GPIB address   25   short before giving instruction  SEND  25         1  KiGirax exe will transmite the   SEND 25   ABCDEFGHI TKLMNOPQRSTUVYXYZ 1234567890      SEND  25    to KI GC1201   2  
26. S232 BAUDRATE for PC must be setup as 115200    4  To read the data from the RS232 PORTa of KI GRUAOI  Rs232  Press Enter Key   gpib  Press Enter Key   input  Press Enter Key   Example   Input   rs2832  Press Enter Key     Data Responded from KI GRUAO1 to PC    GPIB 00  BAUDRATE 9600    INPUT  0   Command Baudrate Yalue  RS232 0 2400  RS232 1 9600 default    RS232 2 14400  RS232 3 19200  RS232 4 28800  RS232 5 38400  RS232 6 57600  RS232 7 115200  RS232 8 128000    Input   gpib  Press Enter Key     Message responded from KI GRUAO1 to PC    PORTa  b c and 4   4  5  6 and 7  PORTx and y   2 and 3    XK1 GRUA01  amp j TTL RS232 PORT   it is able to link with instrument through KI GRAA02      5V PIN  Output    It is Power Source which may replace the power  of RS232 LINE DRIVER CIRCUIT BOARD when it is  without power     Note      if the RS232 PCB for testing has power  it  will not use the 5V PIN      The current supplied from 5V PIN must not    page25    excess over 25mA   x 5V PIN is unable to link to the power pin  for PCB connector which have power  it will  make the Short Circuit of Power     G PIN  GROUND    it will link with the ground of the connector  in PCB For Testing     Rx PIN  INPUT    it will link with the RS232 TTL LEVEL SIGNAL  OUTPUT PIN in the PCB For Testing   example   the Txd PIN of Micro Computer 8051     Tx PIN  OUTPUT    it will link with the RS232 TTL LEVEL SIGNAL  INPUT PIN in the PCB For Testing   example   the Rxd PIN of Micro Computer 8051     Testi
27. S232 PORT     For example   Scanner  Barcode Reader etc        The data transmitting from instruments to  KI GRUA01 RS232 Port     a  Block Data   The end of Block Data must be with 04 0   or Oa  and  the bytes of total data must not excess over 32 bytes    b  KI GRUAO1 will save the data input from Rs232 Port in its  10 Buffer until the data is    0a     the end of Block data   from Rs232 Port  and then    set the state of Request Service Signal as ON   and the state of 10 Buffer Status as READY   i e  Serial Pol1 Status Byte  80   50Hex     c  GPIP Controller will read the data in the 10 Buffer  of KI GRUAO1 for RS232     1  If the state of 10 Buffer Status is not Ready  KI GRUAOl will not transmite data to  GPIP Controller    2  If IO Buffer Status is ready  KI GRUA01 will transmite two sets of Syncronous signal  CNULLO EOI   whole data in 10 Buffer and one signal of  EOI     3  if all of data in 10 Buffer are already read by the  GPIB CONTROLLER  K1 6RUA01 will clear the  10 Buffer  and      Setup the state of 10 Buffer Status as  unavailable  i e  Serial Poll Status Byte  0       Setup the state of Request Service Signal as  off        The data and the signal EOI transmitted from the    page19    GPIB CONTROLLER to KI GRUAO01 GPIB Port    a  if the data is neither the 04 nor the 0a  KI GRUAO   will transmite the data to instrument through  KI GRUA01 RS232 Port    b  The number of data are not limitted     c  if the data is the 0d or the 0a  KI GRUAO1 will give  up the da
28. The GPIB to RS232 and Digital 10 Converter  User Manual for KI GRUAO1 R2  R4   DR1  DR2  SR  DRLY  DUTY and XRI               EHF  ww  phkeku coo  lt     c             d           Jo  la  je        19       e  e  2 0  a     210  o  els  o  m    m            Je                            6    KI   x      S  http   www  phkaku  con          e mail  kitec phkaku com       pagel    INDEK    Preface   The design concept for KI GRUA01                                      1   1  Specification of KI GRUAQ1           4  Interface of GRUA01                                                                                                                     4  Electrical SpecificationI of GRUAQ1 R2                               4  Support to GPIB Function                                               5  The SR Function output of KI GRUAQ1                                  6  Material and Size of KI GRUAOI PCB                                   T  The configuration of KI GRUAO1 RS232 PORT interface                  7  Control of Data Flov for KI GRUAO1 RS232 Port                        7  Configuration of KI GRUA01 RS232 Baudrate                            8  The TTL RS232 PORT of KI GRUA0                  9  The data format of KI GRUA01 Digital 10 PORT                        11  The flowchart of KI GRUAO1 Digital IO PORT Internal Control         11  The configuration for KI GRUA01 GPIB Address                        12   2  The inspection method of KI GRUA01                                 
29. and d   4  5  6 and 7  PORTx and y   2 and 3    Description    The instruction as mentioned above is given to KI GRUAO1 R4  the  GPIB ADDRESS  0  will be converted to BASE GPIB ADDRESS 0    and it will be saved in the flash memory of IC SM59264 for  KI GRUAO1  The KI GRUAO1 will read the BASE GPIB ADDRESS   after the KI GRUAO01 is power on  The GPIB ADDRESS of KI GRUAOI  will be setup as      BASE GPIB ADDRESS   0  PORTa 4   PORTb    PORTc    PORTd    PORTx    PORTy      C   P       c   on    5  To read the GPIB ADDRESS VALUE of KI GRUAO1 through its GPIB PORT    After KI GRUA01 is power on and before it receive data from  its GPIB PORT  the Baudrate and GPIB ADDRESS value saved in  the GPIB BUFFER of KI GRUAOl can be read from its GPIB PORT    Example   Input instruction through KI GC1201    findlisten     Data Responded from KI GRUAO1 to PC   284567    Input instruction through KI GC1201    SEND  2    Data Responded from KI GRUAO1 to PC   PORTa  b  c and d   4  5  6 and 7  PORTx and y   2 and 3   BAUDRATE 9600   KI GRUAO1 R4  INPUT  0    XTo read part of the data sheet for KI GRUAOI output from  the RS232 PORTa of KI GRUAO1     1  RS232 PORT DTE for PC  or USB to RS232 Converter   and KI GRUAO1 will be linked together through  RS232 CABLE FOR CROSSOVER     page24    2  KI GRUA01 make connection with the power  7v      3  The appliction progran which is KiGiraz eze  the  Hyper Terminal of Windows XP or other communiction  program of RS232 Terminal vill be executed and the  R
30. efficiency to use the instrument of the GPIB  or the RS232 interface    The price of the instrument with RS232 interface is lowlier than  that with GPIB interface but the multi instrtuments with RS232  interface linked each other through a controller of interface  will be difficult    The multi instruments with RS232 interface is able to link with  this GPIB interface through the multiple RS232 interface of  KI GRUAOl  and then this GPIB will be made for connection   with the controller of interface and other instruments which    page5    have GPIB interface       The internal structure of KI GRUAO1    KIGRUAOI xx    T4Hc245 LC4128 CPLD     74Hc4052   8051  MPU      DS2150rST3232 IEEEA88           1 0      Digital 1 0 Fi    5175160   Sn75161  Gpib Bus            2 4Rs232 TTL 1 2Rs232 Std     2Digital IO PORT eege    The function of KI GRUAO1 DR1 SR1 DRLY DUTY XRI    One set signal of GPIB Interface will be converted into     2 sets TTL Level of RS232 Interface  KI GRUAOI R2 DRI DUTY XR1  or  1 sets TTL Level of RS232 Interface  X1 GRUA01 SR1            set RS232 Level of RS232 Interface  for KI GRUAO1 R2  or  2 set RS232 Level of RS232 Interface  KI GRUAO1 DR1 DR2 SR1 DRLY DUTY XR1      2 sets Digital 10 interface  KI GRUAOI DRI R2 XR1  or  sets Digital IO interface  X1 6RUA01 DR2 SR1 DRLY            sets Serial Communication Controller interface  Called it as SCCI below    KI GRUA01 DR2 SR1 DRLY DUTY XR1            sets RELAY of LEGS interface  KI GRUAO1 SRI DUTY XRl        
31. ekxxkxxekxxkkxokxxkxokxxekxxkxxxkxxe    int CALLBACK WriteAndReadBus  C  DWORD Wait TicketTime  HANDLE hComm   char  WrDataStr  char  RdDataStr        MSG Message  int i  n  nReceive   char buf 1024   rbuf 1024  DWORD dwTime  nBytesRead    xkxxkxxxxxxxkxxxkxxkkxxkxxekxxkxxkxxoxxxkxxkxxxekxxekkxxekxxok  PC transmite the contents of WrDataStr to instrumene  34410a through ki usb gpib controller  xxkxxxkxxkxxkkxxkxxxkxxokxekxxkxxkxkxexxxexxxekxxkxxekxxxkxx    nReceive 0   if WrDataStr      wsprintf rbuf   Xs   WrDataStr      WriteFileChComn  rbuf  strlen rbuf    amp nBytesWrite  NULL       dwTime GetTickCount  Wait TicketTime   RdDataStr 0   vhile 1      if GetTickCount   gt  dwTime      if StopTest      StopTest 0   PostMessage hWnd  WM_SYSCOMMAND  SC CLOSE  0       return NULL                                                                          AAA KAKA AAA AAA AAA AAA KAKA  PC will execute the work for requirement with method of    page47    background processing to maintain window operation                              kk AA KKK YA  if    PeekMessage  amp Message  NULL  0  0  PM REMOVE       if  C  C  Message  message  WM NCLBUTTONDOWN  amp  amp   Message  wParam  0x14  211  C  Message  message  WM SYSCOMMAND  amp  amp   Message  wParam  SC CLOSE  211  C  Message  message  WM KEYDOWN  amp  amp   LOWORD  Message  wParam   0x1b           StopTest 1       else        TranslateMessage  amp Message       DispatchMessage  amp Message     if haccel  NULL         TranslateAccele
32. gnal for the  PCB for Testing and KI GRUAO1 will be transformed to  RS232 LEVEL signal first through the RS232 LINE DRIVER IC   Ds275 or ST3232CTR or Max232  etc   and then the RS232 LEVEL  signal is transmitted out by the PCB or KI GRUAOL      if the power of PCB for Testing is 3 3 VDC  it must be  decided that the Rxd PIN of PCB for Testing is able to  accept the 5V LEVEL of RS232 SIGNAL  if not accepted  it  will be suggested that  Method 1  the utilization of  RS232 LEVEL  signal for   communication     Method 2  Make the output of the KI GRUAO1 TTL RS232 PORT  Txd PIN converted to 3V through the logic gate  of 74LS07  74LS08 or 74LS09 and then link to  the Rxd PIN of the PCB for Testing      Instrument of the RS232 CONNECTOR signal which is RS232 LEVEL    TTL RS232 PORT will be made to link with the instrument of  RS232 CONNECTOR only that their signal must be converted into  signal of RS232 LEVEL first through the RS232 LINE DRIVER IC  of Max232  Ds275  ST3232CTR or Max232   etc     page27    KI GRAA02        10u 50v ceramic    To KIGRxAO1 RS232 TTL PORT  To RS232 DCE  of Instrument       To RS232 TTL PORTb To RS232 TTL PORTa    L5       To instrument RS232 PORT DCE    XRS232 PORT DS275   it is able to link with the RS232 PORT DCE of instrument directly      The method of connecting wire  DTE  Data Terminal Equipment   Rxd   Pin 2    Txd   Pin 3  Ground   Pin 5    page28    k It may link directly to the RS232 PORT DCE of instrument   Because the viring method of RS232 P
33. he      abcdefghi iklmnopqrstuvvxyz  to K1 GRUA01   b  KI GRUAO1 will transmite      abcdefghi iklmnopqrstuvvxyz  to 10 buffer of KI GRUA01 from the RS232 PORTb  TXD Pin through RXD Pin of KI GRUAOI    c  KI GC1201 will read the contents of 10 Buffer in    page32    KI GRUAO1 and send the read results back to  KiGiraz  eze   d  the contents read from item c must be      abcdefghi iklmnopqrstuvvxyz       kk To inspect the function of the Digital 10 PORTx and  Digital 10  PORTy of KI GRUAOI    The verification of functions for KI GRUAO1 Digital IO PORT  is taken through the KI GC1201 and KiGirax exe  describing  as below      1  If KI GRUAO1 has been connected with the POWER  DC  7V    the POWER must be moved out    2  KI GRUAO1 Digital IO      Digital IO PIN which is correspondent with PORTx and  PORTy are linked together     Description   pinl of PORTx vs pinl of PORTy  pin8 of PORTx vs pin8 of PORTy    3  The primary address of KI GRUAOl is set up  such as     KI GRUAOI    24 and 25 and 26 and 27   without any configuration ie  default address     KI GRUA01 R4   2 and 3 and 4 and 5 and 6 and 7   without any configuration ie  default address     4  The GPIB connector of KI GRUAOl1 is linked with that of  KI GC1201    5  The USB connector of PC is linked with that of KI GC1201    6  KI GRUAO1 will be connected with the POWER  DC 177  and  4 Digital IO port of KI GRUA01 will be set up automatically  as the state of input    T  Start to test          PIO 26   00     P10   27  Rp
34. he PORTy of KI GRUAOl  i e  KI GC1201 transmite  the following signal of ieee488 1 to KI GRUAOI    ATN01 UNL          1427 ATNOO 00        ATNOI     b  KI GRUAO1 will configure the output value of  the Digital IO PORTy as     FF        c  KI GC1201 will read the input value of the  KI GRUAO1 PORTx    ATN01 UNL 1400 TA26 ATNOO Read Input Value ATNO1  KI GC1201 read the correct value to be     00      d  PIO  26  Description       1  KiGirax  exe will transmite  P10  26  to  KI GC1201     2  KI GRUAO1 PORTx will be configured as  state of input     a  i e  KI GC1201 transmite the following signal  of ieee488  1 to KI GRUAOI    ATN01 UNL TA00 LA26 ATNOO  ATNOI     b  KI GRUAO1 configure the state of input for  PORTx     e  PIO 27   FF   P10   27  Rp  FF    Description       1  KiGirax exe will transmite  PIO 27  FF  PIO   26   to KI GC1201     2    a  KI GC1201 will transmite the Hex data  FF  to the  PORTy of KI GRUAOl  i e  KI GC1201 transmite    page35    the following signal of ieee488 1 to  KI GRUAO1    ATN01 UNL TAO0 1427 ATNOO FF ATNOI     b  KI GRUAOl will configure the output value  of the Digital IO PORTy as  FF     c  KI GC1201 will read the input value of the  KI GRUAO1 PORTx  i e  KI GC1201 transmite the  following signal of ieee488 1 to KI GRUAOI    ATNO1 UNL 1400 TA26 ATNOO 3 amp  DATA ATNOI  KI GC1201 read the correct value to be  FF   3 Examples for the application of          0  01     Examples of utilizing KI GC1201 to control the Digital IO PORT  of KI GRUA01
35. instruction of  SEND  19      IDN      will be transmitted  to instrument Al9 through ki usb gpib controller K1 6C1201   after sub program is executed completely  the response data        ADVANTEST  R3131  22286039  B02      from instrument Al9 will be read and saved in RdDataStr by  PC     page50    
36. ng Board of Private Design    TTL LEVEL RS232 PORT  of KI GRUAO1       Note     kif many sets of electronic circuit for interface RS233  RS422  RS423 or RS485 which put to use the same one  PCB without power supplier  it will only need to link  the PCB above mentioned with one of the RS232 P  RT 5Y   PIN for KI GRUAOl  it is the reason that all the  RS232 PORT 5V PIN for KI GRUAOl will commonly put to  use one 5VDC 100mA power supplier        the PCB for Testing need the low noise signal  it will  insert IC with the function of isolating noise signal    page26    for PHOTO COUPLER or ISOLATOR between TTL RS232 PORT of  KI GRUAO1 and the PCB For Testing  which will avoid  crossing into the PCB for Testing from the noise of  KI GRUAO1  PC and GPIB CONTROLLER      If the PCB For Testing or instrument need the interface of  RS422  RS423 or RS485  it will insert the IC  DS3486       of SIGNAL LINE DRIVE for RS422  RS423 or RS485 interface  between TTL RS232 PORT of KI GRUAO1 and the PCB For Testing  or instrument  so PC may make the communication with the  PCB For Testing or instrument throuth GPIB Controller and  KI GRUAO1     kif there is distance over a meter between the PCB for Testing  and KI GRUAO01  PC take communication to the RS232 PORT of  KI GRUAO1 with TTL LEVEL signal which attenuate easily  and   the event of transmision Error may happen  it will be suggested  that the utilization of     RS232 LEVEL    signal for communication  is more reliable  i e  the TTL LEVEL si
37. om the RS232 PORTa  of KI GRUAO1    1  RS232 PORT DTE for PC  or USB to RS232 Converter   and KI GRUAO1 will be linked together through  RS232 CABLE FOR CROSSOVER     2  KI GRUAO01 make connection with the power  7v      3  The appliction program which is KiGirax exe  the  Hyper Terminal of Windows XP or other communiction  program of RS232 Terminal will be executed and the  RS232 BAUDRATE for PC must be setup as 115200    page30    4  To read the data from the RS232 PORTa of KI GRUA01  CONFIG  Press Enter Key     Data described as below wille be transmitted   From KI GRUAO1 to PC through RS232 PORT   1  MODEL NO of interface board  KI GRUAOI  2  The GPIB ADDRESS and Baudrate Value of KI GRUAOI   3  Data Sheet and partial User Manual of KI GRUAOI     Example     Input   CONFIG   and Press Enter Key     Data Responded from KI GRUAOl to         GPIB 24  BAUDRATE 9600       Supporting IEEE488 T and L function are inclusive of  multiple Primary Address  which are corresponded with the  PORTx  PORTy  PORTa  PORTb  PORTc and PORTd of KI GRUAOI     2 The inspection of KI GRUAO1     kTo inspect the function of Rs232 PORTa and Rs232 PORTb  for KI GRUAO1    The function of Rs232 PORTa and Rs232 PORTb for  KI GRUAO1 will be instected as described below     1  If KI GRUAO1 has been connected with the POWER  DC  77    the POWER must be moved out    2  The signal wires RXD and TXD of 2 sets TTL Level RS232  for inspecting KI GRUA01 Board will be linked together    as below   PORTa RXD YS P
38. rator hWnd  haccel   amp Message                                                       kk  Same situation      mentioned above       also take the method  of background processing to poll the communication port  the data vill be responded to PC from instrument through  ki usb gpib controller  PC vill save these data in the  address of RdDataStr  HAKKKKAKKKAKKAKAK AKA KAKA AAA KAKA AAA KAKA AAA AAA AAA           KAA KAKA    if   GetCommMask hComm   amp dwEvent          ClearCommError hComn   amp dwError   amp comstat     if  C     ReadFi le hComm  rbuf  comstat  cbInQue   amp nBy tesRead  NULL     page48     amp  amp nBytesRead        rbuf nBytesRead   0  n nBytesRead   wsprintf buf   Xs   rbuf           1 0  1        if i   nBytesRead break   if buf i     r  amp buf i     n         wsprintf   RdDataStrtstrlen RdDataStr            buflil    nReceivett     buf  i 1        r     amp  amp buf i        n          goto COMMANDOK     else if buf i      n          goto COMMANDOK         dwlime GetTickCount   Wait_TicketTime       continue   COMMANDOK    if StopTest      StopTest 0   PostMessage hWnd  WM SYSCOMMAND  SC CLOSE  0    return 0      return nReceive      if StopTest      StopTest 0   PostMessage hWnd  WM_SYSCOMMAND  SC_CLOSE  0      page49    return 0        return 0        The application example for above sub program     Example   SEND  19     xIDN   Rp  ADVANTEST  R3131  22286039  B02    WriteAndReadBus   C   1000  hComm     SEND  19 V XIDN N  r n    RdDataStr       The 
39. s 1  The codes of VISUAL CH     portc   portc   0x40   wsprintf buffer   PIO 26 VR 2xV  r n   portc      WriteFile  C  hComm  buffer  strlen buffer    amp nBytesWrite  NULL         4  To configure the bit4 output of KI GRUAO1  PORTc as 0  The codes of VISUAL C       portc   portc  amp    xef   vsprintf buffer   PIO 26 VR 2xV  r n   portc      WriteFile   C  hComm  buffer  strlen buffer    amp nBytesWrite  NULL                VISUAL    4  communication subprogram for      and the  RS232 PORT of KI GRUA01    Ek Ek Ek AA SA AA AS AA AA SA AA                           Sub progran is used for the data from the output of  communication port  these data will be transmitted  to instrument through ki usb gpib controller  in the  same way  the text data in communication port  responded from instrument will be read through  ki usb gpib controller and added with characters of  04 0   in the rear   hWnd  The handle of main window  WrDataStr  Address of buffer is used to save the   data which will be outpput from the  communication port    page46    Wait TicketTime  The time setup to read the input data  continuously from communication port   unit is 1 1000 second  for ezample    3000  waiting for data over 3 second  it  mean that bus is error  and the procedure  for WriteAndReadBus will be withdrawn     RdDataStr  Address of buffer is used to save the data  which are received from communication port   return  number bytes of data received from    communication port  xkxxkkxxkkxxkxxkkxxkxx
40. struction format   a  PORTa and PORTb are set us as Default Data Flow Type   input 0    b  PORTa is set up as Code Reader Data Flov Type and  PORTb as Default Data Flow Type     input 1  Defaul t Data F low Type    k It is fit for controlling general test instrument    kk The data transmitting from instruments to  KI GRUA01 RS232 Port     a  Block Data  The end of Block Data must be with 0a  and  the bytes of total data must not excess  over 748 bytes    b  KI GRUAO  will save the data input from Rs232 Port in its  10 Buffer until the data is    0a     the end of Block data   from Rs232 Port  and then   set the state of Request Service Signal as ON   and the state of 10 Buffer Status as READY     i e  Serial Poll Status Byte  80   50Hex     c  GPIP Controller will read the data in the 10 Buffer  of KI GRUAO1 for RS232     1  if the state of 10 Buffer Status is not Ready  KI GRUAO1 will not transmite data to  GPIP Controller    2  if the state of IO Buffer Status is Ready   KI GRUAOl will transmite all of data in 10 Buffer  and signal of EOI to GPIP Controller    3  if all of data in 10 Buffer are already read by the  GPIB CONTROLLER  KI GRUAO1 will clear the  10 Buffer  and      Setup the state of 10 Buffer Status as  unavailable  i e  Serial Poll Status Byte  0     page17      Setup the state of Request Service Signal as  off        The data and the signal EOI transmitted from the GPIB CONTROLLER  to KI GRUAO1 GPIB Port    a if the data is neither the 0d nor the Oa   KI GRUA
41. ta     d if the data is with the signal of EOI   KI GRUAO1 will transmite          04 0   to instrument  through KI GRUAO1 RS232 Port       Because Code Reader Data Flow Type Port IO Buffer is private  used and support the synchronous signal  it can prevent the  GPIP Controller from reading error data from the Port 10 Buffer  of KI GRUAOI     Please refer the Application POrogram as below     CheckLedApp Visual C  6 Source Code       kk Because the Port 10 Buffer of Code Reader Data Flow Type is private  use  there are not data carried away at switching RS232 PORT        The method of setting the Baudrate for RS232 PORT of KI GRUAOI     1  RS232 PORT DTE for PC  or USB to RS232 Converter   and KI GRUAO1 will be linked together through  RS232 CABLE FOR CROSSOVER     2  KI GRUAO1 make connection with the power  7v      3  The appliction programs which are KiGirax exe  the  Hyper Terminal of Windows XP or other communiction  program of RS232 Terminal will be executed and the  RS232 BAUDRATE for PC must be setup to 115200    4  To setup the RS232 BAUDRATE of KI GRUAO1 RS232 PORT   Instruction format   RS232 1BaudrateID40d0a Press Enter Key     The relation between BaudrateID and Baudrate Value     BaudrateID Baudrate Value  0 is 2400  1 is 9600  default   2 is 14400    page20    is  is  is  is  is         c   0  Me co    is  Example     Input     19200  28800  38400  57600  115200  128000    RS232 2  and Press Enter Key     Response     GPIB 24  BAUDRATE  14400     Command Baudra
42. te Value    RS232 0 2400    RS232 1 9600 default     RS232 2 14400  RS232 3 19200  RS232 4 28800  RS232 5 38400  RS232 6 57600  RS232 7 115200  RS232 8 128000    Description     The instruction as mentioned above is given to KI GRUAOI  of which BaudrateID for RS232 PORT is set up as 2 and the  BaudrateID will be saved in the flash memory of KI GRUA01  IC SM59264  The KI GRUAOl1 will read the BaudratelD after  it is power on and the KI GRUAO1 baudrate of RS232 PORT  will setup as 14400 after it receive data from its    GPIB PORT     5  To read the BAUDRATE VALUE of K1 GRUA01 through its GPIB PORT     After KI GRUA01 is power on and before it receive data from  its GPIB PORT  the Baudrate and GPIB ADDRESS value saved in  the GPIB BUFFER of K1 GRUA01 can be read from its GPIB PORT    Example     Input instruction through KI GC1201     SEND  24    Response     GPIB 24  BAUDRATE 14400     page21    XThe method for KI GRUAO1 setting up GPIB ADDRESS      1  RS232 PORT DTE for PC  or USB to RS232 Converter   and KI GRUAO1 will be linked together through  RS232 CABLE FOR CROSSOVER     2  KI GRUAO1 make connection with the power  7v       3  The appliction program which is KiGirax exe  the  Hyper Terminal of Windows XP or other communiction  program of RS232 Terminal will be executed and the  RS232 BAUDRATE for PC must be setup as 115200     4  To setup the PRIMARY GPIB ADDRESS of KI GRUAOI    Instruction format   GPIB GPIB ADDRESS Press Enter Key    The GPIB ADDRESS is    a interger n
43. umber between 1 to 30  MODEL KIGRUAO1 R2  BASE GPIB ADDRESS   KEYIN GPIB ADDRESS PORTid GPIB ADDRESS    24 0 PORTa 24  Default   24 1 PORTb 25  Default   24 2 PORTx 26  Default   24 3 PORTy 27  Default   4 4 PORTa 4   4 5 PORTb 5   4 6 PORTx 6   4 T PORTy 7   8 8 PORTa 8   8 9 PORTb 9   8 10 PORTx 10   8 11 PORTy 11   12 12 PORTa 12   12 13 PORTb 13   12 14 PORTx 14   12 15 PORTy 15   16 16 PORTa 16   16 17 PORTb 17   16 18 PORTx 18   16 19 PORTy 19   20 20 PORTa 20   20 21 PORTb 21   20 22 PORTx 22    page22    MODEL K  GRUA01 R4  BASE GPIB ADDRESS                                          Example      20  24  24  24  24  28  28  28    0    Oo OO OO    OO    OO                          po po po po po Do DO     ka             gt  A A FP FP Q4 4      0200050 HD C      23  24  25  26  27  28  29  30    0                     0014    P             po po P   po no mo po po P   P   YS iZ   Ei Fa e Fa Fa                      C Gi Me Co P   ra C   c CO A En 0014 Co Do Fra C    page23    PORTy 23  PORTa 24  PORTb 25  PORTx 26  PORTy 27  PORTa 28  PORTb 29  PORTx 30    PORTid GPIB ADDRESS  unused  Default   unused  Default   PORTx 2  Default   PORTy 3  Default   PORTa 4  PORTb 5  PORTc 6  PORTd 7  PORTa 8  PORTb 9  PORTc 10  PORTd 11  PORTx 12  PORTy 13  unused  unused  PORTa 16  PORTb 17  PORTc 18  PORTd 19  PORTx 20  PORTy 21  unused  unused  PORTa 24  PORTb 25  PORTc 26  PORTd 27  PORTx 28  PORTy 29  unused    Input instruction   GPIB 0 and Press Enter Key     Response   PORTa  b  c 
44. x  log   automacically through KI GC1201   KIGRUAO1 and Winows Program   in figures as above      page11    1     Download the Visual     6 source code of CheckLedApp program  Download the PCB Layout Document of Relay Board   Download the Driver of Gpib Controller KI GC1201   Download RS232 Windows APP KiGirax exe for KI GC1201                 d  PCB for testing purpose of private design    example  Digital to analog control PCB   LCD Display PCB   etc     The utilization of TTL Level RS232 interface is  more simple than that of USB or GPIB  and it is  also linked into the other instruments with  GPIB interface through KI GRUA01     e  The hardware size is reduced  working speed of  interface is fast  stability is up ward  and  cost is down     The Specification of KI GRUA01   Interfaces of KI GRUA01     a  IEEE488 GPIB  1  b  RS232 DS275orST3232    RS232 level  DB9  DTE  Connector Pin2 RXD  Pin3 TXD    1 PORTa  c  RS232  TIL level       KI GRUAO1 R2   2 PORTa  PORTb  KI GRUAO1 RA   4 PORTa  PORTb  PORTc   PORTd  Note     If RS232 PORTa for item c and item b are working at the same  time  the data input from the RS232 PORTa to the 10 Buffer  of KI GRUAO1 will be set up as unavailable     d  Interface of Digital IO   2 PORTx  PORTy  XElectrical specification of KI GRUAOl      Power Voltage  input from external    DC 6 8V  Minimum   DC 7V  Typical   DC 7 5V  Maximum     Power Jack   2  Imm 5  5mm 1 1mm   Voltage for the center of Power Jack is positive     GPIB Connector   DB24
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
  Dossier de presse  Lego Jimi Stringer : Free Download, Borrow, and Streaming : Internet Archive    Samsung WF8590FEA Инструкция по использованию  Untitled  Panasonic CS-ME7QKUA Data Sheet  1008-049_Artwork_IFU_Stork_Canada (French)_Rev.B  取扱説明書    Copyright © All rights reserved. 
   Failed to retrieve file