Intel386™ EX EMBEDDED PROCESSOR USER’S MANUAL
10-40
case TMR_2:
CountL = _GetEXRegByte(TMR2);
CountH = _GetEXRegByte(TMR2);
break;
}
Count = (((WORD)CountH << 8) + CountL);
EnableTimer();
return(Count);
}/* ReadCounter */
/*****************************************************************************
TimerISR:
Description:
Interrupt Service Routine for Timer-generated interrupts.
Parameters:
None
Returns:
None
Assumptions:
None
Syntax:
Not called by user.
Real/Protected Mode:
No changes required
******************************************************************************/
void interrupt far TimerISR(void)
{
/* Write message out to serial port as an example */
SerialWriteStr(SIO_0, “In TimerISR\n”);
NonSpecificEOI(); // If this ISR services Timer1 or Timer2,
// an EOI is also needed for the Slave 8259
}/* TimerISR */