⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hm2_7i43.9

📁 CNC 的开放码,EMC2 V2.2.8版
💻 9
字号:
.TH HM2_7I43 "9" "2008-05-13" "EMC Documentation" "HAL Component".de TQ.br.ns.TP \\$1...SH NAMEhm2_7i43 \- EMC2 HAL driver for the Mesa Electronics 7i43 EPP Anything IO board with HostMot2 firmware..SH SYNOPSIS.HP.B loadrt hm2_7i43 [ioaddr=\fIN\fB] [ioaddr_hi=\fIN\fB] [epp_wide=\fIN\fB] [config=\fI"str"\fB] [debug_epp=\fIN\fB].RS 4.TP\fBioaddr\fR [default: 0x378]The base address of the parallel port..TP\fBioaddr_hi\fR [default: 0]The secondary address of the parallel port, used to set EPP mode.0 means to use ioaddr + 0x400..TP\fBepp_wide\fR [default: 1]Set to zero to disable the "wide EPP mode".  "Wide" mode allows a 16-and 32-bit EPP transfers, which can reduce the time spent in the readand write functions.  However, this may not work on all EPP parallelports..TP\fBconfig\fR [default: ""]HostMot2 config string, described in the hostmot2(9) manpage..TP\fBdebug_epp\fR [default: 0]Developer/debug use only!  Enable debug logging of most EPPtransfers..RE.SH DESCRIPTIONhm2_7i43 is a device driver that interfaces the Mesa 7i43 board withthe HostMot2 firmware to the EMC2 HAL.  Both the 200K and the 400K FPGAsare supported.The driver talks with the 7i43 over the parallel port, not over USB.  USBcan be used to power the 7i43, but not to talk to it.  USB communicationwith the 7i43 will not be supported any time soon, since USB has poorreal-time qualities.The driver programs the board's FPGA with firmware when it registersthe board with the hostmot2 driver.  The old bfload(1) firmware loadingmethod is not used anymore.  Instead the firmware to load is specifiedin the \fBconfig\fR modparam, as described in the hostmot2(9) manpage,in the \fIconfig modparam\fR section.Some parallel ports require special initialization before they canbe used.  EMC2 provides a kernel driver that does this initializationcalled probe_parport.  Load this driver before loading hm2_7i43, byputting "loadrt probe_parport" in your .hal file..SH Jumper settingsTo send the FPGA configuration from the PC, the board must be configuredto get its firmware from the EPP port.  To do this, jumpers W4 and W5must both be down, ie toward the USB connector.The board must be configured to power on whether or not the USB interfaceis active.  This is done by setting jumper W7 up, ie away from the edgeof the board..SH Communicating with the boardThe 7i43 communicates with the EMC computer over EPP, the EnhancedParallel Port.  This provides about 1 MBps of throughput, and thecommunication latency is very predictable and reasonably low.The parallel port must support EPP 1.7 or EPP 1.9.  EPP 1.9 is prefered,but EPP 1.7 will work too.  The EPP mode of the parallel port is sometimesa setting in the BIOS.Note that the popular "NetMOS" aka "MosChip 9805" PCI parport cards \fBdonot work\fR.  They do not meet the EPP spec, and cannot be reliably usedwith the 7i43.  You have to find another card, sorry.EPP is very reliable under normal circumstances, but bad cablingor excessively long cabling runs may cause communication timeouts.The driver exports a parameter named hm2_7i43.<BoardNum>.io_error toinform HAL of this condition.  When the driver detects an EPP timeout,it sets io_error to True and stops communicating with the 7i43 board.Setting io_error back to False makes the driver start trying tocommunicate with the 7i43 again.Access to the EPP bus is not threadsafe: only one realtime thread mayaccess the EPP bus..SH SEE ALSOhostmot2(9).SH LICENSEGPL

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -