91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫

DS80C410-based embedded CAN bus Dining Hall System

CAN bus (Controller Area Network Bus) is an effective support for distributed control of the serial communication network. Communication bus than the general more reliable, real-time and flexibility. CAN multi-master approach to work, the network took a node can be its own initiative at any time other nodes on the network to send information, but regardless of master and slave, and flexible communication without station node address information. CAN bus has been widely used in industrial control, residential security, environmental monitoring and many other areas.

2. System Structure

Real-time communication Dining Hall characteristics of the communication system is suitable for use CAN bus. Its short frame structure is very suitable system for anti-jamming capability and the ability to demand higher real-time communication, communication is very small single occasion; flexible networking features to fully address the large Dining Hall system, multiple dining outlets and more dispersed problems.

CAN bus Dining Hall on the system network structure shown in Figure 1. Use bus-type access method, consists mainly of three layers: server, repeaters and terminals. Which include the work server and backup server, the server, both servers work in the business at the same time, mutual backup, to ensure system reliability. Repeaters can extend the communication distance, increasing the number of terminals, transform communication rate, and can play the role of filtering and isolation. Terminal window is mainly used machine sales, but also report the loss machine, solution hang card / recharge machine.

DS80C410 embedded CAN bus based system design Dining Hall

Figure 1 Network structure diagram Dining Hall

DS80C410-based embedded CAN bus Dining Hall System

Figure 2 windows machine hardware block diagram

3. Window machine hardware design

Windows machine is directly dealing with the Canteen and the main reception equipment users. Figure 2 shows the hardware block diagram of the window plane. Dallas CAN controller with embedded microcontroller DS80C410 high-speed network as a Windows machine's microprocessor, the windows machine and the keyboard is responsible for monitoring. MMM non-contact IC (Mifare) Card read / write module. The module is under the control of the microprocessor, to complete a non-contact on the card read / write and other operations. Window machine communication tasks DS80C410 CAN controller embedded under the control of the CPU's, CAN controller via CAN bus transceiver PCA82C250 to receive the data on the bus for the CPU to read, also can be sent to the CPU data sent CAN bus. Embedded CAN controller through the DS80C410 chip P5.1 (C0RX-CAN receiver) and P5.0 (C0TX-CAN send) pin respectively transceiver RXD (receive data output) and TXD (transmit data input) pin is connected . Window machine hardware also includes a 4 × 4 keyboard (10 number keys, 6 function keys), before and after the 10-bit digital display (display exactly the same), 32KB of EEPROM (for storing consumer records), Watchdog, etc. part of the circuit.


4. Windows Software Design

4.1 Main program design

Windows machine with the Internet and offline operation types. Windows machine running the default work is divided into networking, and only in the event of network failure or other reason can not be networked to run only when the network through the switch is set to run off. Figure 3 for Windows machines running the main program flow chart. Window machine is initialized, the first treatment for the keyboard, LED display processing, and to determine whether the recovery of consumer records. Then check whether the read card, read the card, call the appropriate subroutine networked or offline, for business operations.

DS80C410-based embedded CAN bus Dining Hall System

Figure 3, the main program flow chart window machine

4.1.1 CAN Initialization

Window machine initialization, including initialization of the CAN module. When the system hardware reset, the first shield CAN interrupt, and then in the DS80C410's SFR (Special Function Register) in the C0C (CAN Control Register) of the CRST (reset) bit to 0, the CAN controller cleared the reset state, Meanwhile SWINT (software initialization) bits to be set to 1, which prohibits the CAN bus, so that it allows the program to the CAN module control registers and extended frame mask register (C0EGM0 ~ C0EGM3) to write, and set the communication wave special rate, window machine ID, window machine number, CAN state, CAN port enabled, CAN time and other parameters, initialize the CAN module. CAN interrupt the final restoration. After initialization, to clear SWINT bit, to restore the activities of CAN bus.

4.2 subroutine Design

4.2.1 Workflow

In the networking case, when the windows machine by MMM access card number, the card number will be sent to the server, the server upon receipt of card number, card number in the database to find the corresponding user and return the balance to the windows machine. Windows machine shows the user receives the balance of business operation is completed once and the window unit will users always spending sent to the server Fu Wuqi spending Hou received the corresponding database record of Geng Xin Jin Xing, Bing Jiang Yi received spending the Queren frame ( ACK) back to the windows machine. If the windows machine to read the card number (SNR) sent to the server during the frame loss, that is, the window server machine does not receive the balance of the frame, then the window machine waiting for a retransmission time frame not received the balance of the server , it will resend the previous card number. Most re-issued three times, when the re-issued three times still could not receive server response frame, the display the appropriate message. If the checkout after the windows machine to the server's user spending frame loss, that is, spending the server does not receive frames, the corresponding records can not be updated, re-issued the same way to the user spending. Figure 4 for the networked subroutine flow chart.

