JTAG Boundary Scan Test Systems (IEEE 1149.1)

Search

XJAPI 软件&硬件接口

XJAPI一个简单易用的连接硬件的DLL应用程序接口(API), 进入JTAG链通过XJLink或是PXI硬件,易于集成更广泛的系统,例如开发评估板,测试系统...

USB到JTAG硬件和软件的接口是由一个高速USB到JTAG硬件模块( XJLink / XJLink2 )和XJAPI ,使您能够直接访问和控制JTAG链。

到JTAG的PXI总线的硬件和软件的接口是由一个高速的PXI到JTAG硬件模块(PXI-01)和XJAPI 。

XJAPI 产品规格  USB-to-JTAG / PXI-to-JTAG hardware and software interface  (PDF, 815k)  |  View all datasheets

主要优点

  • 快速通信/下载 USB (480 Mbps), JTAG (60 Mbps peak);
  • USB 到JTAG: 小巧,轻便的硬件设计 --- 用于实验室和现场工作;
  • PXI 到 JTAG 也可提供外形: 所有软件兼容USB到JTAG版本( 3U/32位的PXI /PCI总线接口);
  • 自载许可,使得XJTAG可随意安装在多台机器上;
  • 可用于任何pinout, ARM, Xilinx, Altera, 等等;
  • 易控制。

特点

  • 兼容JTAG/IEEE 1149.x;
  • 高速的 USB 2.0 接口 (480 Mbps), 向下兼容USB 1.0 & 1.1;
  • USB 总线供电 (无需额外的 PSU);
  • 可供给目标板电源 (3.3V, < 100 mA);
  • TCK 时钟频率可达 60 MHz;
  • 可调的JTAG信号终端;
  • 自动信号偏差控制;
  • 软件配置Pin mapping;
  • JTAG 信号支持到 +5V ;
  • 在JTAG连接器上多余的信号可以用来控制其他项目,例如 控制目标重置/启动电源;
  • 提供所有的文件,库和应用实例;
  • 设计应用在C或是C++;
  • 提供XJDemo板;
  • 运行在Windows 2000 / XP / Vista / Windows 7。

XJAPI functions

  1. Initialise, set up and terminate the API.
  2. Low level functions to set up JTAG scans, perform low level JTAG accesses.
  3. High level JTAG functionality.

The full C header file is available for download: XJAPI.h

The following is a summary of the functions:

Initialising / Terminating Functions

Function to set up the hardware and the pin mapping. Specify the desired frequency in Hertz (XJAPI will set to the nearest MHz), the required pin mapping and whether the power should be applied to the board.

XJAPI_HardwareSetup( frequency, pinMap, powerOn );

Function to release the hardware. Must be called before exiting.

XJAPI_HardwareRelease( );

Function to set the pin map - This function takes a parameter which is an array of 20 elements, corresponding to the 20 pins. Each value i should be the type of pin i+1, with the exception of the fixed pins:

  • pin 1 - VCC
  • pin 2 - NC
  • pin 4 - GND
  • pin 20 - GND

N.B. The array starts at 0 but the pins at 1, so the setting for pin 10 would be written in array[9].

XJAPI_SetPinMap( pinMapping, pinTypes[20], powerOn );

Low Level JTAG Access

Function to set the frequency - must be between 100 KHz and 60 MHz.

XJAPI_SetFrequency( frequency );

Function to apply TMS reset.

XJAPI_TmsReset( );

Function to go to a specific JTAG state.

XJAPI_GotoState( state );

Function to set the final state that the system goes to after a DR or IR scan operation. By default, both scans go to the JTAG_IDLE state.

XJAPI_SetEndState( endir, enddr );

Function to clock the JTAG chain a specific number of times.

XJAPI_ClockChain( count );

High Level Scan Functions

Function to execute a JTAG DR/IR scan cycle. By default, it will leave the system in the JTAG_IDLE state after the scan. To specify a different end state, use XJAPI_SetEndState.

The type of scan (DR or IR) is specified, the number of bits to scan, and the addresses of data buffers: "outData" is the data to be shifted out, bit 0 of byte 0 first; "inData" is the data shifted in, bit 0 of byte 0 first.

XJAPI_Scan( scanType, length, outData, inData );

Function to implement multiple scanning. This function is used to scan multiple (nScans) chains of mixed type (DR and IR scans) and of mixed length.

N.B. "scanTypes", "length", "outData" and "inData" are all arrays of length "nScans".

XJAPI_ScanMultiple( nScans, scanTypes, length, outData, inData );

For support, or for a quote on any part of the XJTAG system, please contact:

广州市风标电子技术有限公司
地 址 : 中国广东省广州市天河区五山路248号金山大厦南塔1501室
电 话 : 020-86003016,020-86003026
传 真 : 020-86003016转802
Email :
Website : www.windway.cn