日韩免费一级毛片在线观看-中文日韩亚洲综合-欧美系列日韩另类-欧美激情极品日韩-午夜日韩爱爱毛片视频免费看-欧美日韩一区免费观看-欧美日韩欧美黄色三级

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

九九热精品免费观看| 午夜精品国产自在现线拍| 久久久久久久免费视频| 国产一区二区精品尤物| 99久久精品国产国产毛片| 国产极品精频在线观看| 成人影院久久久久久影院| 国产伦精品一区二区三区无广告| 国产视频在线免费观看| 天天做日日干| 午夜家庭影院| 97视频免费在线| 欧美一级视频免费| 成人免费一级纶理片| 九九精品在线播放| 日韩中文字幕在线观看视频| 国产91丝袜在线播放0| 欧美日本韩国| 国产精品1024永久免费视频| 麻豆网站在线免费观看| 精品国产亚洲一区二区三区| 91麻豆国产福利精品| 九九干| 99久久精品国产片| 国产91视频网| 亚洲爆爽| 成人免费观看网欧美片| 久草免费资源| 日本免费看视频| 毛片高清| 国产亚洲免费观看| 午夜在线观看视频免费 成人| 日韩中文字幕在线亚洲一区| 日本在线不卡免费视频一区| 国产国产人免费视频成69堂| a级精品九九九大片免费看| 欧美一区二区三区性| 精品久久久久久中文| 精品毛片视频| 日韩av片免费播放| 欧美另类videosbestsex高清| 国产精品1024永久免费视频| 91麻豆精品国产自产在线| 国产美女在线一区二区三区| 四虎影视精品永久免费网站| 色综合久久久久综合体桃花网| 黄视频网站在线免费观看| 成人a大片高清在线观看| 国产国语对白一级毛片| 成人a级高清视频在线观看| 青青久久精品国产免费看| 99久久精品国产片| 黄视频网站免费观看| 91麻豆精品国产综合久久久| 国产综合成人观看在线| 一本高清在线| 99热精品一区| 午夜欧美成人久久久久久| 日本久久久久久久 97久久精品一区二区三区 狠狠色噜噜狠狠狠狠97 日日干综合 五月天婷婷在线观看高清 九色福利视频 | 欧美一级视频免费观看| 欧美激情在线精品video| 精品国产一区二区三区免费| 日本免费乱理伦片在线观看2018| 欧美激情一区二区三区在线播放| 欧美18性精品| 四虎影视库| 国产亚洲免费观看| 日韩字幕在线| 台湾毛片| 你懂的福利视频| 日本伦理片网站| 国产极品精频在线观看| 国产国语对白一级毛片| 麻豆系列国产剧在线观看| 精品久久久久久免费影院| 91麻豆精品国产自产在线| 日本免费乱理伦片在线观看2018| 国产原创视频在线| 成人a级高清视频在线观看| 欧美a级大片| 久久久久久久网| 亚洲 男人 天堂| 国产一区二区精品久久91| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 国产亚洲精品aaa大片| 麻豆系列国产剧在线观看| 日韩专区亚洲综合久久| 天天做人人爱夜夜爽2020| 一a一级片| 国产精品自拍亚洲| 日韩av东京社区男人的天堂| 日本在线www| 精品在线免费播放| 二级片在线观看| 久久99中文字幕| 国产一区免费观看| 日韩在线观看免费完整版视频| 国产精品自拍在线| 九九精品久久| 欧美国产日韩在线| 99热精品一区| 国产高清视频免费观看| 九九精品久久久久久久久| 日本特黄特色aaa大片免费| 一级女性全黄久久生活片| 精品久久久久久影院免费| 国产综合91天堂亚洲国产| 天天做人人爱夜夜爽2020毛片| 天天做人人爱夜夜爽2020毛片| 九九久久99综合一区二区| 尤物视频网站在线| 国产91精品一区| 韩国三级香港三级日本三级| 国产成人精品一区二区视频| 国产91精品系列在线观看| 国产不卡高清在线观看视频| 二级片在线观看| 欧美大片a一级毛片视频| 欧美一级视频免费| 欧美国产日韩精品| 国产高清在线精品一区a| 亚飞与亚基在线观看| 久草免费资源| 久久国产影视免费精品| 精品国产亚一区二区三区| 欧美一级视频免费观看| 精品国产三级a| 亚洲精品久久玖玖玖玖| 欧美激情伊人| 国产91素人搭讪系列天堂| 欧美国产日韩在线| 精品久久久久久中文字幕2017| 日韩专区在线播放| 欧美18性精品| 国产一区二区精品| 成人免费高清视频| 国产一区二区精品尤物| 麻豆网站在线免费观看| 日韩中文字幕在线亚洲一区| 韩国毛片 免费| 麻豆系列国产剧在线观看| 国产一区精品| 国产原创视频在线| a级黄色毛片免费播放视频 | 一级女人毛片人一女人| 国产一区国产二区国产三区| 欧美激情一区二区三区在线| 97视频免费在线| 99热精品在线| 欧美一区二区三区在线观看| 一级毛片看真人在线视频| 可以在线看黄的网站| 久久国产精品自线拍免费| 成人影院久久久久久影院| 午夜在线亚洲男人午在线| 亚洲精品久久玖玖玖玖| 免费一级片网站| 精品国产亚洲一区二区三区| 久久精品大片| 精品视频在线观看免费| 欧美一级视| 国产高清在线精品一区二区 | 韩国三级视频在线观看| 国产a视频| 欧美激情影院| 天堂网中文字幕| 国产综合91天堂亚洲国产| 日韩欧美一二三区| 一级女性全黄生活片免费| 精品在线免费播放| 99色视频在线观看| 成人av在线播放| 欧美日本韩国| 黄色免费三级| 欧美激情一区二区三区视频| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 成人a大片在线观看| 四虎论坛| 精品国产一区二区三区久久久蜜臀| 欧美1区| 欧美18性精品| 国产一区二区精品尤物| 精品视频一区二区三区| 台湾美女古装一级毛片| 欧美电影免费| 成人免费观看网欧美片| 国产91精品系列在线观看| 日本免费看视频| 成人免费高清视频| 97视频免费在线| 国产综合成人观看在线| 国产不卡福利| 精品国产一区二区三区国产馆| 精品久久久久久综合网| 久久99中文字幕| 日日日夜夜操| 韩国毛片 免费| 国产一区二区精品在线观看| 中文字幕97| 国产视频网站在线观看|