检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]桂林电子科技大学,广西桂林541004 [2]广西工学院,广西柳州545006
出 处:《微计算机信息》2009年第17期155-157,共3页Control & Automation
基 金:基金申请人:蔡启仲;项目名称:基于智能控制CAN现场总线的嵌入式微处理器控制系统的研究;基金颁发部门:广西自然科学基金资助项目(桂科基0448011)
摘 要:本文以嵌入式微处理器S3C2410为主控制器,通过SPI接口,采用MCP2510控制器扩展CAN总线接口。文章分析了Linux下设备驱动程序的结构和工作原理,详细论述了嵌入式Linux操作系统下CAN设备驱动程序的设计方法和具体实现。针对字符设备驱动程序的特点,采用中断驱动I/O口方式结合缓冲区的使用可将数据接收和read系统调用隔离开来,同时在系统调用函数中加入了休眠代码,确保设备在系统中的高效运行。Basing on s3c2410 microprocessor, through its SPI interface, the article extended CAN Bus through adopting MCP2510 CAN controller. The paper analyzes device driver of the structure and working principle under the Linux,The way of design and realization of CAN device driver under the embedded operating system LINNUX are discussed in detail. According to the characteristics of Character device driver, data receiving and system call can be seperated by the combination of interrupt-driven I/O and data buffer and the sleep code are added in the function of system call. To ensure the Equipment is operating efficiency in the system.
关 键 词:LINUX S3C2410 CAN总线 设备驱动 MCP2510
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.151