Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти


UART_IIR
9.2.5. UART Interrupt Identity Register - адрес: 0x5000008 0x5000408 0x5000808 0x5000c08 0x5001008 0x5001408 (смещение: 0x0008)

Универсальный асинхронный приемо-передатчик: список регистров



31 ||||||||||||||||| 16
15 ||||||||||||||||| 00

  Unused

Bits 31 : 8

  FEFLAG

Bits 7 : 6
R
0x0

FIFOs Enable Flag
This is used to indicate whether the FIFOs are enabled or disabled.
00: Disable
11: Enable


  Unused

Bits 5 : 4

  IID

Bits 3 : 0
R
0x1

Interrupt ID
This indicates the highest priority pending interrupt which can be one of the following types:
0000: modem status
0001: no interrupt pending
0010: THR empty
0011: RS485 Interrupt
0100: received data available
0110: receiver line status
0111: busy detect
1100: character timeout

The bit 3 indicates an interrupt can only occur when the FIFOs are enabled
and used to distinguish a Character Timeout condition interrupt.

Interrupt IDPriority LevelInterrupt TypeInterrupt SourceInterrupt Reset
0001-NoneNone-
0110HighestReceiver line status
Overrun/parity/framing errors or break interrupt
Reading the line status register
0011Second RS485 Interrupt
In RS485 mode, receives address data and match setting address
Writes 1 to addr flag to reset
0100Third Received data available
Receiver data available (non-FIFO mode or FIFOs disabled) or RCVR FIFO trigger level
reached (FIFO mode and FIFOs enabled)
Reading the receiver buffer register (non-FIFO mode or FIFOs disabled) or the FIFO
drops below the trigger level (FIFO mode and FIFOs enabled)

1100Fourth Character timeout indication
No characters in or out of the RCVR FIFO during the last 4 character times and there is at
least 1character in it during This time
Reading the receiver buffer register

0010Fifth Transmit holding register empty
Transmitter holding register empty (Program THRE mode disabled) or XMIT FIFO at or
below threshold (Program THRE mode enabled)

Reading the IIR register (if source of interrupt); or, writing into THR (FIFOs or
THRE mode not selected or disabled) or XMIT FIFO above threshold (FIFOs and THRE mode selected and enabled).

0000Sixth Modem status
Clear to send or data set ready or ring indicator or data carrier detect.
Note that if auto flow control mode is enabled, a change in CTS (that is, DCTS set) does not cause an interrupt.
Reading the Modem status register

0111SeventhBusy detect indication
UART_16550_COMPATIBLE = NO and master has tried to write to the Line Control Register while the UART is busy (USR[0] is set to one).

Reading the UART status register



Команда U-Boot для чтения регистра

md 5000008 1
md 5000408 1
md 5000808 1
md 5000c08 1
md 5001008 1
md 5001408 1



Bit fields structure

typedef union  uart_iir
{
  struct
  {
   unsigned iid : 4;
   unsigned unused0 : 2;
   unsigned feflag : 2;
   unsigned unused1 : 24;
  } b;
   unsigned long w;
} UART_IIR
   

Allwinner H616 Manual