Figure 4 networked subroutine flowchart

Offline case, the window machine is used in accounting methods, will be off net state spending under the user's card number and all records stored in the window

I machine EEPROM, networking and other systems resume operation after the server to recover from the windows machine stored data, updates the server database. As the offline case windows machine and the server can not communicate in real time, so the program is relatively simple, no longer gives a flow chart.

DS80C410-based embedded CAN bus Dining Hall System

Figure 5 send subroutine

DS80C410-based embedded CAN bus Dining Hall System

Figure 6 Receiver subroutine

4.2.2 to send and receive frames

DS80C410 CAN module provides the message center 15, as a send or receive data memory. Frame to send and receive messages through the center 15 to achieve, you can select one or more message center to send or receive frames. This 15 message center to send or receive data packets in order of priority are arranged in the center reverse. Message Center 1-14 can be set to receive or send data, message center 15 can receive data. Message center control register (C0M1C ~ C0M15C) SFR is located in the. Center of each packet has a format register (C0MyF), 4 個 arbitration registers and 8 bytes (C0MyD0 ~ C0MyD7) data area. Arbitration register value can be set in the initialization can also be set in the sending process, and its value can be received automatically as the data changes. In addition, the message center 15 C015M0 ~ C015M3 register, you can also perform additional filtering.
When the network is to send a window state machine, the first center on the use of the initialization packet, the packet to be sent into message center, message center arbitration register value as the identifier of the frame sent. Figure 5 to use the message center to send data through a flowchart, which MSRDY (message center ready), DTUP (data update), MTRQ (CPU sends a request) and so is the message center of a bit of control register C0M1C bit.

When the window unit is receiving state, CAN controller Genju mask register and receive reports for the Center of the value of arbitration registers the ID of the received frame identifier to judge, to determine whether the received message center, and only when the received frame identifier arbitration register value equal to the time frame Caibei receiver; In addition, CAN module mask register and the media are the media arbitration register can receive data frames 0 and 1 additional two-byte checksum. Figure 6 is to use the message center 2, the procedure to receive data flow diagram. One MSRDY, DTUP, MTRQ other bits are message center 2 control register C0M2C bit.

5. Conclusion

DS80C410 is a network with Ethernet and CAN microcontrollers. Include a 10/100 Ethernet MAC, three full-duplex hardware serial port, 8-way 8-bit ports, an optional CAN2.0B ,1-Wire ® master controller and 64 I / O pins and used to store user applications and the network stack of 64K bytes of internal SRAM. Embedded CAN module supports standard (11 bit) and extended (29 bit) identifier and the common mask, the media byte filtering, DeviceNet ™, SDS and high-level CAN protocols, automatic baud rate mode and SIESTA low-power mode. DS80C410-based embedded system CAN bus Dining Hall, not only have good stability, security and reliability, and real-time response capability, network maintenance easy, user friendly interface, software, upgrades and migration are easily and cheaply.

This innovation: DS80C410 integration higher, 16MB continuous storage space, can simultaneously monitor and keyboard on the windows. Up to 75MHz system clock frequency, so that only a single cycle instruction 54ns. Embedded CAN module, so that the window machine hardware configuration is simpler to save hardware resources. CAN module message center 15 to increase communication efficiency. CAN module on the operation and expansion of the MCU external program / data memory operation is the same, software is not complicated.

Declined comment

