国产成人永久免费视频_一区二区三区四区高清精品免费观看_成人午夜视频免费观看_在线电影一区二区三区_国产成人a人亚洲精品无码_欧美日韩在线观看一区_国产精品美女久久久久久_免费av手机在线观看_国产欧美日韩精品一区_国产精品日韩一区二区免费视频_亚洲一区精彩视频_youjizz在线视频

Linux-based PC104 bus and CAN bus communication design

1 Introduction

PC104 embedded industrial computer because of its small size structures, stack-type connection, easy bus-driven features have been widely used. Fieldbus field, CAN bus has been widely supported by the computer chip business, they have introduced CAN interface directly with microprocessor (MCU) chip.

Chip MCU with CAN's total has reached 100 million 3000 million pieces, so in the interface chip technology, CAN has been far ahead of FF, PRO-FIBUS, LONWORKS all other fieldbus. But the PC104 bus can not communicate directly with the CAN bus, CAN bus control system so difficult to use.

To solve the above problems, to AVR microcontroller co-processor designed for the PC104 bus and CAN bus converter card, and taking into account the PC104 embedded industrial computer running Linux operating system is usually characterized by the preparation of the conversion card under Linux dual-port RAM PC104 bus access drivers. The adapter used in industrial control systems, can actually show that the stable and reliable in operation.

2 hardware

PC104 CAN bus converter card to the hardware system block diagram shown in Figure 1. In the PC104 bus and CAN bus communication, the main issue to consider is the PC104 bus and CAN bus data synchronization. PC104 bus and CAN bus bus speed are very different, commonly used for such problems is to use dual-port RAM or FIFO as a buffer, where a dual-port RAM as a data buffer, while the dual-port RAM, set aside a few bytes as the ATmega64 processor and PC104 embedded computer soft handshake signals the completion of the above methods PC104 bus and CAN bus data synchronization. Altera EPM7128 to the CPLD, here using the CPLD is mainly used for CAN-bus converter card PC104 to the address decoding. CAN bus communication use SJA1000 CAN bus controller, in order to meet the harsh electromagnetic environment of industrial site, in the SJA1000 and PC82C250 in the light compartment after treatment.

Linux-based PC104 bus and CAN bus communication design

2.1 PC104 bus interface circuit with IDT7134
IDT7134 PC104 bus and interface circuit diagram shown in Figure 2.

PC104 embedded computer to read the dual-port RAM IDT7134 data. First IDT7134 mapped to the PC104 embedded computer memory space, use SMEMR *, SMEMW * as IDT7134 the OER, R / W control signal. Another advantage of the PC104 bus CPLD EPM7128 high three addresses SA19, SA18, SA17 decoding the chip select signal as IDT7134.

Linux-based PC104 bus and CAN bus communication design

2.2 ATmega64 and IDT7134 interface circuit

ATmega64 processor used is the address line, data line time-multiplexing, thus the need for address latch. EPM7128 VHDL hardware description language used in the design of the address latch. ATmega64 and IDT7134 interface circuit shown in Figure 3.

Linux-based PC104 bus and CAN bus communication design

2.3 CPLD EPM7128 internal logic

CPLD EPM7128 in the whole design was completed for decoding, and address latch function. In the Quartus Ⅱ 6.0 environment, through the VHDL hardware description language, completion of the function. The source code is as follows:

Linux-based PC104 bus and CAN bus communication design

In the above VHDL code CSSJA1000 for the SJA1000 chip select signal, CS7134L left port for the IDT7134 chip select, CS7134R for the IDT7134 chip select the right port.

Software part 3

To achieve the PC104 bus and CAN bus data communication hardware design in the above mentioned dual-port RAM is used as a data buffer method, which involves the dual-port RAM in the data area opened up as PC104 Embedded PC, and ATmega64 soft handshake flag. Handshake to ATmega64 PC104 embedded PC, the software program and implement, the process is as follows: First, open up the dual-port RAM, two buffer, were used to send and receive data buffer CAN bus. When there is data to the PC104 bus, CAN bus, the first dual-port RAM, data is written to send the CAN data buffer, and then to the dual-port RAM reserved for the flag field to write a specific value, the circular ATmega64 with data through CAN bus send, ATmega64 using the query method to measure the flag field, when a specific flag field detected value, to read dual-port RAM of the CAN data transmission buffer, while read data to the CAN bus. After the above process, ATmega64 program will reset the field flags. Thus completed the PC104 bus data transmission on the CAN bus. CAN bus data on the PC104 bus to send the opposite of this process.
3.1 ATmaga64 processor program

