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.

Top of list<br />

Index page<br />

Using Hardware API<br />

1. The HAL functions keep interrupts disabled, so you can call them inside an interrupt routine. The<br />

PFE functions are only for choosing and initializing a specific function on the selected pin. They<br />

should be called once in your application for initializing your hardware environment and not at<br />

runtime or inside interrupt routines.<br />

2. Do not use functions of the <strong>RTOS</strong> API inside of a normal HW API user ISR. For this purpose<br />

install a RTX user ISR, see Install ISR.<br />

3. The latency time of the user ISR (from generation of an interrupt until first line of code inside the<br />

user ISR) depends on the used <strong>IPC<strong>@CHIP</strong></strong>, see Performance comparision .<br />

4. Instead of HAL functions Read data bus and Write data bus you can call C-functions inportb<br />

and outportb from DOS.H for faster data bus accesses.<br />

5. Usage of DMA0/INT5 and DMA1/INT6:<br />

DMA0 and INT5 are served inside the <strong>@CHIP</strong>-<strong>RTOS</strong> with a single shared interrupt handler.<br />

(Likewise for DMA1 and INT6.)<br />

If an user application has activated serial EXT DMA mode and also wants to use external<br />

interrupt INT5, the DMA interrupt event is higher priority. (And again, likewise for COM DMA<br />

mode and INT6.)<br />

This means that if a DMA0/1 interrupt occurs simultaneous with an external INT5/6 interrupt, the<br />

installed user handler for the external interrupt is not called.<br />

See Hardware API<br />

6. Usage of NMI/Power fail detection:<br />

The NMI function of the multifunction pin 17 (RESET/NMI/LINK_LED) of the <strong>IPC<strong>@CHIP</strong></strong><br />

SC11/<strong>SC12</strong>/SC13 is for power fail purposes only. It is not possible to use NMI as a "normal"<br />

interrupt pin like e.g. INT0 for generating interrupts. It can only be used as described in the<br />

<strong>IPC<strong>@CHIP</strong></strong> hardware documentation.<br />

The flowchart below describes how the <strong>@CHIP</strong>-<strong>RTOS</strong> handles an incoming NMI interrupt.<br />

Page 11 / 400

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

Saved successfully!

Ooh no, something went wrong!