Bus Blaster v2 self-test

From DP

Revision as of 16:15, 27 April 2011 by Lynn (Talk | contribs)
Jump to: navigation , search

Overview

A way to test the Bus Blaster v2 without an actual JTAG target.

We need a better self test for the Bus Blaster v2. I think something can be done with a custom FT2232 control app and a buffer logic with loop-back cable. half the MPSSE 1 can be input, the other half output. The pins can go 0x55 0xaa and the results read from the loop-back cable from half the JTAG pins... or something.

I'm going to make some logic today and hope that someone is interested in banging up an app :)

We need to test:

  • FT2232->CPLD (16 pins)
  • CPLD->JTAG header (9 pins)

My proposed test is to connect every other JTAG pin with a wire, and alternate a bit pattern on it from the top 8 bits of the FTDI chips. The lower 8 bits will see the loop-back pattern. If it matches, then all is good.

There are only 4 bits of the JTAG (8 pairs, 4 write, 4 read), so it will be duplicated on the output. The input is also expected to be 8bits, if it doesn't match then the CPLD will output 0x00 to the FTDI chip.

Test step-by-step:

  • Load logic (urJTAG)
  • Attach to FT2232 device
  • lower 8 bits of MPSSE1 is 0xaa
  • Read upper 8 bits - it should match
  • Lower 8 bits is 0x55
  • read upper 8 bits - it should match

I'm going to write the logic now. Diagram attached.

BusBlaster-v2-selftest.png

CPLD

FT2232