计算机技术与发展
計算機技術與髮展
계산궤기술여발전
COMPUTER TECHNOLOGY AND DEVELOPMENT
2014年
8期
250-253
,共4页
LIN%USB%转换器%单片机%HID设备
LIN%USB%轉換器%單片機%HID設備
LIN%USB%전환기%단편궤%HID설비
LIN%USB%converter%microcontroller%HID equipment
讨论了一种LIN USB总线协议转换器的设计。首先分析了LIN总线的应用现状并指出了它在实际应用中所面临的不足,由此提出了以LIN USB总线协议转换器作为解决方案,并指出了该设计方案的优越性。然后以STM32L152V8单片机为中心、TJA1020作为LIN收发器论证了该转换器的硬件设计。在此基础上,利用ST公司提供的一般外围接口和USB固件库完成了转换器内嵌协议转换软件的编写,利用HID设备的API函数库在Visual C++6.0环境下完成了PC机端USB接口软件的编写。最后,通过实验证明了该协议转换器能够满足设计要求。
討論瞭一種LIN USB總線協議轉換器的設計。首先分析瞭LIN總線的應用現狀併指齣瞭它在實際應用中所麵臨的不足,由此提齣瞭以LIN USB總線協議轉換器作為解決方案,併指齣瞭該設計方案的優越性。然後以STM32L152V8單片機為中心、TJA1020作為LIN收髮器論證瞭該轉換器的硬件設計。在此基礎上,利用ST公司提供的一般外圍接口和USB固件庫完成瞭轉換器內嵌協議轉換軟件的編寫,利用HID設備的API函數庫在Visual C++6.0環境下完成瞭PC機耑USB接口軟件的編寫。最後,通過實驗證明瞭該協議轉換器能夠滿足設計要求。
토론료일충LIN USB총선협의전환기적설계。수선분석료LIN총선적응용현상병지출료타재실제응용중소면림적불족,유차제출료이LIN USB총선협의전환기작위해결방안,병지출료해설계방안적우월성。연후이STM32L152V8단편궤위중심、TJA1020작위LIN수발기론증료해전환기적경건설계。재차기출상,이용ST공사제공적일반외위접구화USB고건고완성료전환기내감협의전환연건적편사,이용HID설비적API함수고재Visual C++6.0배경하완성료PC궤단USB접구연건적편사。최후,통과실험증명료해협의전환기능구만족설계요구。
One kind of design of LIN USB bus protocol converter is discussed. First the current situation of LIN bus in the application is analyzed and the problems faced in practical application are pointed out,therefore the LIN USB bus protocol converter is proposed as a solution,the superiority of this design is pointed out. After that taking the STM32L152V8 microcontroller as the center and TJA1020 as LIN transceiver,the hardware design of the converter is demonstrated. On this basis,the converter embedded protocol conversion software is composed using the general peripheral interface and USB firmware library provided by ST Company and USB interface software on PC is composed in the Visual C++ environment using the API function library of HID equipment. Finally,the experiment is proved that the protocol converter can meet the design requirements.