minimal configuration for litex-cnc, I got pins twiddling!
This commit is contained in:
parent
8a9377471e
commit
6d8681a4cf
1 changed files with 70 additions and 0 deletions
70
litexcnc-config/lilred.json
Normal file
70
litexcnc-config/lilred.json
Normal file
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue