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.

Top of list<br />

Index page<br />

RTX_SIGNAL_EVENTS<br />

RTX_SEND_MSG<br />

RTX_START_TIMER<br />

RTX_STOP_TIMER<br />

RTX_REMOVE_TIMER<br />

Important Notes:<br />

A RTX ISR is slower than a normal ISR. RTX ISR are not recommended for INT5 or INT6 if DMA is<br />

used by the Fossil serial ports interface, because the slower RTX ISR could result in UART receiver<br />

character loss.<br />

If you are using a RTX ISR for timer0, timer1, INT5 or INT6 there must not exist a normal ISR on the<br />

system which enables the interrupts during its execution! Do not install a RTX ISR for NMI.!<br />

Also important : The NMI function of the multifunction pin 17 (RESET/NMI/LINK_LED) of the<br />

<strong>IPC<strong>@CHIP</strong></strong> 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 INT0 for generating interrupts. It can only be used as described in the <strong>IPC<strong>@CHIP</strong></strong><br />

hardware documentation.<br />

Interrupt 0xA1 service 0x85: HAL: Initialize Timer Settings<br />

Parameters<br />

AH<br />

AL<br />

DX<br />

CX<br />

Initialize the timer settings of timer0 or timer1.<br />

Must be 0x85.<br />

Timer<br />

0=Timer0 / 1=Timer1<br />

Mode<br />

Bit 0: 0=run single time / 1=run continuous<br />

Bit 1: 0=disable timer interrupt / 1=enable timer interrupt<br />

Bit 2: 0=use internal clock / 1=use TMRIN pin as external clock<br />

Bit 3..15: not used<br />

Clock divider (maximum count value)<br />

Return Value<br />

none<br />

Comments<br />

The clock divider value serves as a comparator for the associated timer count. The timer count is a 16<br />

bit value that is incremented by the processor internal clock (see HAL function 0x8A) or can also be<br />

configured to increment based on the TMRIN0 or TMRIN1 external signals (see PFE function 0x85).<br />

The TMROUT0 und TMROUT1 signals can be used to generate waveforms of various duty cycles. The<br />

Page 297 / 400

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

Saved successfully!

Ooh no, something went wrong!