參數(shù)資料
型號(hào): DMC73C167
英文描述: 8Bit Single Chip Microcontroller
中文描述: 8位單芯片微控制器
文件頁數(shù): 55/90頁
文件大?。?/td> 742K
代理商: DMC73C167
55
8Bit Single Chip Microcontroller
DMC73C167
Read two byte data from Slave B
Slave A address (0010001)
Slave B address (1010000)
a) Initialization of HDC/LDC, MCTL, and MDATA (Fosc.-4MHz)
MOVP
%>80, MCTL1
Master I2C hardware on;
power-on reset routi ne
H gh durati on w l l be 8us
Lowdurati on w l l be 8us
Cl ear MTS regi ster
MOVP
MOVP
MOVP
MOVP
%>F9, HDC
%>F9, LDC
%E0, MTS
%00100010, MDATA
Address out to Sl ave A
(wri te data to Sl ave A)
MOVP %10100001, MDATA
Address out to Sl ave B
(read data fromSl ave B)
b) Start condition generation and address transfer
For start condition, set BCM1 (=1), BCM0 (=0) of MCTL0. The next data transfer
cycle is for write, so clear bit 3 (MDIR). To enable the start action, set ACT bit
(bit 7 of MCTL0).
MOVP %10000010, MCTL0
After this instruction is executed, the I2C bus module will generate the start condition
and transfer 7 bits of address and 1 bit of direction information. After the address
cycle is completed, the I2C bus module will interrrupt the CPU. But if the CPU masks
the interrupt, the CPU must poll bit 7 (INT5_1F) of MSTS to check the address
transfer status.
c) Check status register (MSTS)
If the address transfer is completed successfully, the contents of MSTS will be 1001 ----
(INT5_1F/ALOST/BERR/BBUSY/-). Then the INT5_1F bit should be cleared
before the next transfer.
(ACT/-
/RSRT
/LODUTY
/MDIR
/NACK
/BCM1
/BCM0)
1
0
0
0
0
1
0
££á££×££
相關(guān)PDF資料
PDF描述
DMC73C168 8Bit Single Chip Microcontroller
DMC80C49 CMOS SINGLE-COMPONENT 8-BIT MICROCOMPUTER
DMCA1CHP TRANSISTOR | MOSFET | ARRAY | N-CHANNEL | 20V V(BR)DSS | 50MA I(D) | CHIP
DMCB1CHP TRANSISTOR | MOSFET | N-CHANNEL | 30V V(BR)DSS | 50MA I(D) | CHIP
DMCB2CHP TRANSISTOR | MOSFET | N-CHANNEL | 30V V(BR)DSS | 50MA I(D) | CHIP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
DMC73C168 制造商:DAEWOO 制造商全稱:DAEWOO 功能描述:8Bit Single Chip Microcontroller
DMC757 制造商:Daniels Manufacturing Corporation (DMC) 功能描述:CONNECTOR
DMC-8/16-15 制造商:Brady Corporation 功能描述:
DMC-8/16-30 制造商:Brady Corporation 功能描述:
DMC80C49 制造商:DAEWOO 制造商全稱:DAEWOO 功能描述:CMOS SINGLE-COMPONENT 8-BIT MICROCOMPUTER