參數(shù)資料
型號: DMC73C167
英文描述: 8Bit Single Chip Microcontroller
中文描述: 8位單芯片微控制器
文件頁數(shù): 62/90頁
文件大小: 742K
代理商: DMC73C167
62
8Bit Single Chip Microcontroller
DMC73C167
5.7.2.3 Slave Mode Operations
First the slave address must be set by writing the address value to SADDR. Then bit
7 (SMON) of SCTL must be set to turn on the slave module. When the slave module
is selected (via an address match or general call address), an interrupt will occur.
When this happens, the status bit (SDIR and GCALL) must be checked. If the master
wants to receive data from the slave module (SDIR=1), SDATA should be written
with the proper data, and then INT5_2F must be cleared.
The following instructions are an example of slave mode operations.
MOVP %21h, SADDR
MOVP %10000001, SCTL
Sl ave address = 21h
( ENABLE/-----/INT5_2C)
1
Wi ts for INT5_2F = 1
If GCALL = 1 does
speci al operati on
If SDIR = 1 sends data
to mster
If SDIR = 0 recei ves
data frommster
Cl ears INT5_2F fl ag
( ENABLE/-----/INT5_2C)
1
1
LOOP BTJ ZP %01h, SCTL, LOOP
BTJ OP %02h, SCTL, ADD0
BTJ OP %04h, SCTL, SEND
MOVP SDATA, A
MOVP %100000001, SCTL
:
:
:
SEND MOVP %AAh, SDATA
1
If SDIR = 1 sends data
AAh to mster
Cl ears INT5_2F fl ag
( ENABLE/-----/INT5_2C)
1
MOVP %10000001, SCTL
:
:
:
ADD0 MOVP SDATA, B
1
If GCALL = 1 reads data
frommster
Cl ears INT5_2F fl ag
( ENABLE/-----/INT5_2C)
1
MOVP %10000001, SCTL
:
:
:
Decodes contents of the B regi ster
1
££á££×££
相關(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