參數(shù)資料
型號(hào): PCF84C81A
廠商: NXP Semiconductors N.V.
元件分類: 8位微控制器
英文描述: 8-BIT SINGLE CHIP MICROCONTROLLERS
中文描述: 8位單晶片微控制器
文件頁數(shù): 9/10頁
文件大?。?/td> 145K
代理商: PCF84C81A
Philips Semiconductors
The I
2
C serial bus: theory and practical consideration using Philips
low-voltage PCF84Cxx and PCD33xx
μ
C families
Application note
AN168
1988 Dec
9
PIN
&
ACK
RECEIVED
INITIALIZE
BUS
STATUS
LOAD S0 WITH SLAVE
ADDRESS AND RD/WR BIT
START CONDITION
AND TRANSMIT ADDRESS
RETURN
GENERATE
STOP CONDITION
SEND/RECEIVE
DATA BYTE
YES
NO
NO
YES
PIN
&
ACK
RECEIVED
GENERATE
STOP
CONDITION
COMMUNICATION WITH PERIPHERAL REQUIRED
SL00952
Figure 6. Flowchart for Reading/Writing One Byte to an I
2
C
Peripheral; Single-Master, Single-Address Slave
MOV S1, #18H
:Initialize bus-status register
:Master, Transmitter,
:Bus-not-Busy, Enable SIO,
:Load S0 with RAM’s chip
:address
:Start cond. and transmit
:address
:Wait until address received
:Set up for transmitting RAM
:location address
:Transmit first RAM address
:Wait
:Set up for a repeated Start
:condition
:Get RAM chip address & RD bit
:Send out to bus
:preceded by repeated Start
MOV S0, #0A0H
MOV S1, #0F8H
CALL ACKWT
MOV A, #00H
MOV S0,A
CALL ACKWT
MOV S1, #18H
MOV A, #0A1H
MOV SO, A
MOV S1, #0F8H
CALL ACKWT
MOV A,S0
CALL ACKWT
MOV A,S0
:Wait
:First data byte to S0
:Wait
:Second data byte to S0
:And First data byte to Acc.
:Wait
:Save first byte in R0
:Third data byte to S0
:and second data byte to Acc.
:Wait
:Save second data byte
:in R1
:Leave ack. mode
:Bit Counter=001 for neg ack.
:Third data byte to acc
:negative ack. generated
:Save third data byte in R2
:Get bus status
:Wait until transfer complete
:Stop condition
:Restore acknowledge mode
CALL ACKWT
MOV R0,A
MOV A,S0
CALL ACKWT
MOV R1,A
MOV S2, #01H
MOV A,S0
MOV R2,A
MOV A,S1
JB4 WAIT1
MOV S1, #0D8H
MOV S2, #41H
WAIT1:
SL00953
Figure 7.
相關(guān)PDF資料
PDF描述
PCF84C822 8-BIT SINGLE CHIP MICROCONTROLLERS
PCF84C846 8-BIT SINGLE CHIP MICROCONTROLLERS
PCF84C84x 8-BIT SINGLE CHIP MICROCONTROLLERS
PCF84C22AP 8-bit microcontrollers
PCF84C22A 8-bit microcontrollers
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PCF84C81AP 制造商:PHILIPS 制造商全稱:NXP Semiconductors 功能描述:Telecom microcontroller
PCF84C81AT 制造商:PHILIPS 制造商全稱:NXP Semiconductors 功能描述:Telecom microcontroller
PCF84C81PN 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller
PCF84C853AT 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller
PCF84C85A 制造商:PHILIPS 制造商全稱:NXP Semiconductors 功能描述:Microcontroller with extended I/O