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.

BX:SI<br />

ES:DI<br />

1 = DRQ1<br />

Output Parameter: Pointer to unsigned long where this function will write the (20-Bit physical) source<br />

address<br />

Output Parameter: Pointer to unsigned long where this function will write the (20-Bit physical)<br />

destination address<br />

Return Value<br />

Comments<br />

AX = 0 DMA channel disabled<br />

AX = 1 DMA channel (user mode) enabled for transfer<br />

AX = -1 Invalid DMA channel<br />

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

CX = DMA counter (bytes which have yet to be transferred)<br />

DX = Control Register: 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 />

[BX:SI] = contains unsigned long (20-Bit physical) DMA source address<br />

[ES:DI] = contains unsigned long (20-Bit physical) DMA destination address<br />

This function returns the status of the DMA channel in AX.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Start DMA Transfer<br />

Interrupt 0xA1 service 0xC0: HAL: Initialize/Restore Non-Volatile Data<br />

Initialize/Restore non-volatile data. Tell the <strong>@CHIP</strong>-<strong>RTOS</strong> where your variables are located, which<br />

should be saved and reload their saved values, if available.<br />

The non-volatile (remanent) data is stored in A:\rema.bin file.<br />

Parameters<br />

AH<br />

Must be 0xC0<br />

Page 311 / 400

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

Saved successfully!

Ooh no, something went wrong!