From c9b10fc6aa472dbda55c12c843eb3289dcc4fdac Mon Sep 17 00:00:00 2001 From: Roy Date: Tue, 13 Jun 2023 13:23:58 +0800 Subject: [PATCH] [update] TRIG json --- .../devlib/json/Elite_TRIG_0.1.devlib.json | 38 ++++++++++++++++++- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/python/res/devlib/json/Elite_TRIG_0.1.devlib.json b/python/res/devlib/json/Elite_TRIG_0.1.devlib.json index f3cdcfe..5fc51d3 100644 --- a/python/res/devlib/json/Elite_TRIG_0.1.devlib.json +++ b/python/res/devlib/json/Elite_TRIG_0.1.devlib.json @@ -10,7 +10,15 @@ }, "constant": { "TIME_MAX": 100000, - "BLE_WRITE_MAX": 255 + "BLE_WRITE_MAX": 255, + "PR0": 0, + "PR1": 1, + "D0": 2, + "D1": 3, + "A0": 4, + "A1": 5, + "A2": 6, + "A3": 7 }, "parameters": { "USED": { @@ -380,7 +388,8 @@ { "expression": "MODE", "when": { - "0": "curve_acc" + "0": "curve_acc", + "3": "trig_timer_mode" } }, "_sync(True)", @@ -482,6 +491,31 @@ "data": [ "XE2;X02;X03;2B>ACC_a_out3_current;1B>ACC_a_out3" ] + }, + "trig_timer_mode": [ + "trig_timer_mode_set_PR0" + ], + "trig_timer_mode_set_PR0": { + "type": "RIS", + "parameter": { + "used": "USED[PR0]", + "v_early": "V_EARLY[PR0]", + "v_late": "T_LATE[PR0]", + "v_mid0": "V_MID0[PR0]", + "v_mid1": "V_MID1[PR0]", + "v_mid2": "V_MID2[PR0]", + "v_mid3": "V_MID3[PR0]", + "cycle": "CYCLE[PR0]", + "t_early": "T_EARLY[PR0]", + "t_late": "T_LATE[PR0]" + }, + "data": [ + "1X0F;", + "1B>PR0;", + "1X01;", + "5b>0;1b>v_late;1b>v_early;1b>used;", + "4b>0;1b>v_mid3;1b>v_mid2;1b>v_mid1;1b>v_mid0;" + ] } } }