EasyManua.ls Logo

Allwinner A20 - Page 582

Allwinner A20
812 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
A20 User Manual (Revision 1.2) Copyright © 2013 Allwinner Technology Co., Ltd. All Rights Reserved. Page 582 / 812
Offset: 0x0C
Register Name: TWI_CNTR
Default Value: 0x0000_0000
Bit
Read/Write
Default
Description
bit has no effect.
3
R/W
0
INT_FLAG
Interrupt Flag
INT_FLAG is automatically set to ‘1’ when any of 28 (out of
the possible 29) states is entered (see ‘STAT Register’
below). The only state that does not set INT_FLAG is state
F8h. If the INT_EN bit is set, the interrupt line goes high
when IFLG is set to ‘1’. If the TWI is operating in slave
mode, data transfer is suspended when INT_FLAG is set
and the low period of the 2-wire bus clock line (SCL) is
stretched until ‘0’ is written to INT_FLAG. The 2-wire clock
line is then released and the interrupt line goes low.
2
R/W
0
A_ACK
Assert Acknowledge
When A_ACK is set to ‘1’, an Acknowledge (low level on
SDA) will be sent during the acknowledge clock pulse on
the 2-Wire bus if:
a. Either the whole of a matching 7-bit slave address or the
first or the second byte of a matching 10-bit slave address
has been received.
b. The general call address has been received and the GCE
bit in the ADDR register is set to ‘1’.
c. A data byte has been received in master or slave mode.
When A_ACK is ‘0’, a Not Acknowledge (high level on SDA)
will be sent when a data byte is received in master or slave
mode.
If A_ACK is cleared to ‘0’ in slave transmitter mode, the byte
in the DATA register is assumed to be the ‘last byte’. After
this byte has been transmitted, the TWI will enter state C8h
then return to the idle state (status code F8h) when
INT_FLAG is cleared.
The TWI will not respond as a slave unless A_ACK is set.
1:0
R/W
0
/

Table of Contents