From 6d8681a4cfadb1a2724f33dde79afca3a729f49d Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Tue, 20 Aug 2024 13:49:55 -0700 Subject: [PATCH] minimal configuration for litex-cnc, I got pins twiddling! --- litexcnc-config/lilred.json | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 litexcnc-config/lilred.json diff --git a/litexcnc-config/lilred.json b/litexcnc-config/lilred.json new file mode 100644 index 0000000..e494bac --- /dev/null +++ b/litexcnc-config/lilred.json @@ -0,0 +1,70 @@ +{ + "board_name": "lilred", + "board_type": "5A-75E v6.0", + "clock_frequency": 40000000, + "ethphy": { + "tx_delay": 0 + }, + "etherbone": { + "ip_address": "172.27.0.20", + "mac_address": "0x10e2d5000000" + }, + "connection": { + "connection_type": "etherbone", + "tx_delay": 0, + "ip_address": "172.27.0.20", + "mac_address": "0x10e2d5000000" + }, + "watchdog": { + "pin":"j2:0" + }, + "modules": [ + { + "module_type": "gpio", + "instances": [ + {"direction": "in", "pin":"j2:1"}, + {"direction": "in", "pin":"j2:5"}, + {"direction": "out","pin": "j16:1"}, + {"direction": "out","pin": "j16:5"} + ] + }, { + "module_type": "pwm", + "instances": [ + {"pin": "j15:1"} + ] + }, { + "module_type": "encoder", + "instances": [ + {"pin_A":"j3:0", "pin_B":"j3:1"}, + {"pin_A":"j3:2", "pin_B":"j3:4"}, + {"pin_A":"j3:5", "pin_B":"j3:6"} + ] + }, { + "module_type": "stepgen", + "instances": [ + { + "pins" : { + "stepgen_type": "step_dir", + "step_pin": "j7:0", + "dir_pin": "j7:1" + }, + "soft_stop": true + }, { + "pins" : { + "stepgen_type": "step_dir", + "step_pin": "j8:0", + "dir_pin": "j8:1" + }, + "soft_stop": true + }, { + "pins" : { + "stepgen_type": "step_dir", + "step_pin": "j9:0", + "dir_pin": "j9:1" + }, + "soft_stop": true + } + ] + } + ] +}