摘要
1-Wire器件直接连接到微控制器的I/O口线上使用时,不仅每个1-Wire位的传输会消耗大量的CPU时钟周期,而且在每个位时隙的"0"阶段是不允许被中断的,因此这种接口方式对实时多任务系统来说是不合适的。为了解决这一问题,给出了一种基于1-Wire线驱动器DS2482-100的1-Wire接口解决方案。对DS2482-100进行了简要介绍,以S3C2410A系统为例阐述了该接口硬件和软件的设计方法,提供了接口电路图及部分驱动程序的C语言源代码。
Using a GPIO pin as the 1-Wire bus master will consume an enormous number of CPU clock cycles per 1-Wire bit, and the 1-Wire transmission cannot be interrupted during the "low" time of a bit time slot. Therefore the interface design is not suitable for real-time muhitask system. To solve the problem, a kind of 1-Wire interface solution based on the 1-Wire line driver DS2482- 100 is given. The DS2482-100 device is briefly introduced. Taking S3C2410A system as an example, the design method of software and hardware of the 1-Wire device interface is expounded. The interface circuit diagram and some of the C source code drivers are present.
出处
《微计算机信息》
北大核心
2008年第35期298-300,共3页
Control & Automation