ADP315PC87570 National Semiconductor, ADP315PC87570 Datasheet - Page 104

no-image

ADP315PC87570

Manufacturer Part Number
ADP315PC87570
Description
Keyboard and Power Management Controller
Manufacturer
National Semiconductor
Datasheet
STASTRE NMINTE GCMEN ACK Res INTEN STOP START
13.4.4 ACB Control Register 1 (ACBCTL)
The ACBCTL1 Register is a byte-wide, read/write register
that configures and controls the ACB module. Upon reset,
the ACBCTL1 is cleared (00h)
Bit 0 - START
Bit 1 - STOP
Bit 2 - Interrupt Enable (INTEN)
Bit 4 - Receive Acknowledge (ACK)
7
This bit should be set when a Start Condition needs to
be generated on the ACCESS.bus.
-
-
The START bit is cleared when the Start Condition is
sent, or on detection of a Bus Error (ACBST.BER=1).
This bit should be set only when in Master mode, or
when requesting Master mode.
In master mode, setting this bit generates a Stop Condi-
tion that completes or aborts the current message trans-
fer. This bit clears itself after the STOP is issued.
When INTEN is cleared (0), the ACB interrupt is dis-
abled. When INTEN is set, interrupts are enabled. An in-
terrupt is generated (the interrupt signals to the ICU are
high) on one of the following events:
-
-
-
-
-
-
When acting as a receiver, this bit holds the value of the
next acknowledge cycle. It should be set when a nega-
tive acknowledge must be issued on the next byte. This
bit is cleared (0) after the first acknowledge cycle.
This bit is ignored when in transmit mode. It cannot be
reset by software.
If the PC87570 is not the active master of the bus
(ACBST.MASTER=0), setting START generates a
Start Condition as soon as the ACCESS.bus is free
(ACBCST.BB=0). An address transmission se-
quence should then be performed.
If the PC87570 is the active master of the bus
(ACBST.MASTER=1), when START is set, a write
to the ACBSDA register generates a Start Condi-
tion, then the ACBSDA data is transmitted as the
slave’s address and the requested transfer direc-
tion.
This case is a repeated Start Condition. It may be
used to switch the direction of the data flow be-
tween the master and the slave, or to choose an-
other slave device without using a Stop Condition
in between.
An
ST.NMATCH=1) and NMINTE=1
A Bus Error occurs (ACBST.BERR=1)
A negative acknowledge is received after sending a
byte (ACBST.NEGACK=1).
Acknowledgment of each transaction (same as the
hardware set of the ACBST.SDAST bit).
In master mode, if ACBCTL1.STASTRE=1, after a
successful start (ACBST.STASTR=1).
Detection of a Stop Condition while in slave mode
(ACBST.SLVSTP=1).
6
address
5
match
4
3
is
detected
2
ACCESS.bus (ACB) Interface
1
(ACB-
0
104
Bit 5 - Global Call Match Enable (GCMEN)
Bit 6 - New Match Interrupt Enable (NMINTE)
Bit 7 - Stall After Start Enable (STASTRE)
13.4.5 ACB Own Address Register (ACBADDR)
The ACBADDR Register is a byte-wide, read/write register
that holds the module’s ACCESS.bus address. The reset
value of this register is undefined.
Bits 6-0 - Own Address (ADDR)
Bit 7 - Slave Address Enable (SAEN)
13.4.6 ACB Control Register 2 (ACBCTL2)
The ACBCTL2 Register is a byte-wide, read/write the regis-
ter that enables/disables the module and determines ACB
clock rate. Upon reset and while the module is disabled
(ACBCTL2.ENABLE=0), the ACBCTL1 is cleared (00h).
Bit 0 - ACB Module Enable (ENABLE)
Bits 7-1 - SCL Frequency (SCLFRQ)
7
When this bit is set, it enables the matching of an incom-
ing address byte to the general call address (Start Con-
dition followed by address byte of 00h) while the ACB is
in slave mode. When cleared, the ACB does not re-
spond to a global call.
Set NMINTE to enable the interrupt on a new match
(i.e., when ACBST.NMATCH is set). The interrupt is is-
sued only if ACBCTL1.INTEN is set.
When set (1), enables the stall after start mechanism. In
such a case, the ACB stalls the bus after the address
byte. When STASTRE is cleared, ACBST.STASTR is
always cleared.
Holds the 7-bit ACCESS.bus address of the PC87570.
When in slave mode, the first seven bits received after
a Start Condition are compared to this field (first bit re-
ceived to bit 6, and the last to bit 0). If the address field
matches the received data and ACBADDR.SAEN is 1, a
match is declared.
When set (1), SAEN indicates that the ADDR field holds
a valid address and enables the match of ADDR to an
incoming address byte. When cleared, the ACB does
not check for an address match.
When this bit is set the ACB module is enabled. When
the Enable bit is cleared, the ACB module is disabled,
ACBCTL1, ACBST and ACBCST are cleared, and the
clocks are halted.
This field defines the SCL’s period (low time and high
time) when the PC87570 serves as a bus master. The
clock low time and high time are defined as follows:
SAEN
7
t
t
SCL
SCLl
=4*SCLFRQ*t
= t
SCLh
6
SCLFRQ
CLK
ADDR
1
ENABLE
www.national.com
0
0

Related parts for ADP315PC87570