project.json 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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. "rx_ball": "N11",
  20. "tx_ball": "M10"
  21. },
  22. "outputs": {
  23. "ptc_count": 8,
  24. "fan_count": 4,
  25. "chamber_ptc_count": 4,
  26. "chamber_ptc_pairs": [
  27. {"chamber": 1, "ptc_indices": [0, 1]},
  28. {"chamber": 2, "ptc_indices": [2, 3]},
  29. {"chamber": 3, "ptc_indices": [4, 5]},
  30. {"chamber": 4, "ptc_indices": [6, 7]}
  31. ],
  32. "ptc_channels": [
  33. {"index": 0, "name": "ptc1", "signal": "ptc_pwm_out[0]", "board_signal": "HEAT2", "ball": "G16", "connector": "CON18", "connector_pin": 3, "polarity": "active_high"},
  34. {"index": 1, "name": "ptc2", "signal": "ptc_pwm_out[1]", "board_signal": "HEAT1", "ball": "F16", "connector": "CON18", "connector_pin": 1, "polarity": "active_high"},
  35. {"index": 2, "name": "ptc3", "signal": "ptc_pwm_out[2]", "board_signal": "HEAT8", "ball": "N1", "connector": "CON27", "connector_pin": 3, "polarity": "active_high"},
  36. {"index": 3, "name": "ptc4", "signal": "ptc_pwm_out[3]", "board_signal": "HEAT7", "ball": "M1", "connector": "CON27", "connector_pin": 1, "polarity": "active_high"},
  37. {"index": 4, "name": "ptc5", "signal": "ptc_pwm_out[4]", "board_signal": "HEAT14", "ball": "R16", "connector": "CON28", "connector_pin": 3, "polarity": "active_high"},
  38. {"index": 5, "name": "ptc6", "signal": "ptc_pwm_out[5]", "board_signal": "HEAT13", "ball": "P16", "connector": "CON28", "connector_pin": 1, "polarity": "active_high"},
  39. {"index": 6, "name": "ptc7", "signal": "ptc_pwm_out[6]", "board_signal": "HEAT20", "ball": "P9", "connector": "CON29", "connector_pin": 3, "polarity": "active_high"},
  40. {"index": 7, "name": "ptc8", "signal": "ptc_pwm_out[7]", "board_signal": "HEAT19", "ball": "T9", "connector": "CON29", "connector_pin": 1, "polarity": "active_high"}
  41. ],
  42. "fan_channels": [
  43. {"index": 0, "name": "fan1", "signal": "fan_pwm_out[0]", "board_signal": "FAN_PWM3", "ball": "B1", "connector": "CON25", "connector_pin": 7, "polarity": "active_low"},
  44. {"index": 1, "name": "fan2", "signal": "fan_pwm_out[1]", "board_signal": "FAN_PWM1", "ball": "C4", "connector": "CON8", "connector_pin": 7, "polarity": "active_low"},
  45. {"index": 2, "name": "fan3", "signal": "fan_pwm_out[2]", "board_signal": "FAN_PWM2", "ball": "B5", "connector": "CON24", "connector_pin": 7, "polarity": "active_low"},
  46. {"index": 3, "name": "fan4", "signal": "fan_pwm_out[3]", "board_signal": "FAN_PWM4", "ball": "A14", "connector": "CON26", "connector_pin": 7, "polarity": "active_low"}
  47. ],
  48. "pwm_bits": 8,
  49. "pwm_internal_width": 7,
  50. "pwm_max_duty": 100,
  51. "pwm_phase_count": 100,
  52. "pwm_slot_clks": 1042,
  53. "pwm_frequency_hz": 20,
  54. "pwm_actual_frequency_hz": 19.993602047,
  55. "ptc_polarity": "active_high",
  56. "fan_polarity": "active_low",
  57. "ptc_default": 0,
  58. "fan_default": 10,
  59. "fan_connector_active_level": "high",
  60. "fan_board_inverts": true,
  61. "boot_targets": {"ptc": 0, "fan": 10}
  62. },
  63. "doors": {
  64. "scope": "four_chamber_thermal_plus_chamber1_three_doors",
  65. "chamber_controlled": 1,
  66. "door_axes": ["x", "y", "z"]
  67. },
  68. "motors": {
  69. "count": 3,
  70. "order": ["x", "y", "z"],
  71. "role": "door",
  72. "execution": "overlap",
  73. "step_rate_hz": 1000,
  74. "step_half_cycles": 12500,
  75. "motion_service_us": 25,
  76. "motion_service_clks": 625,
  77. "phase_factor": 5120,
  78. "profile_full": 256,
  79. "profile_scale_q8": [64, 66, 73, 84, 98, 114, 132, 150, 170, 188, 206, 222, 236, 247, 254, 256],
  80. "cal_ramp_unit": 8,
  81. "scheme": "A_full_feature_per_axis_kernels_shared_slow_arith",
  82. "dir_setup_cycles": 25000,
  83. "open_dir_value": 0,
  84. "close_dir_value": 1,
  85. "dir_close_level": [1, 1, 1],
  86. "positioning": {
  87. "mode": "percent_close",
  88. "percent_min": 0,
  89. "percent_max": 100,
  90. "open_endpoint_percent": 0,
  91. "close_endpoint_percent": 100,
  92. "mid_percent_min": 1,
  93. "mid_percent_max": 99,
  94. "rounding": "half_up",
  95. "mid_clamp": "1_to_travel_minus_1",
  96. "latest_wins": true,
  97. "idempotent_same_target": true,
  98. "command_interrupt": "finish_current_high_pulse_then_replan",
  99. "shared_percent_planner": true,
  100. "planner_count": 1,
  101. "endpoint_guard_extra_steps": 500
  102. },
  103. "mapping": {
  104. "x": {"axis": "x", "role": "door", "step_ball": "C12", "dir_ball": "B12", "step_connector": "CON104", "step_connector_pin": 2, "dir_connector": "CON104", "dir_connector_pin": 3},
  105. "y": {"axis": "y", "role": "door", "step_ball": "L12", "dir_ball": "J11", "step_connector": "CON105", "step_connector_pin": 2, "dir_connector": "CON105", "dir_connector_pin": 3},
  106. "z": {"axis": "z", "role": "door", "step_ball": "L14", "dir_ball": "K14", "step_connector": "CON106", "step_connector_pin": 2, "dir_connector": "CON106", "dir_connector_pin": 3}
  107. },
  108. "enable_n": {
  109. "ball": "C11",
  110. "connector": "CON120",
  111. "connector_pin": 2,
  112. "active_level": "low",
  113. "policy": "permanent_high",
  114. "notes": "NPN open-collector invert at board; FPGA drives constant 1 so connector EN is permanently asserted."
  115. }
  116. },
  117. "limits": {
  118. "limit_count": 6,
  119. "active_level": "high",
  120. "limit_active_high": [true, true, true],
  121. "close_limit_is_ls": [true, true, true],
  122. "functional_use": true,
  123. "runtime_use": true,
  124. "startup": {
  125. "enabled": true,
  126. "mode": "seek_close_then_measure_open",
  127. "max_steps": 5000,
  128. "min_travel_steps": 2,
  129. "step_rate_hz": 1000,
  130. "axis_order": ["x", "y", "z"],
  131. "calibration_schedule": "serial_xyz",
  132. "runtime_overlap_allowed": true,
  133. "final_position": "open",
  134. "limit_stop_during_move": true,
  135. "stop_semantics": "truncate_current_high_pulse_immediately_after_synchronized_limit",
  136. "additional_rising_edges_after_synchronized_limit": 0,
  137. "runtime_limit_use": true,
  138. "partial_axis_failure_allowed": true,
  139. "fault_lock_until_reset": true
  140. },
  141. "channels": [
  142. {"name": "x_limit_ls", "ball": "A5", "connector": "CON12", "connector_pin": 1, "side": "low"},
  143. {"name": "x_limit_hs", "ball": "B6", "connector": "CON12", "connector_pin": 2, "side": "high"},
  144. {"name": "y_limit_ls", "ball": "C8", "connector": "CON12", "connector_pin": 3, "side": "low"},
  145. {"name": "y_limit_hs", "ball": "A8", "connector": "CON12", "connector_pin": 4, "side": "high"},
  146. {"name": "z_limit_ls", "ball": "K16", "connector": "CON129", "connector_pin": 1, "side": "low"},
  147. {"name": "z_limit_hs", "ball": "J15", "connector": "CON129", "connector_pin": 2, "side": "high"}
  148. ]
  149. },
  150. "temperature": {
  151. "value_count": 27,
  152. "device_addresses": [73, 72, 75],
  153. "registers": [0, 1, 2, 3, 4, 5, 6, 7, 8],
  154. "scl_ball": "M8",
  155. "sda_ball": "N9",
  156. "bus": "i2c",
  157. "device": "CT7428",
  158. "invalid_value": 255,
  159. "maximum_celsius": 150,
  160. "conversion": {
  161. "profile": "ct7428-msb-integer",
  162. "raw_shift": 7,
  163. "raw_width": 9,
  164. "reject_sign_bit": true
  165. }
  166. },
  167. "pins": {
  168. "host_uart_rx": "N11",
  169. "host_uart_tx": "M10",
  170. "temp_scl": "M8",
  171. "temp_sda": "N9",
  172. "ptc_pwm": ["G16", "F16", "N1", "M1", "R16", "P16", "P9", "T9"],
  173. "fan_pwm": ["B1", "C4", "B5", "A14"],
  174. "motor_en_n": "C11",
  175. "x_step": "C12",
  176. "x_dir": "B12",
  177. "y_step": "L12",
  178. "y_dir": "J11",
  179. "z_step": "L14",
  180. "z_dir": "K14",
  181. "x_limit_ls": "A5",
  182. "x_limit_hs": "B6",
  183. "y_limit_ls": "C8",
  184. "y_limit_hs": "A8",
  185. "z_limit_ls": "K16",
  186. "z_limit_hs": "J15"
  187. },
  188. "resource_policy": {
  189. "target_ram": "optional",
  190. "request_ram": "optional",
  191. "temperature_ram": "optional",
  192. "dsp": "optional",
  193. "bram": "optional",
  194. "shared_pwm_comparators": 1,
  195. "shared_percent_planner": 1,
  196. "shared_i2c_readers": 1
  197. },
  198. "protocol": {
  199. "header_hex": "A55A",
  200. "crc": {
  201. "name": "CRC-16/CCITT-FALSE",
  202. "polynomial": 4129,
  203. "initial": 65535,
  204. "reflect_input": false,
  205. "reflect_output": false,
  206. "xor_output": 0,
  207. "coverage": "type_length_payload",
  208. "wire_order": "little"
  209. },
  210. "commands": {
  211. "set_all": 1,
  212. "get_temperature": 2,
  213. "get_motor_status": 3,
  214. "temperature_data": 130,
  215. "motor_status_data": 131
  216. },
  217. "set_all": {
  218. "payload_length": 11,
  219. "fan_offset": 0,
  220. "chamber_ptc_offset": 4,
  221. "chamber_ptc_count": 4,
  222. "z_door_offset": 8,
  223. "exhaust_x_offset": 9,
  224. "exhaust_y_offset": 10,
  225. "legacy_payload_length_rejected": 14,
  226. "duty_min": 0,
  227. "duty_max": 100,
  228. "door_percent_min": 0,
  229. "door_percent_max": 100,
  230. "door_percent_rejected_example": 101,
  231. "response": "none"
  232. },
  233. "get_motor_status": {
  234. "payload_length": 0,
  235. "response": "motor_status_data"
  236. },
  237. "temperature_data": {
  238. "payload_length": 27,
  239. "frame_length": 33
  240. },
  241. "motor_status_data": {
  242. "payload_length": 31,
  243. "frame_length": 37,
  244. "layout": "host-contract"
  245. }
  246. },
  247. "timeouts": {
  248. "frame_inter_byte_ms": 10,
  249. "host_get_response_ms": 5000
  250. },
  251. "watchdog": {
  252. "timeout_seconds": 30,
  253. "tick_us": 500,
  254. "tick_clks": 12500,
  255. "timeout_ticks": 60000,
  256. "enable_after_startup_complete": true,
  257. "target": {"ptc": 0, "fan": 10}
  258. }
  259. }