ATmaga64 processor on the CAN bus read and write the bottom of the work, while data written in the dual-port RAM IDT7134 and IDT7134 stored in the first flag byte set to notify the PC104 embedded PC, with data being updated to require PC104 Embedded PC, be read on the IDT7134. Based on the above process ATmaga64 processor initialization procedure includes SJA1000, SJA1000 interrupt handler, and access IDT7134 procedures.

3.2 PC104 bus access dual-port RAM in the Linux driver

Linux driver from the structure is divided into three parts:

(1) equipment configuration and initialization, including the existence of inspection equipment, status, equipment, registration and related device driver initialization. This part of the general initialization procedure is called only once, he was included in the init_module () routine.

(2) I / O request service programs primarily through system calls, the completion of the user's request features such as Read, Write, etc., and equipment operating by the majority of I / O request completion of services, including Read, Write, Ioct1 and other routine .

(3) interrupt service routine, the system receives all the hardware interrupt, then calls the appropriate interrupt service routine.

In the Linux system, device drivers the way the document appears, the device driver interface is a file system interface, which consists of a data structure struct file_operations () to define the data structure is the virtual file system standard interfaces. So first define a dual-port RAM PC104 bus driver to access the file system data structures.

Linux-based PC104 bus and CAN bus communication design

PC104 memory segment for the Linux kernel at boot time to access these addresses on the establishment of a page table, access to their virtual address and the actual physical address are different, need to use ioremap to map physical address to virtual address so we can visit on the PC104 bus, to read the dual port RAM data. ioremap function is defined as:


Void * ioremap (unsigned long phy_addr, unsigned longsize)

Parameter phys_addr the physical address, size for the physical address length. ioremap return value is a unique virtual address can be used to access the specified the physical memory area, the virtual address to call iounmap to release last fall. The following will detail the various Linux drivers for the concrete realization of the function.

3.2.1 Initialization function and unloading functions to achieve

Equipment configuration and initialization function init_module () called, respectively:

register_chrdev (): for device registration;

request_irq (): interrupt request channel;

request_mem_region (): allocation of I / O memory area;

ioremap (): physical address mapped to the virtual address.

Source code is as follows:

Linux-based PC104 bus and CAN bus communication design

This completes the device driver initialization. Unloading part of the device driver and initialization Instead, uninstall is assigned to the device driver recovered a variety of resources. cleanup_module () call, respectively:

iounmap (): release of virtual address;

release_mem_region (): release memory regions;

free_irq (): release interrupt channel.

Source code is as follows:

Linux-based PC104 bus and CAN bus communication design

3.2.2 Reading of the function implementation

Read function definition of dual-port RAM read process, the source code is as follows:

Linux-based PC104 bus and CAN bus communication design

Kernel function which copy_to_user virtual address pPxp-VirtStartAddr the count of data copied to buf pointer to user space. Before the device configuration and initialization function ink_module () in ioremap () function has dual-port RAM physical address mapped to virtual address pPxpVirtStartAddr, so you can pxp_read () function to read dual-port RAM.

3.2.3 Write a function to achieve

Write dual-port RAM, called pxp201_write () function, the principle of dual-port RAM with similar reading, but pxp201_write () function call copy_from_user () kernel function.

Linux-based PC104 bus and CAN bus communication design

3.2.4 open function and the release function to achieve

pxp_open () function to achieve the following, which increases equipment use MOD_INC_USE_COUNT reference count.

Linux-based PC104 bus and CAN bus communication design

pxp201_release () function and pxp_open () process the contrary, the use of MOD_DEC_USE_COUNT decreasing device reference count.

Since then, Linux, dual-port RAM of the drive module is complete, you can use Insmod tool to load the kernel driver module. This can be embedded in the PC104 industrial computer's Linux operating system to access the dual-port RAM.

4 Concluding Remarks

This paper introduces the PC104 bus and CAN bus communication hardware, and PC104 embedded Linux computer operating system developed under the PC104 bus on the dual-port RAM IDT7134 access driver. Signs within the open area in the IDT7134, using soft handshake method to achieve the PC104 bus and CAN bus data communication. The adapter used in industrial control systems through practical and reliable test that can be run.

Declined comment

