Skip to content

Instantly share code, notes, and snippets.

@festlv
Created September 22, 2023 12:00
Show Gist options
  • Save festlv/ea4236ac91a1b3c0b6d7317be0bbccfa to your computer and use it in GitHub Desktop.
Save festlv/ea4236ac91a1b3c0b6d7317be0bbccfa to your computer and use it in GitHub Desktop.
LinuxCNC-RIO config with joint_pwmdir
{
"name": "Concrete",
"description": "only for testing",
"toolchain": "icestorm",
"family": "ecp5",
"type": "25k",
"package": "CABGA381",
"transport": "SPI",
"clock": {
"osc": "25000000",
"speed": "100000000",
"pin": "P3"
},
"interface": [
{
"type": "spi",
"pins": {
"MOSI": "Y2",
"MISO": "U1",
"SCK": "R1",
"SEL": "T1"
}
}
],
"blink": {
"pin": "U16"
},
"plugins": [
{
"invert": false,
"pin": "F20",
"name": "DIN0",
"type": "din_bit"
},
{
"invert": false,
"pin": "B20",
"name": "DIN1",
"type": "din_bit"
},
{
"invert": false,
"pin": "B18",
"name": "DIN2",
"type": "din_bit"
},
{
"invert": false,
"pin": "C17",
"name": "DIN3",
"type": "din_bit"
},
{
"invert": false,
"pin": "A18",
"name": "DIN4",
"type": "din_bit"
},
{
"invert": true,
"pin": "K18",
"name": "DOUT0",
"type": "dout_bit"
},
{
"comment": "J9.1",
"type": "joint_pwmdir",
"pins": {
"dir": "B19",
"pwm": "D20",
"enable": "A19"
},
"name": "JOINT0"
},
{
"comment": "J9.1",
"type": "joint_stepper",
"scale": "800",
"pins": {
"dir": "B4",
"step": "D3",
"en": "C3"
},
"name": "JOINT1"
},
{
"type": "vin_quadencoderz",
"debounce": false,
"pullup": true,
"pins": {
"a": "D2",
"b": "B1",
"z": "A3"
},
"name": "VIN0"
},
{
"type": "vout_pwm",
"frequency": "1000",
"pins": {
"pwm": "C4"
},
"min": "0",
"max": "50000",
"name": "VOUT0"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment