/*******************************/
/*  Library for 8017H, 8017HS  */
/*  Compiler: BC,MSC           */
/*******************************/




Version 1.0.4 [4,Jan,2006] by Kevin
    Support 8017HS ch8~ch15
        1. in 8017H.h, the global parameter i8017H_Input_Mode_SingleEnd[8]
           can tell you what input type the 8017HS is.
        2. all functions can use ch8~ ch15.
    
    Add functions
        i8017H_GetLibDate
        i8017H_GetLibVersion
        
    Change function names
        I8017H... ===> i8017H...

------------------------------------------------------------------------
Version 1.0.3 [19,Jul,2005] by Kevin
    Fix bug
        the 8017HL.lib dated 1,Jul,2005 can't work together with 8024L.Lib.
        
Version 1.0.3 [1,Jul,2005] by Kevin
    Support 8017HS 
        Single ended mode
            the library supports Ch0~Ch7 only.
            
    Correct first data sampled by 
        I8017H_AD_POLLING,
        I8017H_AD_INT,
        I8017H_AD_INT_SCAN
        ARRAY_HEX_TO_FLOAT
        
        Before, the first data of is incorrect.
        The loop index of above functions begin from 1 instead of 0.
        This version correct the situation.
        Now, the loop can begin from 0. 
        
    Performance test:
        80M CPU                              MSC lib         BC lib
            (1) 1 ch, one floating point     6.8K   Hz      7.08K  Hz
            (2) 1 ch, one integer point        9K   Hz      16.3K  Hz
            (3) 1 ch, multi interger points   91K   Hz        98K  Hz 
                polling mode
                  
            (4) 1 ch, multi interger points  65.35K Hz      65.35K Hz
                timer interrupt mode
            
            (5) 8 ch, multi interger points     33K Hz         35K Hz
                timer interrupt mode    
        

        40M CPU                              MSC lib         BC lib
            (1) 1 ch, one floating point     2.8K   Hz       2.5K  Hz
            (2) 1 ch, one integer point      5.2K   Hz       7.7K  Hz
            (3) 1 ch, multi interger points   47K   Hz        60K  Hz 
                polling mode
                  
            (4) 1 ch, multi interger points  65.35K Hz      65.35K Hz
                timer interrupt mode
            
            (5) 8 ch, multi interger points     21K Hz         26K Hz
                timer interrupt mode            
------------------------------------------------------------------------
        
Ver 1.0.2 [18,Feb,2004] by Kevin
    Support both 40/80M CPU
    
    Performance test: 
        80M CPU 
            polling mode: 98K sps (sample per second)
            interrupt mode: 65535 sps (sample per second)
        40M CPU
            polling mode: 60K sps (sample per second)
            interrupt mode: 50K sps (sample per second)