EasyManua.ls Logo

Allwinner A20 - TWI Controller Special Requirement

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 587 / 812
Offset: 0x24
Register Name: TWI_DVFSCR
Default Value: 0x0000_0000
Bit
Read/Write
Default
Description
2
R/W
0
MS_PRIORITY
CPU and DVFS BUSY set priority select
0: CPU has higher priority
1: DVFS has higher priority
1
R/W
0
CPU_BUSY_SET
CPU Busy set
0
R/W
0
DVFC_BUSY_SET
DVFS Busy set
Note: This register is only implemented in TWI0.
6.2.5. TWI Controller Special Requirement
6.2.5.1. TWI PIN LIST
Port
Name
Width
Direction
Description
TWI_SCL
1
IN/OUT
TWI Clock line
TWI_SDA
1
IN/OUT
TWI Serial Data line
6.2.5.2. TWI CONTROLLER OPERATION
There are four operation modes on the 2-Wire bus which dictates the communications method. They
are Master Transmit, Master Receive, Slave Transmit and Slave Receive. In general, CPU host
controls TWI by writing commands and data to it’s registers. The TWI interrupts the CPU host for
the attention each time a byte transfer is done or a START/STOP conditions is detected. The CPU
host can also poll the status register for current status if the interrupt mechanism is not disabled by
the CPU host.
When the CPU host wants to start a bus transfer, it initiates a bus START to enter the master mode
by setting IM_STA bit in the 2WIRE_CNTR register to high (before it must be low). The TWI will
assert INT line and INT_FLAG to indicate a completion for the START condition and each
consequent byte transfer. At each interrupt, the micro-processor needs to check the 2WIRE_STAT

Table of Contents