1 /** ###################################################################
2 ** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
3 ** Filename : PE_Timer.C
5 ** Processor : MC9S12C32CFU
7 ** Version : Driver 01.00
8 ** Compiler : Metrowerks HC12 C Compiler
9 ** Date/Time : 17/05/2005, 08:44
11 ** This bean "PE_Timer" implements internal methods and definitions
12 ** used by beans working with timers.
17 ** (c) Copyright UNIS, spol. s r.o. 1997-2002
22 ** http : www.processorexpert.com
23 ** mail : info@processorexpert.com
24 ** ###################################################################*/
27 /* MODULE PE_Timer. */
33 ** ===================================================================
34 ** Method : PE_Timer_LngHi1 (bean PE_Timer)
37 ** This method is internal. It is used by Processor Expert
39 ** ===================================================================
41 bool PE_Timer_LngHi1(dword High, dword Low, word *Out)
43 if ((High == 0) && ((Low >> 24) == 0))
44 if ((Low & 0x80) != 0) {
45 if ((Low >> 8) < 0xFFFF) {
46 *Out = ((unsigned int)(Low >> 8))+1;
51 *Out = (unsigned int)(Low >> 8);
54 *Out = (unsigned int)(Low >> 8);
63 ** ###################################################################
65 ** This file was created by UNIS Processor Expert 03.33 for
66 ** the Motorola HCS12 series of microcontrollers.
68 ** ###################################################################