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精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
久久视频免费在线| 欧美区高清在线| 日韩中文字幕亚洲| 日韩最新免费不卡| xxxx性欧美| 国产精品看片资源| 久久久精品免费| 久久久精品久久久久| 久久最新资源网| 久久成年人视频| 精品中文字幕乱| 欧美精品videofree1080p| 久久99亚洲精品| 亚洲一区二区在线免费观看| 亚洲最大福利网站| 午夜精品久久久久久久白皮肤 | 国产精品网站免费| www亚洲精品| 久久成人亚洲精品| 中文字幕日韩一区二区三区 | 国产成人精品电影| 国产成人jvid在线播放| 色天天综合狠狠色| 久久视频国产精品免费视频在线| 久久精品国产综合| 国产精品无码免费专区午夜| 国产精品观看在线亚洲人成网| 精品久久久久久无码中文野结衣| 欧美激情中文字幕在线| 欧美一级视频一区二区| 欧美亚洲国产免费| 国产剧情日韩欧美| 久久久人成影片一区二区三区| 日韩在线观看网址| 久久综合久久美利坚合众国| 亚洲欧洲精品一区| 国产女主播自拍| 国产精品99久久久久久人| xxx一区二区| 在线视频91| 欧美一区二区.| 国产又爽又黄的激情精品视频| 久久人91精品久久久久久不卡| 久久视频精品在线| 亚洲v欧美v另类v综合v日韩v| 日韩免费av一区二区| 国产免费高清一区| 日韩中文字在线| 亚洲二区三区四区| 霍思燕三级露全乳照| 91黄在线观看| 久久91亚洲精品中文字幕奶水| 午夜精品一区二区三区av| 精品欧美国产| 久久久av水蜜桃| 国产精品国模在线| 日韩人妻一区二区三区蜜桃视频| 国产精品揄拍一区二区| 久久久精品一区二区| 日韩国产精品一区二区三区| 国产精品亚洲网站| 国产精品久久久久久久久久久久| 日韩av不卡在线| 国产噜噜噜噜噜久久久久久久久| 国产精品视频网| 日韩经典在线视频| 久久久人成影片一区二区三区| 宅男在线精品国产免费观看| 免费av在线一区二区| 精品国产美女在线| 亚洲国产精品久久久久婷蜜芽| 欧美韩国日本在线| www.欧美精品一二三区| 日本国产精品视频| 国产二区视频在线| 日本最新高清不卡中文字幕| 成人国产精品久久久久久亚洲| 久久成年人视频| 国产又黄又猛视频| 久久精品国产成人精品| 欧美亚洲一区在线| 国产成人久久久| 欧美日韩天天操| 久久精品国亚洲| 欧美 日韩 亚洲 一区| 久久久久久久久久久久久国产精品| 亚洲人成77777| 国产精品99一区| 日本亚洲导航| 九色视频成人porny| 日本丰满少妇黄大片在线观看| 久热国产精品视频一区二区三区| 亚洲va国产va天堂va久久| 高清视频一区二区三区| 亚洲直播在线一区| av网址在线观看免费| 久久久久久12| 99精品国产高清一区二区| 综合色婷婷一区二区亚洲欧美国产 | 高清欧美精品xxxxx| 中文字幕一区二区三区四区五区人| 国产伦精品一区二区三区高清 | 中文精品一区二区三区| www黄色av| 亚洲高清不卡一区| 国产成人精品免费视频| 欧美自拍大量在线观看| 国产精品人成电影在线观看 | 97精品一区二区视频在线观看| 亚洲欧洲三级| 国产成人一区二区三区电影 | 视频一区二区三区免费观看| 国产成a人亚洲精v品在线观看| 日本精品一区二区| 日韩亚洲第一页| 国产一级做a爰片久久毛片男| 欧美日本黄视频| 91精品久久久久久久久久久久久 | 欧美精品在线免费| 成人av色在线观看| 日韩在线三区| 国产精品色婷婷视频| 国产免费高清一区| 日本久久久久亚洲中字幕| 国产精品视频在线免费观看| 国产欧美在线播放| 日本国产在线播放| 中文字幕乱码一区二区三区| 久久精品日产第一区二区三区精品版| 欧美日韩精品免费看| 国产精品久久久久77777| 91精品免费看| 蜜桃精品久久久久久久免费影院 | av动漫免费看| 欧美在线视频一区| 色综合天天狠天天透天天伊人| 国产成人在线一区二区| 狠狠干视频网站| 午夜在线视频免费观看| 国产精品手机在线| 久无码久无码av无码| 青青草成人网| 亚洲一区美女| 久久中国妇女中文字幕| 久久精品一区二| 国产日韩成人内射视频| 日本不卡在线播放| 亚洲综合小说区| 国产精品毛片一区视频| 久久久亚洲精品无码| 国产伦精品一区二区三区高清版 | 国语精品免费视频| 岛国一区二区三区高清视频| 国产精品美女主播在线观看纯欲 | 视频在线精品一区| 国产av第一区| 国产精品免费一区| 国产成人精品久久二区二区| 成人久久一区二区三区 | 欧美一区二三区| 五月天色婷婷综合| 一级做a爰片久久| 国产精品久久不能| 日韩视频免费观看| 91九色国产社区在线观看| 国产日韩精品视频| 欧美精品七区| 欧美在线日韩精品| 日韩欧美手机在线| 欧美一级视频一区二区| 亚洲综合色激情五月| 蜜月aⅴ免费一区二区三区| 久久精品久久精品亚洲人| 91精品国产91久久久久青草| 国产精品亚洲网站| 国产精品中文在线| 国产精品永久在线| 国产伦精品一区二区三区在线| 美乳视频一区二区| 欧美日韩一道本| 欧美亚洲一级二级| 欧美亚洲另类久久综合| 日韩精品一区二区三区四区五区 | 亚洲v日韩v欧美v综合| 亚洲图片在线观看| 亚洲国产精品女人| 一本大道熟女人妻中文字幕在线| 欧美精品在线观看| 欧美区二区三区| 久久久久国产视频| 亚洲精品在线免费看| 色欲av无码一区二区人妻| 日韩av中文字幕第一页| 亚洲va韩国va欧美va精四季| 午夜一区二区三视频在线观看| 日本一区高清不卡| 人妻无码视频一区二区三区| 欧美亚洲另类在线一区二区三区 | 国产自产精品| 国产小视频免费|