感谢testcode~~~刚做完实验,大概问题基本索定
从实验结果来看,问题出在并口上. 不过刚好满足2060的需要~~~ /*----------------------------------------------------------------------------- 测试程序: double t = 0.000100; switch (event) { case EVENT_COMMIT: I2C_Init (); while (1) { I2C_SetSCL (); HotTimer_Delay (t); I2C_ClrSCL (); HotTimer_Delay (t); } I2C_Quit (); break; } 误差调整实验结果: 在17.5uS时 17.4635uS时 时间 结果 时间 结果 20uS 19.635uS 20uS 19.93uS 25uS 24.02uS 25uS 23.90uS 32uS 30.25uS 32uS 31.72uS 40uS 37.8uS 40uS 37.88uS 45uS 44.34uS 45uS 44.42uS 50uS 47.5uS 50uS 48.16uS 55uS 54.22uS 55uS 54.38uS 60uS 59.15uS 60uS 58.15uS 80uS 77.3uS 80uS 79.44uS 100uS 97.45uS 100uS 99.15uS 145uS 140.6uS 145uS 144.25uS 190uS 191.10uS 190uS 189.10uS 205uS 202.3uS 205uS 205.40uS 320uS 320.5uS 320uS 316.90uS ------------------------------------------------------------------------------*/ |
|