Регистры Allwinner H616

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


UART_IER
9.2.5. UART Interrupt Enable Register - адрес: 0x5000004 0x5000404 0x5000804 0x5000c04 0x5001004 0x5001404 (смещение: 0x0004)

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



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

  Unused

Bits 31 : 8

  PTIME

Bit 7
R/W
0x0

Programmable THRE Interrupt Mode Enable
This is used to enable/disable the generation of THRE Interrupt.
0: Disable
1: Enable


  Unused

Bits 6 : 5

  RS485_INT_EN

Bit 4
R/W
0x0

RS485 Interrupt Enable
0:Disable
1:Enable


  EDSSI

Bit 3
R/W
0x0

Enable Modem Status Interrupt
This is used to enable/disable the generation of Modem Status Interrupt.
This is the fourth highest priority interrupt.
0: Disable
1: Enable


  ELSI

Bit 2
R/W
0x0

Enable Receiver Line Status Interrupt
This is used to enable/disable the generation of Receiver Line Status
Interrupt. This is the highest priority interrupt.
0: Disable
1: Enable


  ETBEI

Bit 1
R/W
0x0

Enable Transmit Holding Register Empty Interrupt
This is used to enable/disable
the generation of Transmitter
Holding
Register Empty Interrupt. This is the third highest priority interrupt.
0: Disable
1: Enable


  ERBFI

Bit 0
R/W
0x0

Enable Received Data Available Interrupt
This is used to enable/disable the generation of Received Data Available
Interrupt and the Character Timeout Interrupt (if in FIFO mode and FIFOs
enabled). These are the second highest priority interrupt.
0: Disable
1: Enable



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

md 5000004 1
md 5000404 1
md 5000804 1
md 5000c04 1
md 5001004 1
md 5001404 1



Bit fields structure

typedef union  uart_ier
{
  struct
  {
   unsigned erbfi : 1;
   unsigned etbei : 1;
   unsigned elsi : 1;
   unsigned edssi : 1;
   unsigned rs485_int_en : 1;
   unsigned unused0 : 2;
   unsigned ptime : 1;
   unsigned unused1 : 24;
  } b;
   unsigned long w;
} UART_IER
   

Allwinner H616 Manual