mode - 0 - send data_out buffer only to TMS, TDO, TCK.
1 - send data_out buffer to TMS, TDO, TCK and transfer TMS,
TDO, TDI, TCK JTAG states to data_in buffer.
size - stream size - 1 to 120 bytes
data_out - buffer with data to be transmitted - up to 120 bytes
Bit 7 6 5 4 3 2 1 0
- - - - TMS TDO - TCK
data_in - buffer with data received from JTAG - up to 120 bytes
Bit 7 6 5 4 3 2 1 0
- - - - TMS TDO TDI TCK
Return value:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
When instruction F_custom_jtag_stream is executed then TMS, TDO and TDI states are transferred
to JTAG I/O in order - first TMS state, then TDO, then TDI is read (if required) and on the end state
of TCK is modified. Time between all these states are 250 ns. Time between the next JTAG state -
5 us. Below is an timing example for a following data_out block - 0x0, 0xD, 0x8, 0x1
0x0 - all LOW
0xD - TMS-HI, TDO-HI, TCK-HI
0x8 - TMS-HI, TDO-LO, TCK-LO
0x1 - TMS-LO, TDO-LO, TCK-HI
TMS ______|----------------------------|___________
TDO _______|--------------|________________________
TDI ________x==============x=============x=========
TCK _________|--------------|_____________|--------
0 0xD 0x8 0x1
<---- 5us ----><---- 5us ---->
Time between TMS/TDO, TDO/TDI, TDI/TCK changes - appr 250 ns.
Max stream size - up to 120 data block will be transmitted in 600 us. One 120 block size slot allows
to transmit 2 to 3 full JTAG sequences.
See attached in the software package example
C:\Program Files\Elprotronic\USB FlashPro430\API-DLL-Demo\JTAG-Stream
how the customized JTAG instruction can be used. Package contains one source file
FPA-JTAG-Demp.cpp
and header file MSPPrg-Dll.h that is taken from DLL package. In the subdirectory Release
110