/**********************/
/*  Library for 8024  */
/*  Compiler: BC      */
/**********************/

Ver 2.0.3 [14 Mar,2006] by Bill
	
    Fix bug of I8024_Inital
     	After calling the function, I-8024 output goes to -10V.
    	Now the problem is solved.
===============================================================================

Ver 2.0.1 [16 Nov,2004] by Bill

    Modify functions
        1. I8024_CurrentOut_Hex
        2. I8024_VoltageOut_mV
        3. I8024_CurrentOut_0001mA.
        
        The D/A chip response is a little slower than the 80M CPU,
        adding a little postponement to the functions, 
        the D/A chip can output at exact time.
    
    The excution time:                                                          
                                       On 40M CPU               On 80M CPU      
        1.I8024_VoltageOut      0.4900 ms = 2.0408 kHz   0.1407 ms = 7.1073 kHz 
        2.I8024_VoltageOut_Hex  0.0327 ms = 30.581 kHz   0.0221 ms = 45.249 kHz 
        3.I8024_VoltageOut_mV   0.1266 ms = 7.8989 kHz   0.052 ms = 19.23 kHz 
        
================================================================================

Ver 2.0.0 [11,Oct,2004] by Bill                                                           
    Change functions name:                                                               
        I8024_VoltageHexOut ==> I8024_VoltageOut_Hex                                     
        I8024_CurrentHexOut ==> I8024_CurrentOut_Hex                                     
                                                                                         
    Modify functions:                                                                    
        I8024_VoltageOut_Hex,I8024_CurrentOut_Hex                                        
                                                                                         
        1. Increase Bit's operation from 14 bits to 16 bits.                             
            (New)                                                                          
            Range with 16 bits of 2's complement:                                        
            Voltage:                                                                     
            -32768           -0     +0           32767                                   
             -10V            0V     0V            +10V                                   
                                                                                   
            Current:                                                                     
               0            32768                                                        
               0             20mA     
                                                                  
            ******************************************                                   
            (Old)
            Range of general 14 bits:                                                    
            Voltage:                                                                     
               0            8192            16383                                        
             -10V            0               10V                                         
                                                                                    
            Current:                                                                     
              8192          16383                                                        
               0             20mA                                                        
                                                                                         
    Correct functions:                                                                   
        The output value of preceding version didn't calibrated.The output               
        value was not very exact.This version calibrates the output value.               
                                                                                         
    Add functions:                                                                       
        I8024_VoltageOut_mV,I8024_CurrentOut_0001mA.                                     
                                                                                         
        Because  the  type  declared  I8024_VoltageOut  and  I8024_CurrentOut is         
        float.The type declared I8024_VoltageOut_mV and I8024_CurrentOut_0001mA          
        is integer.The throughput of integer format is faster than float format.         
                                                                                         
    The excution time:                                                                   
                                       On 40M CPU               On 80M CPU               
        1.I8024_VoltageOut      0.4900 ms = 2.0408 kHz   0.1407 ms = 7.1073 kHz          
        2.I8024_VoltageOut_Hex  0.0327 ms = 30.581 kHz   0.0221 ms = 45.249 kHz          
        3.I8024_VoltageOut_mV   0.1266 ms = 7.8989 kHz   0.0393 ms = 25.445 kHz        
   

================================================================================
Ver 1.0.2 [18,Feb,2004] by Kevin
    Fix bug
        I8024_VoltageOut doesn't output correctly.
        Ver. 1.0.0 doesn't have the bug.
        
    Remove I8024_CurrentHexOut (must update 8024.h)
        The source code of the I8024_VoltageHexOut and I8024_CurrentHexOut
        are same. Thus remove I8024_CurrentHexOut and add a define code 
        in 8024.h to let it call the code of I8024_VoltageHexOut.
    
    Support both 40/80M CPU    
                
Ver 1.0.1 [12,Apr,2003]
    Improve throughput performance of following functions:
        1. I8024_VoltageOut
        2. I8024_CurrentOut
        
     The excution time is reduced form 0.392 ms (ver 1.0.0) 
                                    to 0.168 ms (ver 1.0.1)                                                                                        