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.

instead be the frequency reported by the Get FrequenciesAPI function.<br />

Retrigger:<br />

If the retrigger setting is enabled, a 0 to 1 edge transition on TMRIN0 (or TMRIN1) resets the<br />

timer count. When retrigger is disabled (DX bit 4 set to 0), a High input on TMRIN0 (or TMRIN1)<br />

enables counting and a Low input holds the timer value.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Initialize Timer Settings<br />

HAL Start Timer function<br />

Read Timer Count<br />

Write Timer Count<br />

Interrupt 0xA1 service 0x90: HAL: Get/Set Watchdog Mode<br />

Parameters<br />

AH<br />

AL<br />

Get or set the watchdog mode.<br />

Must be 0x90.<br />

Mode<br />

0 = only get mode<br />

2 = Watchdog will be triggered by user program<br />

3 = Watchdog will be triggered by <strong>@CHIP</strong>-<strong>RTOS</strong> (default)<br />

Return Value<br />

AX=mode<br />

Comments<br />

The watchdog timeout period is 800 ms.<br />

If you select the User Program mode, you must call the HAL Refresh Watchdog function 0x91 at least<br />

every 800 ms to prevent the watchdog from resetting the system. In <strong>@CHIP</strong>-<strong>RTOS</strong> mode, the <strong>@CHIP</strong>-<br />

<strong>RTOS</strong> performs the watchdog strobing provided that the system's timer interrupt is allowed to execute.<br />

Beware that excessive interrupt masking periods can lead to system resets.<br />

Related Topics<br />

Top of list<br />

Refresh Watchdog Function<br />

Page 305 / 400

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

Saved successfully!

Ooh no, something went wrong!