91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
精品国产一区二区三区麻豆免费观看完整版 | 亚洲国产精品久久久久久女王| 91精品久久久久久久| 日本韩国在线不卡| 在线天堂一区av电影| 久久国产精品免费观看| 欧美日韩亚洲国产成人| 精品久久精品久久| 久久久久久久久久久一区| 国产欧美一区二区三区视频| 奇米精品一区二区三区| 亚洲日本一区二区三区在线不卡| 国产精品视频午夜| 久久久福利视频| 国产精品午夜av在线| 狠狠97人人婷婷五月| 欧美一区二区三区精品电影| 欧美精品在线第一页| 久久视频这里只有精品| 国产福利久久| 91精品国产成人| 免费看黄在线看| 人偷久久久久久久偷女厕| 亚洲av首页在线| 国产99午夜精品一区二区三区| 国产精彩视频一区二区| av电影一区二区三区| 国产性生交xxxxx免费| 欧美性久久久久| 日韩精品欧美专区| 日本精品视频在线观看| 大地资源第二页在线观看高清版| 国产精品成人在线| 国产精品成人一区| 国产精品久久不能| 国产精品欧美激情在线观看| 日韩一级裸体免费视频| 国产高清在线一区| 国产欧美日韩精品丝袜高跟鞋| 日本成人在线不卡| 日本高清不卡一区二区三| 日本一区二区久久精品| 日本aa在线观看| 日韩精品在线视频免费观看| 色噜噜一区二区| 亚洲精品欧美一区二区三区| 亚洲综合av一区| 日韩在线电影一区| 日本在线视频www色| 午夜精品一区二区在线观看| 亚洲天堂av免费在线观看| 欧美日本啪啪无遮挡网站| 精品国产免费一区二区三区| 国产精品视频永久免费播放| 国产成人激情视频| 日韩一区二区福利| 国产精品日韩一区二区免费视频| 精品激情国产视频| 国产成人精品在线| 色阁综合伊人av| 国产精品久久久精品| 美女扒开尿口让男人操亚洲视频网站| 久久国产精品99国产精| 久久91亚洲精品中文字幕| 在线观看一区二区三区三州| 天天成人综合网| 日本一区二区三区精品视频 | 日韩资源av在线| 国产精品一区二区a| 久久精品国产99国产精品澳门| 大地资源第二页在线观看高清版| 国内精品国产三级国产99| 视频在线观看99| 日韩av一二三四区| 91免费版看片| 国产99久久九九精品无码| 欧美不卡在线一区二区三区| 久久久国产精华液999999| 一区二区在线观看网站| 欧美精品尤物在线| 国产成+人+综合+亚洲欧洲| 亚洲午夜久久久影院伊人| 国产在线视频2019最新视频| 久久久成人av| 日韩免费在线观看av| 91精品国产99| 亚洲国产日韩美| 69久久夜色精品国产69乱青草| 久久久久久国产| 国产免费成人在线| 欧美日韩aaaa| 97国产精品人人爽人人做| 欧美激情视频一区二区三区不卡| 99久久激情视频| 欧美在线日韩在线| 深夜成人在线观看| 日韩欧美一区二区三区四区五区| 81精品国产乱码久久久久久 | 久久精品午夜福利| 亚洲成人第一| 国产精品69页| 日韩av第一页| 久久精品香蕉视频| 日韩欧美精品在线观看视频| 久久久久久久久综合| 欧美图片激情小说| 欧美精品在线观看91| 国产伦精品一区二区三区免费视频| 久久精品这里热有精品| 黄色影视在线观看| 久久综合亚洲社区| 国产日产亚洲精品| 污视频在线免费观看一区二区三区| 久久天堂国产精品| 欧美日韩在线观看一区| 国产精品高清网站| 成年丰满熟妇午夜免费视频| 动漫3d精品一区二区三区| 国产成人avxxxxx在线看| 欧美久久久久久| 欧美日韩成人精品| 久久久人人爽| 免费在线黄网站| 精品免费日产一区一区三区免费| 国产精品一区二| 日韩福利视频| 国产精品久久久久久久久男| 国产精品一区久久久| 午夜精品一区二区三区在线视频| 久久久久久久久久久久久国产| 国模无码视频一区二区三区| 亚洲综合国产精品| 久久久久久噜噜噜久久久精品| 精品一区二区三区日本| 亚洲一二三区精品| 久久成人免费观看| 国产在线精品一区二区三区》| 一级一片免费播放| 久久综合入口| 麻豆av一区二区三区久久| 亚洲乱码一区二区三区| 国产精品久久久久影院日本| 久久久久在线观看| 国产日产久久高清欧美一区| 三级网在线观看| 国产精品美女午夜av| 国产精品69久久久| 国内久久久精品| 日韩av三级在线| 欧美激情视频一区二区三区不卡 | 91精品久久久久久久久久| 欧美 日韩 国产精品| 欧美成人全部免费| 久久久久综合一区二区三区| 成人福利网站在线观看11| 人妻久久久一区二区三区| 伊人久久青草| 不卡av日日日| 日韩在线视频观看正片免费网站| 国产精品自产拍在线观看| 欧美性视频精品| 日本伊人精品一区二区三区介绍| 色综合视频一区中文字幕| 久久精品久久久久久国产 免费| 91九色极品视频| 国产尤物99| 欧美亚洲激情在线| 午夜精品久久久久久久白皮肤| 久久综合免费视频| 久久精品国产欧美激情| 久久av免费观看| 97人人模人人爽人人喊中文字| 国产日韩欧美一二三区| 精品1区2区| 青青视频免费在线| 日韩专区第三页| 亚洲免费精品视频| 亚洲最新免费视频| 久久综合88中文色鬼| 国产精品美女呻吟| 久久精品影视伊人网| 国产不卡在线观看| 成人久久18免费网站漫画| 国产午夜福利100集发布| 欧美亚洲国产成人精品| 欧美日韩系列| 激情一区二区三区| 欧美h视频在线| 欧美高清视频一区二区三区在线观看| 日韩一二区视频| 日本不卡视频在线播放| 日韩免费视频在线观看| 日本中文字幕不卡免费| 日本一区视频在线| 日本精品性网站在线观看| 日韩av综合在线观看| 日韩精品一区二区三区外面| 日本一区二区免费高清视频| 日av中文字幕| 欧美日韩在线播放一区二区|