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

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豆花精品一区| 国产美女永久免费| 中文字幕第80页| 精品一区久久久| 国产99久久精品一区二区| 欧美午夜理伦三级在线观看| 国产三级一区二区| 中日精品一色哟哟| 免费中文字幕在线观看| 任你躁av一区二区三区| 能看的毛片网站| 欧洲精品一区二区三区久久| 免费看啪啪网站| 国产三级中文字幕| 亚洲国产精品一区在线观看不卡| 国产一区二区中文字幕免费看| 久久久女人电视剧免费播放下载| 色阁综合伊人av| 亚洲色图在线观看| 中文字幕亚洲综合久久筱田步美| 欧美三级视频在线| 日韩免费福利电影在线观看| 精品免费99久久| 91探花福利精品国产自产在线| 一区二区免费在线| 天海翼在线视频| 中文字幕免费视频| 日韩乱码一区二区| 亚洲男人第一天堂| 国产美女av一区二区三区| 中文字幕一区二区三中文字幕| 精品久久久久久中文字幕大豆网| 亚洲国产99精品国自产| 96久久精品| 鲁一鲁一鲁一鲁一av| 国产视频123区| 欧美视频xxx| 国产精品美女久久久久久久网站| 欧美性大战久久久久久久| 日韩视频在线免费| 蜜桃91精品入口| 久久综合桃花网| 日本高清www免费视频| 国产在线精品一区二区不卡了 | 欧美一三区三区四区免费在线看 | 欧美一级片免费看| 青娱乐在线免费视频| 在线免费一区| 欧洲亚洲一区二区| 精品久久久久久亚洲| 欧美性猛交xxxxx水多| 欧美日本精品一区二区三区| 中文字幕日韩高清| 国产极品粉嫩福利姬萌白酱| 久久国产麻豆精品| 香蕉成人啪国产精品视频综合网| 97精品国产91久久久久久| 91精品国产高清自在线| 国产成人av在线播放| 国产精品9999| 日韩电影大全在线观看| 欧美区在线播放| 国产一区二区三区毛片| 欧美另类高清视频在线| 中文字幕一区二区三区最新| aaaaa级少妇高潮大片免费看| 国产精品21p| 中文字幕在线观看网址| 激情五月俺来也| 国产一级二级三级| 一区二区三区高清在线| 黄色成人在线免费观看| 国产真实乱子伦精品视频| 美日韩精品免费观看视频| av资源一区二区| 国产欧美日韩中文| 欧美日韩亚洲一| 中文字幕第二区| 在线观看日韩精品视频| 捆绑裸体绳奴bdsm亚洲| 国产午夜视频在线| 亚洲成色777777女色窝| 国产精品天天狠天天看| 国产精品入口免费软件| 久久久精品网| 中文字幕亚洲欧美日韩| 成人精品电影在线观看| 久久久免费电影| 日本少妇性生活| 久久亚洲精品成人| 国产福利第一视频| 国产日本欧美在线观看| 成人乱码一区二区三区av| 北条麻妃一二三区| 亚洲天堂成人在线观看| 最近2019中文字幕第三页视频| 中文精品无码中文字幕无码专区| 成人9ⅰ免费影视网站| 韩国无码av片在线观看网站| 亚洲精品一区二区三区四区| 精品国产3级a| 99久re热视频这里只有精品6| 精品一区二区6| 久久免费视频色| 亚洲成人av一区二区三区| 91网站在线看| 岛国精品一区二区| 国产1区2区3区中文字幕| 亚洲成人激情av| 人妻无码一区二区三区| 国产精品久久午夜夜伦鲁鲁| 久久91亚洲精品中文字幕| 69精品丰满人妻无码视频a片| 一区二区三区黄| 欧美三级日本三级少妇99| 日韩欧美国产麻豆| 成人美女av在线直播| 日本亚洲天堂网| 久久免费看毛片| 国产极品国产极品| 欧美日韩一区高清| 国产精品12345| 奇米777在线| 欧美日韩国产区| 亚洲国产高清自拍| 国产精品自拍网| www.99av.com| 91亚洲男人天堂| 欧美成人综合网站| 韩国成人一区| 手机在线视频一区| 天天综合天天综合| 精品久久中文字幕久久av| 久久久免费观看视频| 国产玉足脚交久久欧美| 日韩成人免费观看| 成人国产免费视频| 久热国产精品视频| 日韩av在线综合| 国产无遮挡又黄又爽又色视频| 亚洲欧洲另类国产综合| 欧美韩日一区二区| 91激情视频在线| 久久精品亚洲| 亚洲国产欧美一区| 国产成a人亚洲精v品在线观看| www亚洲视频| 国产日韩精品久久久| 夜夜嗨av色综合久久久综合网 | 亚洲无人区一区| 日韩免费在线看| 9久久婷婷国产综合精品性色| 国产精品嫩草影院精东| 亚洲男人的天堂一区二区| 性色av一区二区三区红粉影视| 亚洲一区二三| 91玉足脚交嫩脚丫在线播放| 国产欧美日韩三区| 欧美激情18p| 在线免费看黄色片| 国产一区亚洲一区| 久青草国产97香蕉在线视频| 37pao成人国产永久免费视频| 中文字幕在线播放不卡| 日本福利一区二区| 国内一区二区在线视频观看| 国产又黄又猛又粗又爽| 色综合av在线| 俄罗斯精品一区二区| 欧美日韩在线视频免费| 亚洲一区日韩精品中文字幕| 97在线视频国产| 五月婷六月丁香| 亚洲蜜臀av乱码久久精品蜜桃| 国产精品久久久久久av福利软件| 国产在线观看免费播放| 波多野结衣一区二区三区| 欧美极品在线视频| a级片在线观看| 欧美国产欧美综合| 91九色国产社区在线观看| 麻豆国产尤物av尤物在线观看| 激情懂色av一区av二区av| 成年人黄色在线观看| 色婷婷av一区二区三区之红樱桃| 日日骚av一区| 欧美特黄一级片| 在线观看欧美日本| 欧美精品久久久久久久久久久| 性xxxfllreexxx少妇| 高清一区二区三区日本久| 三级黄色片在线观看| 欧美中文字幕一区二区三区| 黄色免费视频大全| 久久精品欧美一区二区三区麻豆| 最新日韩av在线| 尤物国产精品| 91在线国内视频| 天天综合狠狠精品| 国产成人在线网站| 久久国产精品高清| 日韩精彩视频在线观看| 高清视频欧美一级| 日本一级淫片免费放| 亚洲免费成人av电影| 五月天精品在线| 久久久一区二区| 成人在线免费网站| 国产福利一区二区| 国产精品日韩一区二区三区| 精品国产乱码一区二区三| 91精品国产91久久| 无码国产精品96久久久久| 2021国产精品视频| 国产美女www爽爽爽视频| 91精品国产乱码久久久久久久久| 日本少妇在线观看| 欧美肥臀大乳一区二区免费视频| 在线观看 中文字幕| 国产91精品青草社区| 久操免费在线视频| 久久久成人精品视频| 99精品中文字幕| 免费观看在线色综合| 亚洲免费视频一区| 成人va在线观看| 久久综合一区| 亚洲一区二区3| 国精产品视频一二二区| 日韩一区二区精品视频| 国产日韩精品suv| 欧美三级华人主播| 日韩欧美在线第一页| 潘金莲一级黄色片| 97香蕉超级碰碰久久免费软件| 手机在线精品视频| www.男人天堂网| 亚洲欧美一区二区不卡| 少妇一级淫免费放| 亚洲国产精品二区| 亚洲综合激情五月| 欧美日韩一区二区三区高清| 欧美另类视频在线观看| 国产91在线高潮白浆在线观看| www.色国产| 国产卡一卡二在线| 日韩一区二区免费在线电影| 久久高清无码视频| 国产美女精品在线观看| 亚洲午夜久久久久久久久久久| tube国产麻豆| 亚洲一区二区在线免费观看| 精品捆绑美女sm三区| 奇米色一区二区| 91看片在线免费观看| 欧美成人中文字幕| 国产精品久久久久久久久免费樱桃| 娇小11一12╳yⅹ╳毛片| 97神马电影| 日韩欧美有码在线| 午夜精品一区二区在线观看| 91精品国产色综合久久ai换脸 | 992tv成人免费影院| 久久精品一区二区| 国产色无码精品视频国产| 国产裸体写真av一区二区| 国产999精品久久| 精品无码久久久久久久| 亚洲国产精品成人精品| 久久一区国产| 免费精品在线视频| 日本韩国欧美在线观看| 全亚洲最色的网站在线观看| 欧美日韩国产小视频在线观看| 久久亚洲综合| 国产成人在线播放视频| 日本免费一级视频| 国产日韩欧美成人| 永久免费看mv网站入口亚洲| 亚洲午夜视频在线观看| 美女视频一区在线观看| 18岁成人毛片| 国产精品精品软件男同| www.日本在线播放| 日本午夜精品一区二区| 亚洲国产欧美一区| 国产在线播放一区| 国产在线一级片| 日日摸天天添天天添破| 久久一级黄色片| 日本黄色片免费观看| 亚洲欧美va天堂人熟伦| 强伦人妻一区二区三区| 91成人破解版| 国产人妻人伦精品1国产丝袜| 国产成人精品视频免费看| 91成人综合网| 91精品国产91久久久久麻豆 主演| 亚洲图片都市激情| 亚洲欧洲精品一区二区| 免费看日b视频| 久激情内射婷内射蜜桃| 尤物网站在线观看| 又黄又爽的网站| 免费黄色国产视频| 精品91久久久| 久久人妻免费视频| 国产美女裸体无遮挡免费视频 | 国产女主播福利| 一区不卡在线观看| 亚洲成人77777| 首页国产欧美久久| 亚洲高清精品视频| 国产成人精品无码高潮| 国产ts人妖一区二区| 久久久久国色av免费看影院| 一区二区三区欧美日| 色94色欧美sute亚洲13| 精品亚洲精品福利线在观看| 一区二区三区亚洲| 亚洲www在线观看| 黄色网址在线免费看| av地址在线观看| 国产精品1区2区3区4区| 欧美男人亚洲天堂| 久久99精品国产麻豆婷婷| 99久久国产免费看| 亚洲一二三四区不卡| 欧美肥妇毛茸茸| 按摩亚洲人久久| 国产91aaa| 一级做a爱视频| 亚洲精品国产无码| 国产成人在线网站| 91福利精品视频| 91精品国产成人www| 伊人久久大香线蕉午夜av| 9l视频白拍9色9l视频| 国产精品第九页| 日日骚欧美日韩| 国产精品福利一区二区| 91精品综合久久久久久| 性色av一区二区三区红粉影视| 亚洲无玛一区| 中日韩精品一区二区三区| 午夜久久久久久久久久| 亚洲天天做日日做天天谢日日欢| 日韩成人av在线| 日本一区二区三不卡| 免费黄在线观看| 日批视频免费播放| 欧美午夜精品一区二区蜜桃| 日本午夜人人精品| 久久综合伊人77777麻豆最新章节| 国产精品第108页| 欧美国产精品一区二区三区| 亚洲色图激情小说| 九一免费在线观看| 丰满少妇xoxoxo视频| 亚洲一区二区在线播放相泽| 韩国三级电影久久久久久| 精品日韩久久久| 你懂的网站在线| 欧美一卡二卡三卡四卡| 久久综合九色综合网站| 粉嫩av性色av蜜臀av网站| 久久久天堂av| 91精品国产91久久久| 亚洲色图偷拍视频| 日本系列欧美系列| 亚洲欧洲国产精品| 成年人在线看片| 蜜桃视频一区| 日韩中文字幕视频在线观看| 蜜桃福利午夜精品一区| 99国产精品久久久久久久久久久| 91高清视频免费观看| 国产亚洲精品av| 日韩视频在线一区二区| 一级黄色片在线免费观看| 亚洲丝袜美腿综合| 亚洲自拍偷拍二区| 国产98色在线|日韩| 亚洲va久久久噜噜噜| 中文字幕+乱码+中文乱码www| 国产丝袜一区二区三区免费视频| av电影中文字幕| 欧美丝袜第一区| 我要看一级黄色大片| 中文字幕亚洲一区二区va在线| 亚洲精品人成| 国产精品影视天天线| 日韩欧美视频在线| 日韩免费中文专区| 亚洲精品久久久久久无码色欲四季 | 国产午夜精品一区二区三区视频 | 波多野在线播放| 亚洲成年人网站在线观看| 欧美亚洲爱爱另类综合| 国产黄色片免费| 欧美精品一区二区三区在线| 国产女同无遮挡互慰高潮91| 韩国三级中文字幕hd久久精品| 中文字幕精品在线| 人妻巨大乳一二三区| 一区二区三区在线播| 国产精品国三级国产av| 国产99一区视频免费| 成人激情黄色网| 人妻夜夜爽天天爽|