High-speed data transmission method based on PCI (Peripheral Component Interconnect) bus

2011 
The invention discloses a high-speed data transmission method based on a PCI (Peripheral Component Interconnect) bus; according to the high-speed data transmission method, a driving program for realizing the high-speed data transmission comprises the following steps of: initializing the driving program, and distributing a DMA (Direct Memory Access) public buffer zone to serve as a data buffer queue; setting an interrupt control register, and enabling a device to be interrupted; waiting for interrupt triggering, if the device is interrupted, detecting whether a DMA is in a data transmission completion state, if data transmission is not completed, returning to wait for interrupt triggering again, if data transmission is completed, forbidding the interruption of the device, configuring a DMA controller, starting DMA operation and enabling the device to be interrupted again; and clearing DMA interruption if finishing interruption for the completion of DMA transmission, resetting a data buffering queue head pointer, and enabling the interruption of DMA transmission to be finished. According to the high-speed data transmission method, data transmission can be started and forbidden by setting the interrupt control register so that the interrupted driving problem can respond to an interrupt signal, and data in the device is continuously read into the data buffering queue, thereby leading the data transmission rate to be greatly increased.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []