project.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "project_id": "prod2u-door-temp",
  3. "profile": "prod2u-normal-multiproject-115200-v1",
  4. "display_name": "Prod2U door and temperature controller",
  5. "device": {
  6. "family": "EF2",
  7. "part": "EF2L45BG256B",
  8. "clock_hz": 25000000,
  9. "clock_ball": "J1"
  10. },
  11. "uart": {
  12. "baud": 115200,
  13. "data_bits": 8,
  14. "parity": "N",
  15. "stop_bits": 1,
  16. "flow_control": "none",
  17. "clks_per_bit": 217,
  18. "inter_byte_timeout_ms": 10
  19. },
  20. "outputs": {
  21. "ptc_count": 24,
  22. "fan_count": 4,
  23. "pwm_bits": 8,
  24. "pwm_frequency_hz": 20,
  25. "ptc_polarity": "active_high",
  26. "fan_polarity": "active_low",
  27. "ptc_default": 0,
  28. "fan_default": 26,
  29. "fan_connector_active_level": "high",
  30. "fan_board_inverts": true,
  31. "solenoid_policy": "constant_safe_zero",
  32. "z_policy": "constant_zero"
  33. },
  34. "motors": {
  35. "count": 2,
  36. "fixed_steps": 450,
  37. "execution": "serial",
  38. "order": ["inlet", "outlet"],
  39. "step_rate_hz": 1000,
  40. "step_half_cycles": 12500,
  41. "dir_setup_cycles": 25000,
  42. "direction_values": [0, 1],
  43. "direction_meaning": {"0": "open", "1": "close"},
  44. "limits": "none",
  45. "mapping": {
  46. "inlet": {"axis": "x", "step_ball": "C11", "dir_ball": "B12"},
  47. "outlet": {"axis": "y", "step_ball": "D15", "dir_ball": "H14"}
  48. },
  49. "enable_n": {"ball": "A10", "policy": "constant_low_enabled"}
  50. },
  51. "temperature": {
  52. "value_count": 27,
  53. "device_addresses": [73, 72, 75],
  54. "registers": [0, 1, 2, 3, 4, 5, 6, 7, 8],
  55. "scl_ball": "M8",
  56. "sda_ball": "N9",
  57. "invalid_value": 255,
  58. "maximum_celsius": 150,
  59. "conversion": {
  60. "profile": "ct7428-msb-integer",
  61. "raw_shift": 7,
  62. "raw_width": 9,
  63. "reject_sign_bit": true
  64. }
  65. },
  66. "pins": {
  67. "host_uart_rx": "N11",
  68. "host_uart_tx": "M10",
  69. "solenoid": "P5",
  70. "z_step": "H12",
  71. "z_dir": "F14",
  72. "ls1": "B9",
  73. "ls2": "A11",
  74. "ptc_pwm": ["F16", "G16", "T4", "R5", "T6", "R7", "M1", "N1", "P1", "R1", "T2", "R3", "P16", "R16", "M16", "N16", "P8", "P7", "T9", "P9", "P10", "R10", "T13", "T12"],
  75. "fan_pwm": ["C4", "B5", "B1", "A14"]
  76. },
  77. "resources": {
  78. "target_ram_blocks": 1,
  79. "request_ram_blocks": 1,
  80. "temperature_ram_blocks": 1,
  81. "dsp": 0,
  82. "shared_pwm_comparators": 1,
  83. "shared_motor_executors": 1,
  84. "shared_i2c_readers": 1
  85. },
  86. "protocol": {
  87. "header_hex": "A55A",
  88. "crc": {
  89. "name": "CRC-16/CCITT-FALSE",
  90. "polynomial": 4129,
  91. "initial": 65535,
  92. "reflect_input": false,
  93. "reflect_output": false,
  94. "xor_output": 0,
  95. "coverage": "type_length_payload",
  96. "wire_order": "little"
  97. },
  98. "commands": {
  99. "set_all": 1,
  100. "get_temperature": 2,
  101. "temperature_data": 130
  102. }
  103. },
  104. "timeouts": {
  105. "frame_inter_byte_ms": 10,
  106. "host_get_response_ms": 5000
  107. }
  108. }