jaydeep.gajjar90
Newbie level 6
Hello Everyone !
I currently working on a project of hobby cnc mill. i want to design custom control panel to operate the machine in this way :
-> panel have a graphical lcd , buttons etc connected to microcontroller which handles user interaction.
-> cpld is used to control motion of stepper motor.(micro-stepping,acceleration & acceleration, coordination of axes)
-> microcontroller behaves as master which fetches G-code via user-input or text file (NC file)
-> it passes the value to cpld (slave) to how much each axis should move.
-> once value for each axis is supplied to cpld by microcontroller , cpld works independently until required motion is done.
i have fare experience with microcontroller so i am currently working on that part.
current i have Fez panda II board(Arm7) and i currently programming for G-code interpreter,sd card handling and usb communication.
I have no experience of CPLD. (just learned some basics of VHDL in college)
Now, My question is
(1) which CPLD i should use? (please suggest any good cpld with name or product id if possible)
(2) how to communicate between mcrocontroller and CPLD ? (is there any build in protocols like I2C or SPI or rs232)
I want to use CPLD beacuase of it can toggle output at high speed in MHz. (the Arm7 controller which i have cant toggle GPIO pin more than 15 KHz:-().
I currently working on a project of hobby cnc mill. i want to design custom control panel to operate the machine in this way :
-> panel have a graphical lcd , buttons etc connected to microcontroller which handles user interaction.
-> cpld is used to control motion of stepper motor.(micro-stepping,acceleration & acceleration, coordination of axes)
-> microcontroller behaves as master which fetches G-code via user-input or text file (NC file)
-> it passes the value to cpld (slave) to how much each axis should move.
-> once value for each axis is supplied to cpld by microcontroller , cpld works independently until required motion is done.
i have fare experience with microcontroller so i am currently working on that part.
current i have Fez panda II board(Arm7) and i currently programming for G-code interpreter,sd card handling and usb communication.
I have no experience of CPLD. (just learned some basics of VHDL in college)
Now, My question is
(1) which CPLD i should use? (please suggest any good cpld with name or product id if possible)
(2) how to communicate between mcrocontroller and CPLD ? (is there any build in protocols like I2C or SPI or rs232)
I want to use CPLD beacuase of it can toggle output at high speed in MHz. (the Arm7 controller which i have cant toggle GPIO pin more than 15 KHz:-().