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.

Return Value<br />

Comments<br />

AX = Counter reading<br />

DX = 1=MaxCount reached / 0=MaxCount not reached<br />

AX contains the current count of the associated timer. The count is incremented by the processor<br />

internal clock (see HAL function 0x8A), unless the timer is configured for external clocking (then it is<br />

clocked by the TMRIN0 and TMRIN1 signals).<br />

Related Topics<br />

Top of list<br />

Index page<br />

HAL Initialize Timer Settings<br />

Stop Timer function<br />

Write Timer Count<br />

Interrupt 0xA1 service 0x89: HAL: Write Timer Count<br />

Parameters<br />

AH<br />

AL<br />

DX<br />

Preset the specified timer's count register to provided value.<br />

Must be 0x89.<br />

Timer<br />

0=Timer0 / 1=Timer1<br />

Value to write to 16 bit counter<br />

Return Value<br />

none<br />

Comments<br />

The timer count can be written at any time, regardless of whether the corresponding timer is running.<br />

Related Topics<br />

HAL Initialize Timer Settings<br />

Stop Timer function<br />

Read Timer Count<br />

Page 300 / 400

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

Saved successfully!

Ooh no, something went wrong!