z16f2811 ZiLOG Semiconductor, z16f2811 Datasheet - Page 235

no-image

z16f2811

Manufacturer Part Number
z16f2811
Description
High Performance Microcontrollers
Manufacturer
ZiLOG Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
z16f2811AL20AG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811AL20EG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811AL20SG
Manufacturer:
VISHAY
Quantity:
9 487
Part Number:
z16f2811AL20SG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811AL20SG
Manufacturer:
ZILOG
Quantity:
20 000
Part Number:
z16f2811FI20AG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811FI20EG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z16f2811FI20SG
Manufacturer:
Zilog
Quantity:
155
PS022006-0207
Note:
If the slave sends a Not Acknowledge prior to the last byte, a Not Acknowledge interrupt
occurs. Software must respond to this interrupt by clearing the DMAIF bit and setting the
STOP bit to end the transaction.
A summary of I2C transfer of data using the DMA follows.
Master Write transaction with data DMA.
The following procedure describes the I
10-bit addressing mode, transmitting data to the bus Master.
Master Read transaction with data DMA.
In master read transactions, the Master is responsible for the Acknowledge for each data
byte transferred. The Master software must set the NAK bit after the next to the last data
byte has been received or while the last byte is being received. The DMA supports this by
setting the DMA watermark to 0x01, which results in a DMA interrupt when the next to
the last byte has been received. A DMA interrupt also occurs when the last byte is
received. Otherwise, the sequence is similar to that described above for the Master write
transaction.
The I
Configure the selected DMA channel for I
The I
Initiate the I
Set the DMAIF bit in the I2CMODE register.
The DMA transfers the data, which is to be transmitted to the slave.
When the DMA interrupt occurs, poll the I2CSTAT register until the TDRE bit = 1.
Set the STOP bit in the I2CCTL register. The STOP bit is polled by software to
Clear the DMAIF bit in the I2CMODE register.
Configure the selected DMA channel for I
DMACTL register for the last buffer to be transferred.
error conditions. A Not Acknowledge interrupt occurs on the last byte transferred.
Master mode transactions. The
section, using the
slave acknowledges.
This ensures that the I
byte written by the DMA.
determine when the transaction is actually completed.
DMACTL register for the last buffer to be transferred. Typically one buffer is defined
with a transfer length of N where N bytes are expected to be read from the slave. The
watermark is set to 1 by writing a 0x01 to DMAxLAR[23:16].
2
2
C interrupt must be enabled in the interrupt controller to alert software of any I
C Master/Slave must be configured as defined in the sections above describing
2
C transaction as described in the
ACKV
2
C Master/Slave hardware has commenced transmitting the last
P R E L I M I N A R Y
and
ACK
TXI
bits in the I2CSTATE register to determine if the
2
bit in the I2CCTL register must be cleared.
C Master/Slave Controller operating as a Slave in
2
2
C transmit. The IEOB bit must be set in the
C receive. The
Master Address Only Transactions
IEOB
I2C Master/Slave Controller
Product Specification
ZNEO
bit must be set in the
Z16F Series
2
C
221

Related parts for z16f2811