欧美成人免费电影,国产欧美一区二区三区精品酒店,精品国产a毛片,色网在线免费观看

參數資料
型號: MC68HC05BD3
廠商: Motorola, Inc.
英文描述: 8-Bit Microcontroller Units (MCU).(8位微控制器)
中文描述: 8位微控制器單元(MCU)。(8位微控制器)
文件頁數: 57/112頁
文件大?。?/td> 676K
代理商: MC68HC05BD3
MC68HC05BD3
MOTOROLA
7-11
M-BUS SERIAL INTERFACE
7
7.4
Programming Considerations
7.4.1
Initialization
Reset will put the M-Bus Control register to its default status. Before the interface can be used to
transfer serial data, the following initialization procedure must be carried out.
1) Update Frequency Divider Register (MFDR) to select an SCL frequency.
2) Update M-Bus Address Register (MADR) to define its own slave address.
3) Set MEN bit of M-Bus Control Register (MCR) to enable the M-Bus interface
system.
4) Modify the bits of M-Bus Control Register (MCR) to select Master/Slave
mode, Transmit/Receive mode, interrupt enable or not.
7.4.2
Generation of a START Signal and
the First Byte of Data Transfer
After completion of the initialization procedure, serial data can be transmitted by selecting the
master transmit mode. If the device is connected to a multi-master bus system, the state of the
M-Bus busy bit (MBB) must be tested to check if the serial bus is free. If the bus is free (MBB=0),
the START condition and the first byte (the slave address) can be sent. An example program which
generates the START signal and transmits the first data byte (slave address) is shown below:
SEI
BRSET
; DISABLE INTERRUPT
CHFLAG
5,MSR,CHFLAG ; CHECK THE MBB BIT OF THE
; STATUS REGISTER. IF IT IS
; SET, WAIT UNTIL IT IS CLEAR
4,MCR
; SET TRANSMIT MODE
5,MCR
; SET MASTER MODE
; i.e. GENERATE START CONDITION
#CALLING
; GET THE CALLING ADDRESS
MDR
; TRANSMIT THE CALLING
; ADDRESS
; ENABLE INTERRUPT
TXSTART
BSET
BSET
LDA
STA
CLI
7.4.3
Software Responses after Transmission or
Reception of a Byte
Upon the completion of the transmission or reception of a data byte, the data transferring bit (MCF)
will be set, indicating one byte communication has been finished. The M-Bus interrupt bit (MIF)
will also be set to generate an M-Bus interrupt if the interrupt is enabled. Software must clear the
TPG
相關PDF資料
PDF描述
MC68HC05BD5 8-Bit Microcontroller Units (MCU).(8位微控制器)
MC68HC705BD3 8-Bit Microcontroller Units (MCU).(8位微控制器)
MC68HC05C4 8-Bit Microcontroller Units (MCU).(8位微控制器)
MC68HC05C5 8-Bit Microcontroller Units (MCU).(8位微控制器)
MC68HC05C8A Microcontrollers
相關代理商/技術參數
參數描述
MC68HC05BD5 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:High-density complementary metal oxide semiconductor (HCMOS) microcontroller unit
MC68HC05C0CP 制造商:Motorola Inc 功能描述:
MC68HC05C12 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNITS
MC68HC05C12B 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNITS
MC68HC05C12CP 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNITS
主站蜘蛛池模板: 甘南县| 措美县| 西峡县| 遂平县| 寻乌县| 金乡县| 饶平县| 定安县| 阳谷县| 潼南县| 恩平市| 怀远县| 林甸县| 商丘市| 井研县| 榕江县| 商都县| 平武县| 论坛| 巴东县| 林芝县| 乌兰察布市| 行唐县| 吉水县| 永胜县| 宽甸| 庐江县| 台前县| 琼海市| 武义县| 宁南县| 洪雅县| 西和县| 运城市| 安徽省| 隆德县| 太白县| 本溪市| 于田县| 汝阳县| 甘谷县|