Engraving machine CNC system of USB firmware requirements

by:Transon     2020-07-23
CNC engraving machine CNC system of USB firmware is running on the CY7C68O13 program, its main function is to receive and process the USB driver's request, the receiving application control instruction, through the CY7C68013A store data and real-time uploaded to PC and so on. Cypress company provides the firmware program development software platform, the firmware engineering contains the following files: FW. C program framework, PERIPH. User program files, DSCR C. A51 descriptor files, FX2. H define constants, FX2REGS data type library function. H define various registers, SYNCDLY. H delay macros, EZUSB. LIB, USBJmpTB firmware library file. OBJ interrupt vector and jump table. Design idea is as follows: 1 make CY7C68013 work in asynchronous slaveFIFO mode. The corresponding register operation is: IFCONFIG = 0 XCB; O 4 KB FIFO will correspond to the two endpoints, End - namely Point2 and EndPoint6. The corresponding register operation is: EP2CFG = 0 xa0, EP6CFG xf2 = 0. EndPoint2( FIFO2) With EndPoint6 ( FIFO6) Corresponding 2 KB in the built-in FIFO, storage USB need to upload and the received data. Type of EndPoint2 0 ut, responsible for data from the host to receive; EndPoint6 responsible for IN type, send data to the host; 。 To configure the FIFO. The corresponding register operation is: EP2FIFOCFG = 0 x, lEP6FIFOCFG = 0 x0d. The above operations are in the PERIPH. C file TD_Init function; 。 In order to improve the whole USB transmission functions, and improve the CNC engraving machine price system robustness, the USB firmware must also match with other design, including automatic emptying the repositioning of the FIFO, personalized orders, and other functions.
Custom message
Chat Online 编辑模式下无法使用
Leave Your Message inputting...
88888888888888888888888