New module shift_in
and shift_out
for using shift registers
#52
Replies: 4 comments 1 reply
-
So, this would bei like a port Expander? |
Beta Was this translation helpful? Give feedback.
-
Design challenge is the The normal routine for LiteX-CNC is:
For For |
Beta Was this translation helpful? Give feedback.
-
Since all real-time data can be connected directly to the fpga, a 1ms delay for non timing critical events, like a pendant, etc would be no problem I think. |
Beta Was this translation helpful? Give feedback.
-
The writing of these components are finally under way, see #86 . Currently the 74HC595 ( An practical example, a pendant requiring E-stop, input, output and a MPG, would require:
With this you can have endless buttons and LED's on your MPG (ok, it is limited to 256), but the number of wires is still larger then using a serial protocol (which is 4 wires). Version 1.3 of LitexCNC is upcoming, hopefully I can include this feature in this version. |
Beta Was this translation helpful? Give feedback.
-
When using the 5A-75B, one can get at the point that 51 pins are not enough. The Arduino platform offers two libraries for shifting data using buffers:
Using these chip, one can use for example a pendant with loads of functions, connecting the MPG directly to the pins and connecting the buttons to these shift registers.
Design spec:
shift_out
) or 32 inputs (shift_in
);DATA
,CLK
andLATCH
;Should this prove useful?
Beta Was this translation helpful? Give feedback.
All reactions