您可能感興趣的網頁。 觀看搜尋結果:

 

聯絡是德專家

Sample “testplan” for Utility card & FR3070A

  • Board type: Set-top box printed circuit board assembly
  • Fixture: 2 up dual well
  • Device: 8Mb Serial SPI flash---AT26DF081A
  • Configuration: 1 utility card in module 3 slot 11, 2 FR3070As in utility card slots 1 and 2
  • Promming method:     Parallel programming as show below:

                                         Boards 1,3 wired in parallel, programmed by FR#1

                                         Boards 2,4 wired in parallel, programmed by FR#2

                 

Note:“xdcall” command executes the “xdload” and “xdconnect” commands automatically if they have not been executed earlier.
“Xdload” command loads the DLL into the memory.
“Xdconnect” command closes the relays on the utility card.


                                               Sample testplan

A = msec

!# Program Both Boards
if (BoardSet(1) and BoardSet(2)) or (BoardSet(3) and BoardSet(4)) then
  print "Program U5600 for both boards"
  xdcall "FR_group","send_command",Var,Rtn$; "run AT26EBPV.FRS;run AT26EBPV.FRS"
  xdcall "FR_group","get_answer",Var,Rtn$; "50000; 50000"
  ! print Rtn$

  else

  !# Program on ONLY Board 1 & 3
  if (BoardSet(1) and not BoardSet(2)) or (BoardSet(3) and not BoardSet(4)) then
    print "Program U5600 for either BD1 or BD3"
    xdcall "FR_group","send_command",Var,Rtn$;"run AT26EBPV.FRS;run AT26.FRS"
    xdcall "FR_group","get_answer",Var,Rtn$; "50000; 1000"

  else

    !# Program on ONLY Board 2 & 4
    if (not BoardSet(1) and BoardSet(2)) or (not BoardSet(3) and BoardSet(4)) then
      print "Program U5600 for either BD2 or BD4"
      xdcall "FR_group","send_command",Var,Rtn$;"run AT26.FRS;run AT26EBPV.FRS"
      xdcall "FR_group","get_answer",Var,Rtn$; "1000; 50000"
    end if
  end if
end if

xddisconnect "FR_group"
xdunload "FR_group"

B = (msec - A)/1000
print "FR Test time is "; B

POS = pos(Rtn$, ";")

FR1_Result$ = Rtn$[1;POS-1]
print FR1_Result$

FR2_Result$ = Rtn$[POS+1;len(Rtn$)-POS-1]
print FR2_Result$

if FR1_Result$ = ">" then
  goto FR1_Out
end if

if FR1_Result$ = "$1C12!" then
  FR1_Result$ = "Communication Failure on U5600 ...."
end if

FR1_Out:

if FR2_Result$ = ">" then
  goto FR2_Out
end if

if FR2_Result$ = "$1C12!" then
  FR2_Result$ = "Communication Error on U5600 ...."
end if

FR2_Out:

if BoardSet(1) then
  board number is 1
  if FR1_Result$ = ">" then
    print "Board 1 Programming Passed"
  else
    print "Board 1 Programming Failed"
    fail device
  end if
end if

if BoardSet(2) then
  board number is 2
  if FR2_Result$ = ">" then
    print "Board 2 Programming Passed"
  else
    print "Board 2 Programming Failed"
    fail device
  end if
end if

if BoardSet(3) then
  board number is 3
  if FR1_Result$ = ">" then
    print "Board 3 Programming Passed"
  else
    print "Board 3 Programming Failed"
    fail device
  end if
end if

if BoardSet(4) then
  board number is 4
  if FR2_Result$ = ">" then
    print "Board 4 Programming Passed"
  else
    print "Board 4 Programming Failed"
    fail device
  end if
end if