c232hm.cfg 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # FTDI USB Hi-Speed to MPSSE Cable
  2. #
  3. # http://www.ftdichip.com/Products/Cables/USBMPSSE.htm
  4. #
  5. # C232HM-DDHSL-0 and C232HM-EDSL-0 provide 3.3V and 5V on pin 1 (Red),
  6. # respectively.
  7. #
  8. # Adapter: http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_C232HM_MPSSE_CABLE.PDF
  9. # Chip: http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT232H.pdf
  10. # See pinout/colors at end of this file.
  11. #
  12. # Tech notes:
  13. # http://www.ftdichip.com/Support/Documents/AppNotes/AN_135_MPSSE_Basics.pdf
  14. # http://www.ftdichip.com/Support/Documents/AppNotes/AN_129_FTDI_Hi_Speed_USB_To_JTAG_Example.pdf
  15. adapter driver ftdi
  16. #ftdi device_desc "C232HM-DDHSL-0"
  17. #ftdi device_desc "C232HM-EDHSL-0"
  18. # Common PID for FT232H
  19. ftdi vid_pid 0x0403 0x6014
  20. # Layout
  21. # High data byte 0x40 configures red LED on ACBUS6 initially high (unlit, since active-low)
  22. # Low data byte 0x08 configures TMS on ACBUS3 initially high (asserted); TCK, TDI low
  23. # High direction byte 0x40 configures red LED on ACBUS6 as high (output)
  24. # Low direction byte 0x0b configures TDO on ACBUS2 as low (input)
  25. ftdi layout_init 0x4008 0x400b
  26. # ---A*BUS-------CCCCCCCC|DDDDDDDD
  27. # --------\______76543210|76543210
  28. # LED 0x4000 = 01000000|00000000 = ACBUS6
  29. #GPIOL0 0x0010 = 00000000|00010000 = ADBUS4
  30. #GPIOL1 0x0020 = 00000000|00100000 = ADBUS5
  31. #GPIOL2 0x0040 = 00000000|01000000 = ADBUS6
  32. #GPIOL3 0x0080 = 00000000|10000000 = ADBUS7
  33. # -ndata treats the LED as active-low for expected behavior (toggle when transferring)
  34. ftdi layout_signal LED -ndata 0x4000
  35. # Available for aliasing as desired
  36. ftdi layout_signal GPIOL0 -data 0x0010 -oe 0x0010
  37. ftdi layout_signal GPIOL1 -data 0x0020 -oe 0x0020
  38. ftdi layout_signal GPIOL2 -data 0x0040 -oe 0x0040
  39. ftdi layout_signal GPIOL3 -data 0x0080 -oe 0x0080
  40. # C232HM FT232H JTAG/Other
  41. # Num Color Name Func
  42. # 1 Red VCC Optionally, can power the board if it is not using its own power supply.
  43. # 2 Orange ADBUS0 TCK
  44. # 3 Yellow ADBUS1 TDI
  45. # 4 Green ADBUS2 TDO
  46. # 5 Brown ADBUS3 TMS
  47. # 6 Grey ADBUS4 GPIOL0
  48. # 7 Purple ADBUS5 GPIOL1
  49. # 8 White ADBUS6 GPIOL2
  50. # 9 Blue ADBUS7 GPIOL3
  51. # 10 Black GND Connect to ground