/*********************************************************************/ /* Library revision information for I-8080 */ /* BC\Lib\8080L.Lib for BC++ 3.1, Turbo C 2.01, Turbo C++ 1.01 */ /* MSC\lib\8080L.Lib for MSC */ /*********************************************************************/ Ver 2.0.5 [2006,Aug,08] by Martin Fix bug: 1. When works on C836 V2.5 CPU and V6.4(4 slot) and V8.4(8 slot)back plane, the i-8080 will get wrong data. 2. When works on Dir/Pulse mode ,if change Xor the i-8080 will get wrong data. 3. When works on the V6.8 back plane,and when uses Clear Count or Set Channel Mode function, the counter value for each channel will be changed. Modify: 1. When Set Channel Mode, the counter values for each channel will be cleared. Note:The table below shows the results of 2.0.4 8080 lib and 2.0.5 8080 lib which running on different CPU Boards and different Backplanes Test Frequency is 400KHz 2.0.4 8080 lib | 80M C836 V2.5 | 80M V1.2 | 40M ------------------------------------------------------------------------------------------ V6.4 ( 4 slot) |get abnormal when setting | normal | normal ----------------------------------------------------------------------------------------- V6.8 ( 4 slot) |get abnormal when setting |get abnormal when setting |get abnormal when setting ------------------------------------------------------------------------------------------ V8.4 (0 ~3 slot) | normal | normal | normal ------------------------------------------------------------------------------------------ V8.4 (4 ~7 slot) | normal when setting | normal when setting | normal when setting | but will get wrong count | but will get wrong count | but will get wrong count ********************************************************************************************************* 2.05 8080 lib | 80M C836 V2.5 | 80M V1.2 | 40M ------------------------------------------------------------------------------------------ V6.4 ( 4 slot) | normal | normal | normal ----------------------------------------------------------------------------------------- V6.8 ( 4 slot) | normal | normal | normal ------------------------------------------------------------------------------------------ V8.4 (0 ~3 slot) | normal | normal | normal ------------------------------------------------------------------------------------------ V8.4 (4 ~7 slot) | normal when setting | normal when setting | normal when setting | but will get wrong count | but will get wrong count | but will get wrong count ------------------------------------------------------------------------ Ver 2.0.4 [2006,Mar,23] by Kevin Fix bug of i8080_AutoScan The function will distribute I/O module in slot 0 if there in no 8080 on the contrller. ------------------------------------------------------------------------ Ver 2.0.3 [2005,Oct,17] by Kevin Change factory default setting. After call function i8080_RecoverDefaultSetting, the channel mode will all be up counter mode. Original mode is Pulse/Dir. Before this version, when you first time run a 8080, its defualt channel mode are all Pulse/Dir. If some channels' statuses are high, they could cause i8080_InitDriver's return code >0 and make the program identify the 8080 is damaged. In fact, the 8080 is with a problem only when the return code of i8080_InitDriver is -1. Relative functions: 1. i8080_InitDriver 2. i8080_RecoverDefaultSetting ------------------------------------------------------------------------ Ver 2.0.2 [2005,Apr,22] by Kevin Can co-work with multi port serial modules. The multi port serial modules include 8112,8114... etc. The 8000E.Lib also need to update to 2005,Apr,21. ------------------------------------------------------------------------ Ver 2.0.1 [2005,Mar,07] by Kevin Fix bug When count>65535 or count<-65536, i8080_ClrCnt cannot reset count correctly. Ver 2.0.1 [2005,Feb,22] by Kevin Fix bug The initial counter could jump to 655xx sometimes. Normally, it should be 0 when there is no signal input or a small value when there is a signal input. ------------------------------------------------------------------------ Ver 2.0.0 [2004,Dec,20] by Kevin This version is quite different to version 1.0.0 Rename: i8080_GetVersion == becomes ==> i8080_GetLibVersion i8080_ReadDIXor == becomes ==> i8080_ReadDI_Xor i8080_ReadDIXorLp == becomes ==> i8080_ReadDI_XorLPF i8080_ReadLowPassUs == becomes ==> i8080_ReadLowPassFilter_Us i8080_SetLowPassUs == becomes ==> i8080_SetLowPassFilter_Us Remove: i8080_ReadFreqConfiguration i8080_SetFreqConfiguration i8080_ReadCntAndT Change functionarity: i8080_InitDriver ===> Reads initial configurations from EEPROM. The configurations includes: 1. XOR register 2. Channel mode 3. Low Pass Filter pulse width 4. Low Pass Filter status (enable/disable) 5. Freq mode 6. Freq update time i8080_ReadChannelMode ===> meaning of Mode is changed i8080_SetChannelMode ===> meaning of Mode is changed Rename and change functionarity: i8080_ReadFreqConfiguration ===> i8080_ReadFreqUpdateTime i8080_SetFreqConfiguration ===> i8080_SetFreqUpdateTime Add: i8080_RecoverDefaultSetting i8080_ReadFreqMode i8080_SetFreqMode i8080_ReadCntPulseDir: Pulse/Dir mode uses function i8080_ReadCntUpDown Originally. Now, Pulse/Dir mode uses i8080_ReadCntPuleseDir Up/Down mode uses i8080_ReadCntUpDown. i8080_ReadLowPassFilter_Status i8080_SetLowPassFilter_Status