01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Starts the DMA mode. After calling this function, the DMA transfer will be started when the external<br />

DRQ pins is activated.<br />

Parameters<br />

AH<br />

AL<br />

CX<br />

DX<br />

BX:SI<br />

ES:DI<br />

Must be 0xB0<br />

DMA channel:<br />

0 = DRQ0<br />

1 = DRQ1<br />

Number of bytes which has to be transferred<br />

Control Register:<br />

Bit 0: 1=Priority for the channel / 0=Priority for the other channel<br />

Bit 1: 1=Source synchronized / 0=No source synchronization<br />

Bit 2: 1=Destination synchronized / 0=No destination synchronization<br />

Bit 3: 1=Use interrupt at end of transfer / 0=do not use an interrupt<br />

Bit 4: must be set to '1'<br />

Bit 5: 1=Source address increment / 0=No increment of source address<br />

Bit 6: 1=Source address decrement / 0=No decrement of source Address<br />

Bit 7: 1=Source is in memory space / 0=Source is in IO space<br />

Bit 8: 1=Destination address increment / 0=No increment of destination address<br />

Bit 9: 1=Destination address decrement / 0=No decrement of destination address<br />

Bit 10: 1=Destination is in memory space / 0=Destination is in IO space<br />

Bit 11: 1=Word Transfer / 0=Byte Transfer<br />

Bit1 and Bit2 can't be set at the same time.<br />

Pointer to unsigned long (20-Bit physical) source address<br />

Pointer to unsigned long (20-Bit physical) destination address<br />

Return Value<br />

Comments<br />

Success: AX = 0<br />

AX = -1 Invalid DMA channel<br />

AX = -2 DMA channel used for serial interface<br />

This function starts a DMA transfer. After calling this function the DMA controller is ready for transfer.<br />

Once the DRQ pin is activated the DMA transfer will be started. The number of bytes which will be<br />

transferred has to be specified in the CX register. Before calling this function you have to enable the<br />

DRQ pin for this channel (also the serial DMA mode must be disabled in the CHIP.INI).<br />

Related Topics<br />

Enable external DRQ Pin<br />

Page 309 / 400

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

Saved successfully!

Ooh no, something went wrong!