EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #671 background imageLoading...
Page #671 background image
Appendix A: System Routines — Interrupts
629
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
idle
Declaration:
void
idle
(void)
Category(ies):
Interrupts
Description:
Sets the calculator in low power mode until an interrupt (usually a timer,
keypress, or link activity) occurs. Leaves the LCD powered and the screen
visible.
Inputs:
None
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also: off
Example:
/* Try to get the USER timer, if already in use, return FALSE.
Else, wait up to a minute for a key.
If a key is pressed within a minute, return TRUE.
If no key is pressed within a minute return FALSE
This code is intended to illustrate the usage of
timer routines: off, idle, kbhit, ngetchx, and pushkey.
*/
#include "tiams.h"
enum {EX_CONTINUE = 0, /* ERROR */
EX_BREAK, /* break key */
EX_TIMEOUT, /* timer expired before key hit */
EX_KEY, /* key hit before timer expired */
EX_2ND_OFF, /* turn calc off and return when turned back on */
EX_OPT_OFF /* turn calc off and continue when turned back on */
} i;
WORD waitOneMinForKey( void )
{
Access_AMS_Global_Variables;
i = EX_CONTINUE;
if( !OSRegisterTimer( USER, ONE_MINUTE ))
return FALSE; /* USER TIMER already in use */
while ( TRUE ) {
(continued)

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals