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

The CAN bus based on 82 527 smart sensor node design

Abstract: This paper introduces a kind of independence of 8051 and 82527 CAN bus controller core component of the CAN bus design method of smart sensor nodes and gives the hardware schematics and initialization procedures.

Introduction

CAN (Controller Area Network, Controller Area Network) from the industrial field bus, a German Bosch company of the 20th century the early 80s as a solution in many modern vehicle control and test instruments developed for data exchange between a communication protocol. November 1993, ISO issued a formal high-speed local area network communication control (CAN) international standard (ISO11898). CAN bus system in the field of data collection completed by the sensor, at present, the sensor with CAN bus interface type is not much more expensive price. This article describes a 8051 and 82,527 by the independent CAN bus controller core components of the intelligent node circuit, formed the basis of ordinary sensors can receive 8 analog inputs and smart sensor nodes.

The CAN bus based on 82 527 smart sensor node design

1 Introduction independent CAN bus controller 82527

Intel 82527 is produced by independent CAN bus controller, through the parallel bus with Intel and Motrorola controller interface; support the CAN 2.0B standard protocols, with the receive and transmit functions and can complete the message filtering. 82 527 manufacturing process by CHMOS 5V, 44-pin PLCC package, use the temperature of -44 ~ 125 ℃, the pin arrangement and definitions see [1].

(1) 82 527 of the clock signal

82 527 run by the two kinds of clock control: the system clock SCLK and register clock MCLK. Obtained from the external crystal SCLK, MCLK SCLK frequency was on. CAN bus bit timing according to the frequency of SCLK, while the MCLK to provide the clock for the register operation. SCLK frequency can be equal to an external crystal XTAL, it can be the frequency 1 / 2; MCLK or SCLK frequency can be equal to the frequency of 1 / 2. After system reset the default setting is SCLK = XTAL / 2, MCLK = SCLK / 2.

(2) 82 527 working mode

82527 5 working modes: Intel mode 8-bit time-multiplexed mode; Intel 16-bit time division multiplexing manner mode; serial interface mode; non-Intel 8-bit time division multiplexing manner mode; 8-bit non-time division multiplexing mode. In this paper, Intel 8-bit time division multiplexing manner mode, this time 82 527, 30 and 44 feet grounded.

(3) 82527 register structure [2]

82527 register address is 00 ~ FFH. The following registers which are introduced as needed.

① Control Register (00H):

76,543,210
0 CCE 0 0 EIE SIE IE INIT

CCE - change the configuration allows bit, high efficient. Effective when the bit configuration registers allow the CPU 1FH, 2FH, 3FH, 4FH, 9FH, AFH write.

EIE - Error interrupt allows spaces, high efficient. The position generally set to 1, when the number of bus error exception generated interrupt CPU.

SIE - Status change interrupt allows spaces, high efficient. The position normally set to 0.

IE - Interrupt Enable bit, high efficient.

INIT - initialize software allows spaces, high efficient. The bit valid, CAN stop sending and receiving messages, TX0 and TX1 recessive level 1. Hardware reset and the bus turned off the bit is set.

② CPU Interface register (02H):

76,543,210
RSTST DSC DMC PWD SLEEP MUX 0 CEN

RSTST - hardware reset status bits. The bit is written by the 82 527 for 1 hardware reset activation, are not allowed on the 82,527 visits; to 0 to allow access to the 82,527.

DSC - SCLK frequency spaces. The bit is 1, SCLK = XTAL / 2; to 0, SCLK = XTAL.

DMC - MCLK frequency spaces. The bit is 1, MCLK = SCLK / 2; to 0, MCLK = SCLK.

PWD - Power-down mode enable bit, high efficient.

SLEEP - Sleep mode enable bit, high efficient.

MUX - low-speed physical layer multiplexing flag. The bit is 1, ISO low speed physical layer activation, PIN24 = VCC / 2, PIN11 = INT # (# that take anti-); the bit is 0, PIN24 = INT #, PIN11 = P2.6.

CEN - clock output enable bit, high efficient.

③ Standard Global Mask Register (06 ~ 07H). The register has a standard identifier for the packet, or packets XTD set 0 register. The approach is called message receiver filtering. When a is 1, the corresponding packet identifier bits must match; to 0, do not match.

④ extended global mask registers (08 ~ 0BH). The register is used to extend the message format, or set a packet XTD register, its role and ③ the same.

76,543,210
0 COBY POL 0 DCT1 0 DCR1 DCR0

⑤ bus configuration register (2FH):

COBY - bypass input comparator flag, active HIGH.

POL - Polarity flag. 1, if the bypass input comparator, RX0 dominant input logic 1, logic 0 is hidden; to 0, and vice versa.

DCT1 - TX1 output cut off control bit. To 1, TX1 output is not driven, the model case for a bus, two differential wires short-circuit; to 0, TX1 output is driven.

DCR1 - RX1 input cut off control bit. To 1, RX1 comparator inverting input terminal is disconnected, connected to VCC / 2; to 0, RX1 comparator connected to the inverting input terminal.

DCR0 - RX0 input cut off control bit. Role and DCR1 same time RX0 comparator connected to the inverting terminal.

76,543,210
SJW BRP

⑥ Bit Timing Register 0 (3FH);

SJW - Synchronization Jump Width bits field, programmed value of 1 to 3.

BRP - baud rate frequency bit field, programmed value of 0 to 63.

76,543,210
SPL TSEG2 TSEG1

⑦ Bit Timing Register 1 (4FH):

SPL - sampling mode flag. 1 for each sampled three times; 0 1 for each sample.

TSEG1 - time a field value of 2 to 15 programming.

TSEG1 - time two games, programming value of 1 to 7.

Baud rate = XTAL / [(DSC 1) * (BRP 1) * (3 TSEG1 TSEG2)]

⑧ message register (1 of each register byte address as the base address BASE).

76,543,210
BASE 0 MSGVAL TXIE RXIE INTPND
BASE 1 RMTPND TXRQST MSGLST / CPUUPD NEWDAT

◇ control register 0,1 (BASE 0, BASET 1)

MSGVAL - Message register valid flag, active HIGH. 10 set, 01 reset.

TXIE - Send interrupt to allow flag, active HIGH. 10 set, 01 reset.

RXIE - Receive interrupt flag to allow, high efficient, 10 set, 01 reset.

INTPND - interrupt flag bit applications, active HIGH. 10 set, 01 reset.

RMTPND - remote frame for flag, active HIGH. 10 set, 01 reset.

TXRQST - request to send flag, active HIGH. 10 set, 01 reset.

MSGLST - packet loss flag is only used to receive message registers. 10 indicates that no newspaper article covered by the new message, 01 that are not covered.

CPUUPD - CPU update flag is only used to send messages register. 10 packets being sent 01 messages can be sent.

NEWDAT - new data flag. 10 that new data is written to the register, 01, said no new data is written.

◇ arbitration register 0,1,2,3 (BASE 2-BASE 5)

Stored message identifier.

76,543,210
DLC DIR XTD reserved

◇ message configuration register (BASE 6)

DLC - Data length code, the programming value of 0 ~ 8.

DIR - Direction flag. 1 sent, 0 received.

XTD - standard / extended identifier flag. An extension identifier, 0 standard identifier.

◇ Data register (BASE 7-BASE 14)

82,527 store packets, the 8 data bytes are written, not used bytes of data is random.

2 hardware design

Intelligent node circuit shown in Figure 1 (shown in 6264 spent).

In hardware design, complete by the ADC0809 8-channel analog set conversion, and the 8051 inquiry by way of exchange of information, address BFF8 ~ BFFFH, its clock frequency obtained by the ALE 2; 82,527 to complete the exchange of information with the CAN bus. The design, bypass the input comparators, and the 8051 information exchange with interrupt, address 7F00 ~ 7FFFH, can use 82,527 of the P1 and P2 port on the switch port traffic acquisition or control of the relay. 82C250 provides 82 527 and the physical interface between the bus and improve capacity to receive and send. Program memory can be expanded as needed.

3 Software Design

The design software is written in MCS-51 assembly, the block diagram shown in Figure 2.

The CAN bus based on 82 527 smart sensor node design

82527 initialization procedure is as follows:

INT: MOV DPTR, # 0FF02H
MOV A, # 00H
MOVX @ DPTR, A; SCLK = XTAL
; MCLK = SCLK, CLKOUT valid
MOV DPTR, # 0FF00H
MOV A, # 41H
MOVX @ DPTR, A; Set CCE, INIT
MOV DPTR, # 0FF2FH
MOV A, # 48H
MOVX @ DPTR, A; bypass input comparator to set a hidden, 0 is dominant, RX1 invalid
MOV DPTR, # 0FF3FH;
MOV A, # 43H;
MOVX @ DPTR, A; SJW = 2, BRP = 3
MOV DPTR, # 0FF4FH
MOV A, # 0EAH
MOVX @ DPTR, A; SPL = 1, TSEG1 = 7, TSEG2 = 6 then the baud rate is 100Kbps
MOV DPTR, # 0FF00H;
MOV A, # 01H
MOVX @ DPTR, A; prohibit access to the configuration register
MOV DPTR, # 0FF10H;
MOV A, # 55H;
MOVX @ DPTR, A;
INC DPTR;
MOVX @ DPTR, A;
*
*
*
MOV DPTR, # 0FFF0H;
MOV A, # 55H;
MOVX @ DPTR, A
INC DPTR;
MOVX @ DPTR, A; message control bit register initialization
MOV R0, # 06H;
MOV DPTR, # 0FF06H;
MOV A, # 0FFH;
L1: MOVX @ DPTR, A; message identifier need all the match
INC DPTR
DJNZ R0, L1;
MOV DPTR, # 0FF16H;
MOV A, # 8CH; message register 1 can be extended to send 8 bytes packet
MOVX @ DPTR, A;
MOV DPTR, # 0FF26H;
MOV A, # 84H;
MOVX @ DPTR, A; message register 2 can be extended to receive eight-byte packets
MOV DPTR, # 0FF00H;
MOV A, # 00H;
MOVX @ DPTR, A; Initialization end
RET

Declined comment

