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 個(gè) 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麻豆天美传媒在线| 亚洲影视九九影院在线观看| 国产一区二区久久久| 激情小说综合网| 欧美日韩免费观看一区| 欧美专区第一页| 日韩国产欧美亚洲| 日本在线播放不卡| 人禽交欧美网站免费| 欧美综合激情| 激情小说网站亚洲综合网| 欧美日韩视频在线一区二区观看视频| 欧美午夜精品久久久久久蜜| 青青草成人网| 欧美伊久线香蕉线新在线| 日韩欧美亚洲精品| 欧美日韩在线不卡视频| 国产综合欧美在线看| 国产九九精品视频| 69精品小视频| 久久精品国产精品青草色艺| 日韩有码视频在线| 久久精品亚洲热| 欧美精品在线看| 亚洲在线www| 日韩欧美视频第二区| 黄色网址在线免费看| 国产青草视频在线观看| 91精品视频免费看| 久久精品视频16| 国产精品国产三级欧美二区| 亚洲一二三区精品| 欧洲亚洲在线视频| 国产亚洲精品自在久久| 国产精品com| 国产精品视频yy9099| 欧美精品久久一区二区| 都市激情久久久久久久久久久| 日本视频精品一区| 韩国精品久久久999| 国产精品亚洲综合天堂夜夜| 国产成人激情小视频| 免费不卡在线观看av| 午夜午夜精品一区二区三区文| 欧美两根一起进3p做受视频| 高清一区二区三区日本久| 九九九九九九精品| 欧美人与性动交| 青青草国产精品一区二区| 国产精品综合久久久| 日韩一区在线视频| 亚洲国产精品日韩| 经典三级在线视频| 久久综合色一本| 欧美激情国产日韩精品一区18| 日韩亚洲不卡在线| 国产精品亚洲激情| 国产精品女主播视频| 日本一区视频在线观看免费| 国产精品最新在线观看| 久久久www成人免费精品| 亚洲国产高清国产精品| 狠狠噜天天噜日日噜| 久久日韩精品| 亚洲人成网站在线观看播放| 国产日韩欧美大片| 国产精品久久中文字幕| 少妇高清精品毛片在线视频| 国产午夜福利在线播放| 国产成年人在线观看| 亚洲五月六月| 国产欧美精品一区二区三区-老狼| 国产成人精品视频免费看| 懂色av粉嫩av蜜臀av| 高清国产一区| 欧美精品激情在线观看| 国产一区二区高清不卡| 国产精品久久久久久影视| 日韩欧美猛交xxxxx无码| 91传媒免费视频| 中文字幕在线乱| 国产免费黄视频| 国产精品网站入口| 欧美怡红院视频一区二区三区| 91久久久亚洲精品| 一区二区冒白浆视频| 国产一区二区三区免费不卡 | 国产国产精品人在线视| 亚洲专区中文字幕| 99热在线国产| 日韩一区二区三区高清| 久久最新免费视频| 日本精品一区二区三区四区| 久草综合在线观看| 欧美资源在线观看| 国产成人精品免费视频大全最热| 午夜精品亚洲一区二区三区嫩草 | 国产精品一区二区在线观看| 精品国产_亚洲人成在线| 国产最新免费视频| 九色91av视频| 99热在线国产| 日韩视频在线免费看| 久久精视频免费在线久久完整在线看 | 亚洲精品中文字幕乱码三区不卡 | 久久久久久久久久伊人| 青青青国产在线观看| 国产成人手机视频| 激情视频综合网| 欧美激情喷水视频| 久久久亚洲天堂| 欧美做暖暖视频| 国产精品成人av在线| av一区二区三区免费| 日韩区国产区| 国产精品入口芒果| 国产在线观看不卡| 亚洲一区精品视频| 久久av免费观看| 国产在线精品二区| 亚洲国产精品日韩| 日韩视频免费在线观看| 蜜桃视频日韩| 亚洲精品在线视频观看| 久久久噜噜噜www成人网| 国产在线精品一区二区三区》| 久久久久久97| 国产成人自拍视频在线观看| 精品人妻大屁股白浆无码| 久久久久久国产精品| 久久青青草原一区二区| 精品免费一区二区三区蜜桃| 真实国产乱子伦对白视频| 国产成人av在线| 美女亚洲精品| 欧美一级片久久久久久久| 久久成人av网站| 久久99久久99精品蜜柚传媒| 国产在线观看精品一区二区三区| 性色av香蕉一区二区| 国产精品劲爆视频| 国产成人自拍视频在线观看| 国产日韩在线视频| 日本精品久久久久中文字幕| 欧美激情一区二区三区久久久| 国产成人精品免费看在线播放| 国产日产久久高清欧美一区| 日韩欧美不卡在线| 欧美激情图片区| 久久精品91久久久久久再现| 国产精品99蜜臀久久不卡二区| 国产亚洲欧美一区二区| 品久久久久久久久久96高清| 亚洲v欧美v另类v综合v日韩v| 欧美精品午夜视频| 国产精品无码专区av在线播放 | 精品免费日产一区一区三区免费 | 日韩一级黄色av| 97成人在线观看视频| 国产视频一区二区三区在线播放| 欧日韩一区二区三区| 婷婷精品国产一区二区三区日韩| 久久亚洲影音av资源网| 久久久精品国产| 国产成人av在线| 91精品国产高清久久久久久91 | 中文字幕一区二区三区乱码| 国产精品第一页在线| 国产成人看片| 色偷偷噜噜噜亚洲男人| 久久精品一区二区三区不卡免费视频| 国产精品中文久久久久久久| 国产视频一区二区三区在线播放 | 97国产在线播放| 国产精品一区av| 国产欧美久久久久| 国产日产欧美视频| 国产在线视频91| 国产日韩在线观看av| 精品一区在线播放| 国内精品视频在线播放| 黄网站欧美内射| 激情小说综合区| 美日韩免费视频| 国产天堂视频在线观看| 蜜桃传媒视频第一区入口在线看| 欧美中文在线免费| 欧美日韩一级在线| 男女超爽视频免费播放| 激情图片qvod| 国产一区免费在线| 国产日本欧美在线观看| 国产伦理一区二区三区| 成人福利网站在线观看| 91久久久久久久一区二区| 久久亚洲免费| 久久久久久一区| 国产精品久久久久av福利动漫| 欧美精品在线看| 亚洲精品中文字幕无码蜜桃|