Closed ozzyrob closed 1 year ago
Hi, you can use: configs/Olimex-ICE40HX8K-EVB_BOB/config.json as basis and adding the osc parameter: "clock": { "osc": "12000000", "speed": "100000000", "pin": "J3" },
That's fantastic. Just working on a spreadsheet to get my head around FPGA pin mapping to header pins, once that's sorted I'll setup the RPi 400 and start messing around.
While I'm asking...... will there be an option for an index pulse on an encoder, say for threading for a lathe ?
Cheers Rob
You can map all pins to each function, only the Clock-Input is fixed (Crystal), depends on your board layout
The SPI (to raspberry) can also freely mapped, BUT i'm using the same pins as the SPI-Flash with another CS-Pin, because, than i can flash it directly via Raspberry PI without USB.
While I'm asking...... will there be an option for an index pulse on an encoder, say for threading for a lathe ?
not supported yet, because i have no CNC-Lathe and i don't know what i should do with the index-pin .
i will check this...
encoder.
.index-enable (bit, I/O) - When True, counts and position are reset to zero on next rising edge of Phase Z. At the same time, index-enable is reset to zero to indicate that the rising edge has occoured. The index-enable pin is bi-directional. If index-enable is False, the Phase Z channel of the encoder will be ignored, and the counter will count normally. The encoder driver will never set index-enable True. However, some other component may do so.
puhh, sounds complicated :) i will try it
Sorry for so long to get back. Spent ages setting up OS for getting going, only to find out that Debian Bookworm doesn't want to play nice with SPI. Found a user on the Linuxcnc forum that had a prebuilt image based on Bullseye with Linuxcnc installed. Everything set and the Lattice Eval board works. Had an issue with SPI when using Dupoint jumpers, solved that with a little hacked together PCB. Getting problem free SPI communication, with the divisor at 128. Really enjoying this and appreciating your work, thank you sir. Next is to hook up some 3.3v to 5v breakout boards I used with my Beaglebone Black & get start testing the Z axis on the ML7/Super 7 Fankenstein thing in the garage. Cheers Rob
thank you ! for verifying new boards and for testing
Not an exactly an issue just reaching out. Saw your thread on the Linuxcnc forum (can't use the forum but that is another story), anyways I thought I had a tiny BX board but alas not the case, but I do have one of these, iCE40-HX8K Breakout Board . Plus a couple of 3.3 to 5v breakout boards I used with a beagle bone black. As this particular board has a 12MHz clock and a USB to SPI programmer, could I use the config TurBos uses for the Icebreaker as a basis ? Sorry if this is the wrong channel to reach out. I hope it was ok to upload the info for this board. FPGA-EB-02031-1-2-iCE40HX-8K-Breakout-Board-User-Guide.pdf