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

Create successful ePaper yourself

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

AH<br />

AL<br />

Must be 0x88.<br />

DRQ channel:<br />

0 = DRQ0<br />

1 = DRQ1<br />

Return Value<br />

Comments<br />

Top of list<br />

Index page<br />

AX = 0 no error<br />

AX = -1 invalid DRQ channel<br />

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

You must disable the serial port DMA mode to use external DMA. This is done with a CHIP.INI entry.<br />

The COM port uses DRQ1 and the EXT port uses DRQ0.<br />

used pins:<br />

DRQ[0..1]<br />

excluded pins:<br />

if DRQ0: PIO1, INT5, default I²C-Bus pins<br />

if DRQ1: PIO0, INT6, default I²C-Bus pins<br />

Interrupt 0xA2 service 0x89: PFE: Enable INT0 / INTA cascade mode<br />

Parameters<br />

AH<br />

Enable INT0 / INTA cascade mode<br />

Must be 0x89.<br />

Return Value<br />

none<br />

Comments<br />

To install a service interrupt routine in cascade mode, the<br />

HAL function 0x84 "Install Interrupt Service Routine" can not be used, because<br />

the cascaded interrupt controller supply the interrupt type over the bus.<br />

Install a normal interrupt service routine (ISR) using the setvect function.<br />

At the end of your ISR, issue an EOI to both the cascaded controller and to<br />

the internal interrupt controller (INT0).<br />

used pins:<br />

INT0, INTA#<br />

excluded pins:<br />

PIO13, TMROUT0, INT0 in normal mode, PIO6, PCS2#, PWD, hw flow control serial port 1<br />

Page 289 / 400

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

Saved successfully!

Ooh no, something went wrong!