国产成人三级在线播放| 国产在线一级片| 国产精品综合网| 亚洲国产美女搞黄色| 欧美成人合集magnet| 欧美12av| 国产精品第72页| 国产福利一区在线| 日韩电影在线观看中文字幕| 欧美另类高清视频在线| 欧美色图亚洲天堂| 91论坛在线播放| 日韩视频中午一区| 欧美欧美一区二区| 国产一级淫片免费| 最新成人av在线| 日韩av免费看网站| 伊人av在线播放| 久久99国产精品久久99| 精品免费99久久| 国产人妻互换一区二区| 在线观看视频二区| 欧美丰满少妇xxxxx高潮对白 | 1024精品合集| 亚洲综合小说区| 亚洲欧美另类日本| 国产精品全国免费观看高清| 欧美精品久久久久久久| 在线成人精品视频| 国产激情91久久精品导航| 久久久久久亚洲精品| 成年人免费大片| 国模少妇一区二区三区| 久久久影视精品| 欧美巨胸大乳hitomi| 久久美女艺术照精彩视频福利播放| 国内精品久久久久影院优| 精品影片一区二区入口| 久久久影视传媒| 高清亚洲成在人网站天堂| 中文字幕 亚洲一区| 亚洲另类在线制服丝袜| 国产精品一区二区三区观看| 久久高清无码视频| 欧美另类z0zxhd电影| 欧美国产亚洲一区| 国产精品一区二区x88av| 国产精品久久久久久网站| 成人一级黄色大片| 欧美一区二区三区精品| 18禁裸男晨勃露j毛免费观看| 日韩电影免费在线看| 日韩av日韩在线观看| 国产精品男女视频| 亚洲免费视频观看| 日本黄色一级网站| 一区二区三区中文字幕精品精品| 999久久久| 亚州精品国产精品乱码不99按摩| 久久深夜福利免费观看| 三级在线观看免费大全| 欧美巨大另类极品videosbest| www.se五月| 亚洲精品精品亚洲| 欧美 日韩精品| 亚洲日本乱码在线观看| 在线看日韩欧美| 国产真人真事毛片| 久久―日本道色综合久久| 国产精品精品一区二区三区午夜版| 国产精品高清无码| 欧美有码在线观看| av黄色在线看| 91av在线播放视频| av av片在线看| 91精品视频在线看| 美女一区二区三区| 欧美在线播放一区二区| 久色婷婷小香蕉久久| 欧美一区亚洲二区| 国产成人精品免费视频网站| 欧美中文娱乐网| 国产在线播放一区三区四| 992tv成人免费观看| 国产精品无遮挡| 中文字幕线观看| 日韩欧美aⅴ综合网站发布| 精品无码人妻少妇久久久久久| 人人超碰91尤物精品国产| 久久国产精品精品国产色婷婷| 久久只精品国产| 色戒在线免费观看| 欧美视频在线一区二区三区| 国产视频久久久久久| 国产亚洲欧美另类中文| 国产视频在线免费观看| 91色中文字幕| 国产一区二区三区免费看| 很污的网站在线观看| 欧美亚洲国产bt| 激情综合网五月婷婷| 国产精品91免费在线| 日韩电影一区二区三区| 少妇大叫太大太粗太爽了a片小说| 色天使久久综合网天天| 激情四射综合网| 国产精品在线看| 美日韩一区二区三区| 日本三级免费网站| 欧美中文字幕一区二区三区 | 欧美日韩三级视频| 日本在线一级片| 国产精品都在这里| 国产欧美一区视频| 在线免费观看黄色小视频| 91精品国产成人www| 91在线免费视频观看| 亚洲精品无码久久久久久久| 久久成年人视频| 国产精品一区免费在线观看| 每日在线更新av| 中文字幕免费精品一区| 欧洲精品久久一区二区| 一区二区三区四区免费观看| 欧美精品久久99久久在免费线| 亚洲特级黄色片| 亚洲一区三区电影在线观看| 7777精品伊人久久久大香线蕉 | 亚洲精品成人a8198a| 欧美少妇xxx| 蜜臀久久99精品久久久| 伊人成色综合网| 久久99久久99精品中文字幕| 国产亚洲一区二区三区四区| 日韩免费av一区| 亚洲va欧美va在线观看| 欧美日韩国产一区二区| 国产人妖在线播放| 制服国产精品| 亚洲精品乱码久久久久久金桔影视 | 在线看的片片片免费| 欧美福利一区二区三区| 亚洲视频axxx| 风流少妇一区二区| 日本一区二区不卡在线| 男女高潮又爽又黄又无遮挡| 久久久久久一区二区三区| 成人动漫在线一区| 日产电影一区二区三区| 丰满爆乳一区二区三区| 欧美黄色成人网| 欧美日韩午夜剧场| 麻豆久久一区二区| 欧美特黄一级片| 97在线免费视频观看| 欧美与欧洲交xxxx免费观看| 欧美性猛交xxxx| 亚洲 小说区 图片区 都市| 少妇被狂c下部羞羞漫画| 91情侣偷在线精品国产| 亚洲第五色综合网| 亚洲丝袜自拍清纯另类| 美女精品一区| 精品国产av一区二区三区| www.99av.com| 日韩激情久久| 宅男66日本亚洲欧美视频| 亚洲免费观看在线观看| 无码国产精品高潮久久99| 黄色小说在线观看视频| 久久国产这里只有精品| 97视频热人人精品| 亚洲美女喷白浆| 亚洲影院久久精品| 国产成人午夜精品影院观看视频| 蜜臀99久久精品久久久久小说 | 亚洲国产成人porn| 国产一区二区三区免费观看| 国产九色91回来了| 羞羞在线观看视频| 99色这里只有精品| 91亚洲精品视频| 欧美日本啪啪无遮挡网站| 在线看国产一区| 亚洲精品国产成人久久av盗摄| 国产精品一品视频| 人人妻人人澡人人爽精品日本| 免费高清在线观看电视| 女同性恋一区二区三区| 欧美日韩中文不卡| 成年人网站大全| 搞av.com| 人妻无码一区二区三区四区| 成人动漫在线观看视频| 成人免费在线网址| 国产精品露脸自拍| 日韩女优在线播放| 欧美一区二区三区……| 久久天天躁狠狠躁夜夜躁| 在线观看日韩av| 制服.丝袜.亚洲.中文.综合| 欧美性xxxxxxx| 欧美性猛交xxxx富婆| 欧美小视频在线| 精品久久久久久国产91| 色综合天天综合网国产成人综合天 | 国产毛片精品视频| 国产一区不卡在线| 国产麻豆欧美日韩一区| 成人性视频免费网站| 国产成人精品免费看| 国产美女在线精品| 成人性生交大片免费看中文 | 国产精品视频一区国模私拍| 91精品视频免费| 精品中文字幕一区| 粉嫩av四季av绯色av第一区| 日本高清久久一区二区三区| 久久久久久精| 日本黄网站色大片免费观看| 国产1区2区3区中文字幕| 漂亮人妻被中出中文字幕| 天天综合网久久| 91文字幕巨乱亚洲香蕉| 日本一区二区三区四区高清视频 | 人妻少妇精品无码专区| 久久久精品五月天| 波多野结衣精品在线| 亚洲成人中文在线| 欧美日韩电影在线| 亚洲欧美激情在线视频| 九九热在线精品视频| 欧美视频在线观看视频| 免费在线观看你懂的| 大黑人交xxx极品hd| 久久伊人成人网| 午夜福利理论片在线观看| 成人av资源在线观看| 国产精品国产三级国产aⅴ无密码| 都市激情亚洲色图| 亚洲香蕉伊综合在人在线视看 | 懂色av一区二区夜夜嗨| 亚洲图片欧美视频| 日韩精品高清在线| 日本久久中文字幕| 一区二区三视频| 国产成人精品综合久久久久99| 免费在线视频观看| 日韩成人免费看| 欧美国产乱子伦| 欧美日本国产一区| 97精品国产97久久久久久免费 | 精品国产一区久久| 欧美高清自拍一区| 深田咏美在线x99av| 国产精品麻豆入口| 成人一级免费视频| 国产亚洲欧美精品久久久久久 | www.污污视频| 国产精品嫩草影院桃色| 中文字幕一区二区三区在线播放| 亚洲欧美三级在线| 色女人综合av| 日韩在线不卡av| 国产99久久久国产精品潘金| 欧美三级日韩三级| 国产精品com| 丁香花在线影院观看在线播放| 欧美黄片一区二区三区| 国产凹凸在线观看一区二区| 欧美电视剧在线看免费| 久99久视频| 三级黄色在线观看| 国产高清精品久久久久| 欧美精品一区二区久久婷婷| 噜噜噜噜噜久久久久久91| 国产精品久久无码| 蜜桃视频在线观看一区| 欧美性生交大片免费| 91久久国产综合久久蜜月精品| 国产女同无遮挡互慰高潮91| 国产人妖一区二区| 欧美日韩国产一级二级| 成人女人免费毛片| 国产一二三av| 亚洲国产成人在线| 色综合久综合久久综合久鬼88| 欧美黑人经典片免费观看| 日韩伦人妻无码| 97免费在线观看视频| 中文字幕av资源一区| 欧美成人黑人xx视频免费观看| 国产成人无码一二三区视频| 欧美熟女一区二区| 亚洲高清在线观看| 亚洲熟妇无码一区二区三区| 高h调教冰块play男男双性文| 黑人精品xxx一区一二区| 国产日韩一区欧美| 日本少妇性生活| 欧美三级资源在线| 免费av观看网址| 精品一区二区影视| 午夜精品视频在线| 99re在线视频免费观看| 日韩成人免费在线视频| 《视频一区视频二区| 亚洲aaaaaa| 妖精视频在线观看免费| 亚洲国产一区二区在线播放| 91精品久久久久久久久中文字幕| 欧美精品一区二区蜜桃| 色偷偷一区二区三区| 日本一区二区免费高清视频| 国产精品午夜一区二区| 制服视频三区第一页精品| 国产日韩专区在线| 国产中文字幕久久| 亚洲一区二区在线视频| 欧美二级三级| 精品国产av 无码一区二区三区 | 欧美久久久久久久久久| 欧美狂野激情性xxxx在线观| 国产精品一区二区黑丝| 日本欧美精品在线| 精品在线观看一区| 91蝌蚪porny成人天涯| 久久夜色精品国产欧美乱| 自拍偷拍 国产| 91在线一区二区| 97在线视频国产| 国产第一页在线播放| 欧美成人a视频| 精品少妇无遮挡毛片| 亚洲图片有声小说| 久久手机视频| 国产免费观看av| 欧美日韩一区二区在线播放| 91av在线影院| wwwxxx亚洲| 美女性感视频久久久| 久久精品偷拍视频| 欧美中文字幕在线播放| 国产成人a v| 4444欧美成人kkkk| 超碰人人人人人人| 99r国产精品视频| 精久久久久久久久久久| 国产麻豆日韩| 无码精品一区二区三区在线| 91在线看网站| 国产综合色视频| 亚洲午夜精品久久| av中文字幕亚洲| 国产深夜男女无套内射| 亚洲一区二区三区不卡国产欧美| av片中文字幕| 亚洲一区二区三区三| 中文字幕在线播放一区| 爱福利视频一区| 99re这里只有精品在线| 26uuu另类亚洲欧美日本一| 亚洲第一第二区| 91夜夜揉人人捏人人添红杏| 91免费国产视频网站| 成人性视频欧美一区二区三区| 色综合久久久久久久久| 亚洲熟女乱综合一区二区三区| 国产午夜精品全部视频播放 | 国产亚洲欧美精品久久久www | 国产精品一区二区三区观看| 狠狠色狠狠色综合| 日本在线观看a| 日韩三级视频在线看| 超碰在线免费97| 美女黄毛**国产精品啪啪| 亚洲一区免费观看| 放荡的美妇在线播放| 久久久久久这里只有精品| 国产一区在线精品| 国内精品久久久久影院 日本资源| 国产综合色在线视频区| 久章草在线视频| 国产一区二区三区在线观看网站| 蜜桃91麻豆精品一二三区| 日韩免费电影一区二区三区| 色综合天天综合网天天看片| 狠狠人妻久久久久久综合蜜桃| 青草青草久热精品视频在线观看| 91视视频在线观看入口直接观看www| 精品伦一区二区三区| 欧美一区第一页| 不卡一区在线观看| 国产成人精品综合久久久久99| 欧美大片大片在线播放| 不卡一二三区首页| 中文字幕丰满孑伦无码专区| 久久精品久久久久| av一本久道久久综合久久鬼色| 国模无码视频一区| 国产精品一区二区三区成人| 亚洲一区在线视频观看| 国产三级精品三级观看| 亚洲毛片在线看| 天码人妻一区二区三区在线看 | 日韩三级免费看| 蜜桃麻豆www久久国产精品| 91精品国产综合久久精品| 视频一区二区欧美| 中文字幕乱视频|