13.07.2015 Views

CompuScope SDK Manua.. - Egmont Instruments

CompuScope SDK Manua.. - Egmont Instruments

CompuScope SDK Manua.. - Egmont Instruments

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Plug-n-Play is an inherent part of the PCI specifications. Any add-on cards, which do not adhere to itsprotocols, are not PCI-compliant.DMA or Bus-Mastering on the PCI BusDirect Memory Access (DMA) is a technique by which two system resources on a bus can transfer databetween themselves without any CPU involvement.In the PCI bus specification, these two devices are called “initiator” and “target,” i.e. the initiator devicetakes control of the data, address and control lines of the bus and writes the data to the target device.The PCI Bus implements DMA by allowing any device to become a bus-master and write data to a targetdevice. The correct PCI language for DMA is PCI bus-mastering.A PCI Bus-master is a hardware device that takes control of the data, address and control lines of the busand uses them to transfer data to a target device. A PCI Slave is a hardware device in a bus-based systemthat accepts data transfers coming from a Master. A slave is almost always a “target” device.A good analogy of bus-mastering exists in most businesses in the shape of a telephone system. Officesgenerally have a receptionist who answers all incoming calls and directs them to different employees,depending on whom the caller wants to talk to.This is a good example of Slave mode operation. The receptionist is the “Central Processing Unit (CPU)”of the system, all the employees are “target devices” and the caller is the “initiator.”Slave mode does not require very sophisticated hardware, but requires considerable “processing power”(the receptionist’s time) and slows down the routing of the “transactions” (calls).Some companies have implemented “Direct Inbound Dialing (DID)”, a system in which each employee hasa unique telephone number. A caller can reach an employee, without having to go through the receptionist,by dialing their number.DID is analogous to bus-mastering: the “initiator” (caller) takes control of the bus (the telephone line) andconnects with the “target” (employee) without having to disturb the CPU (receptionist).It is fairly clear that bus-mastering is more efficient not only because the CPU (receptionist) can do othertasks while all the bus transactions (calls) take place, but also because it is faster.The obvious question, which arises in the case of a Multi-Master bus, is; how is the bus arbitrated? In otherwords, how does the system know who is the current bus-master and how does a device become a busmaster?The arbiter is always included with the motherboard or CPU card. Unfortunately, there is no clearspecification for bus arbitration in PCI, so the exact schemes are dependent upon the motherboard or CPUbeing used. Nonetheless, bus arbitration is almost always handled in a safe and predictable manner,making PCI a very stable and well-defined system.The PCI bus allows any of the system resources to become a bus-master. For example, it is possible for anadd-on card, such as a <strong>CompuScope</strong>/PCI, to be a master at one point in time and another add-on card, suchas a DSP card, to be the master at a later time. Naturally, the CPU is also allowed to be the bus-master.Page 12<strong>CompuScope</strong> <strong>SDK</strong> <strong>Manua</strong>l

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!