久久精品道一区二区三区| 国产精品自拍在线观看| 免费国产在线观看不卡| 99久久精品国产国产毛片| 天天做日日干| 精品国产一区二区三区久| 国产91丝袜在线播放0| 日韩中文字幕在线播放| 日本免费乱理伦片在线观看2018| 国产一区二区精品在线观看| 999久久久免费精品国产牛牛| 日韩在线观看视频黄| 国产91精品一区二区| 91麻豆精品国产综合久久久| 欧美a级大片| 欧美大片一区| 国产网站免费视频| 天天做日日爱夜夜爽| 久久久久久久男人的天堂| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 久久99欧美| 日韩专区第一页| 欧美激情中文字幕一区二区| 91麻豆爱豆果冻天美星空| 久久成人性色生活片| 999精品视频在线| 99久久网站| 可以免费在线看黄的网站| 99色视频在线| 黄视频网站在线观看| 欧美一级视| 精品国产亚洲人成在线| 国产网站免费| 国产综合91天堂亚洲国产| 四虎论坛| 韩国三级视频网站| 亚洲www美色| 九九精品在线| 精品视频一区二区三区| 国产成人啪精品| a级黄色毛片免费播放视频| 欧美大片一区| 亚洲精品中文字幕久久久久久| 日韩综合| 午夜在线影院| 精品国产香蕉在线播出| 成人免费观看男女羞羞视频| 国产伦精品一区二区三区无广告| 国产伦理精品| 久久久久久久网| 日韩在线观看视频免费| 免费的黄色小视频| 亚洲 男人 天堂| 四虎影视久久| 日韩免费在线视频| 台湾毛片| 黄视频网站免费看| 国产一区二区精品久久91| 免费国产一级特黄aa大片在线| 天天做日日爱| 欧美日本国产| 成人影院一区二区三区| 久久精品欧美一区二区| 青青久久国产成人免费网站| 国产不卡在线观看| 韩国毛片基地| 国产伦久视频免费观看视频| 国产91素人搭讪系列天堂| 久久精品人人做人人爽97| 欧美激情中文字幕一区二区| 久久成人性色生活片| 韩国毛片基地| 亚洲第一色在线| 99热视热频这里只有精品| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 欧美电影免费看大全| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 尤物视频网站在线| 国产网站免费| 天天做人人爱夜夜爽2020毛片| 99热精品一区| 欧美日本免费| 日韩免费在线| 国产91精品一区二区| 亚洲 国产精品 日韩| 日韩专区第一页| 可以免费在线看黄的网站| 国产麻豆精品高清在线播放| 高清一级淫片a级中文字幕| a级精品九九九大片免费看| 国产麻豆精品| 国产网站免费观看| 青青久久国产成人免费网站| 欧美激情在线精品video| 久久国产一区二区| 国产成+人+综合+亚洲不卡| 夜夜操天天爽| 精品国产一区二区三区久久久蜜臀 | 香蕉视频一级| 国产成人啪精品| 四虎久久影院| 可以免费看污视频的网站| 韩国毛片免费| 精品视频免费观看| 999久久狠狠免费精品| 精品在线免费播放| 欧美激情一区二区三区在线播放 | 成人免费一级毛片在线播放视频| 韩国三级视频在线观看| 天堂网中文字幕| 黄色免费三级| 精品国产香蕉在线播出| 99久久精品国产国产毛片| 黄色短视频网站| 精品视频在线看 | 国产精品自拍一区| 在线观看成人网| 欧美国产日韩一区二区三区| 国产美女在线一区二区三区| 日韩欧美一及在线播放| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 精品国产三级a∨在线观看| 国产美女在线一区二区三区| 国产一区精品| 日韩中文字幕在线观看视频| 国产成人精品综合久久久| 国产精品1024在线永久免费| 国产麻豆精品hdvideoss| 天天做日日干| 国产欧美精品午夜在线播放| 欧美1区2区3区| 国产欧美精品午夜在线播放| 99色视频在线观看| 九九免费高清在线观看视频 | 国产成人精品综合久久久| 久久久久久久免费视频| 精品国产一区二区三区久久久狼| 亚洲天堂免费观看| 999精品影视在线观看| 国产亚洲精品aaa大片| 高清一级片| 午夜在线亚洲男人午在线| 日韩av东京社区男人的天堂| 国产成人欧美一区二区三区的| 高清一级做a爱过程不卡视频| 亚洲天堂免费| 99色视频在线观看| 精品国产亚一区二区三区| 午夜在线亚洲男人午在线| 久久精品大片| 亚洲天堂在线播放| 国产a毛片| 99久久精品国产高清一区二区| 亚飞与亚基在线观看| 国产精品免费精品自在线观看| 91麻豆精品国产自产在线观看一区| 九九九网站| 成人免费一级纶理片| 黄视频网站免费观看| 高清一级淫片a级中文字幕| 成人高清视频在线观看| 亚洲女人国产香蕉久久精品| 你懂的日韩| 九九久久国产精品| 国产原创中文字幕| 久久成人综合网| 国产一区二区精品| 99久久精品国产国产毛片| 欧美另类videosbestsex高清 | 午夜欧美成人香蕉剧场| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 精品国产三级a∨在线观看| 日本伦理片网站| 美女免费毛片| 国产一区二区精品尤物| 国产麻豆精品视频| 天天做日日爱| 99色视频在线| 精品国产一区二区三区精东影业 | 韩国三级香港三级日本三级| 美女免费精品视频在线观看| 麻豆午夜视频| 一 级 黄 中国色 片| 国产麻豆精品| 免费毛片播放| 夜夜操天天爽| 成人在免费观看视频国产| 国产原创中文字幕| 可以在线看黄的网站| 国产不卡精品一区二区三区| 日日夜夜婷婷| 麻豆系列 在线视频| 久久久久久久男人的天堂| 精品久久久久久综合网| 久久久成人影院| 九九热国产视频| 日韩欧美一及在线播放| 国产韩国精品一区二区三区| 成人免费网站视频ww| 日日夜夜婷婷|