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

📄 i2c-parport

📁 优龙Intel Xscale PXA270 开发平台 LINUX源码, 包括 平台用户手册, PDF原理图, kernel, driver代码. 非常有参考价值.
💻
字号:
==================i2c-parport driver==================2004-07-06, Jean DelvareThis is a unified driver for several i2c-over-parallel-port adapters,such as the ones made by Philips, Velleman or ELV. This driver ismeant as a replacement for the older, individual drivers: * i2c-philips-par * i2c-elv * i2c-velleman * video/i2c-parport (NOT the same as this one, dedicated to home brew                      teletext adapters)It currently supports the following devices: * Philips adapter * home brew teletext adapter * Velleman K8000 adapter * ELV adapter * Analog Devices evaluation boards (ADM1025, ADM1030, ADM1031, ADM1032)These devices use different pinout configurations, so you have to tellthe driver what you have, using the type module parameter. There is noway to autodetect the devices. Support for different pinout configurationscan be easily added when needed.Building your own adapter-------------------------If you want to build you own i2c-over-parallel-port adapter, here isa sample electronics schema (credits go to Sylvain Munaut):Device                                                      PCSide          ___________________Vdd (+)                    Side               |    |         |              ---  ---       ---              | |  | |       | |              |R|  |R|       |R|              | |  | |       | |              ---  ---       ---               |    |         |               |    |    /|   |SCL  ----------x--------o |-----------x-------------------  pin 2                    |    \|   |       |                    |         |       |                    |   |\    |       |SDA  ----------x----x---| o---x---------------------------  pin 13               |        |/            |               |                      |               |         /|           |               ---------o |----------------x--------------  pin 3                         \|           |    |                                      |    |                                     ---  ---                                     | |  | |                                     |R|  |R|                                     | |  | |                                     ---  ---                                      |    |                                      ###  ###                                     GND  GND        Remarks: - This is the exact pinout and electronics used on the Analog Devices   evaluation boards.                   /| - All inverters -o |- must be 74HC05, they must be open collector output.                   \| - All resitors are 10k. - Pins 18-25 of the parallel port connected to GND. - Pins 4-9 (D2-D7) could be used as VDD is the driver drives them high.   The ADM1032 evaluation board uses D4-D7. Beware that the amount of   current you can draw from the parallel port is limited. Also note that   all connected lines MUST BE driven at the same state, else you'll short   circuit the output buffers! So plugging the I2C adapter after loading   the i2c-parport module might be a good safety since data line state   prior to init may be unknown.  - This is 5V! - Obviously you cannot read SCL (so it's not really standard-compliant).   Pretty easy to add, just copy the SDA part and use another input pin.   That would give (ELV compatible pinout):Device                                                      PCSide          ______________________________Vdd (+)         Side               |    |            |    |              ---  ---          ---  ---              | |  | |          | |  | |              |R|  |R|          |R|  |R|              | |  | |          | |  | |              ---  ---          ---  ---               |    |            |    |               |    |      |\    |    |SCL  ----------x--------x--| o---x------------------------  pin 15                    |   |  |/         |                     |   |             |                    |   |   /|        |                    |   ---o |-------------x--------------  pin 2                    |       \|        |    |                    |                 |    |                    |                 |    |                    |      |\         |    |SDA  ---------------x---x--| o--------x-------------------  pin 10                        |  |/              |                        |                  |                        |   /|             |                        ---o |------------------x---------  pin 3                            \|             |    |                                           |    |                                          ---  ---                                          | |  | |                                          |R|  |R|                                          | |  | |                                          ---  ---                                           |    |                                           ###  ###                                          GND  GNDIf possible, you should use the same pinout configuration as existingadapters do, so you won't even have to change the code.Similar (but different) drivers-------------------------------This driver is NOT the same as the i2c-pport driver found in the i2c package.The i2c-pport driver makes use of modern parallel port features so thatyou don't need additional electronics. It has other restrictions however, andwas not ported to Linux 2.6 (yet).This driver is also NOT the same as the i2c-pcf-epp driver found in thelm_sensors package. The i2c-pcf-epp driver doesn't use the parallel portas an I2C bus directly. Instead, it uses it to control an external I2C busmaster. That driver was not ported to Linux 2.6 (yet) either.Legacy documentation for Velleman adapter-----------------------------------------Useful links:Velleman                http://www.velleman.be/Velleman K8000 Howto    http://howto.htlw16.ac.at/k8000-howto.htmlThe project has lead to new libs for the Velleman K8000 and K8005:  LIBK8000 v1.99.1 and LIBK8005 v0.21With these libs, you can control the K8000 interface card and the K8005stepper motor card with the simple commands which are in the originalVelleman software, like SetIOchannel, ReadADchannel, SendStepCCWFull andmany more, using /dev/velleman.  http://home.wanadoo.nl/hihihi/libk8000.htm  http://home.wanadoo.nl/hihihi/libk8005.htm  http://struyve.mine.nu:8080/index.php?block=k8000  http://sourceforge.net/projects/libk8005/

⌨️ 快捷键说明

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