Регистры Allwinner H616

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


SPI_WCR
9.3.5. SPI Wait Clock Counter Register - адрес: 0x5010020 0x5011020 (смещение: 0x0020)

Синхронный последовательный интерфейс: список регистров



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

  Unused

Bits 31 : 20

  SWC

Bits 19 : 16
R/W
0x0

Dual mode direction switch wait clock counter (for master mode only).
Cannot be written when XCH=1.
0: No wait states inserted
n: n SPI_SCLK wait states inserted
Note: These bits control the number of wait states to be inserted before start
dual data transfer in dual SPI mode. The SPI module counts SPI_SCLK by SWC
for delaying next word data transfer.


  WCC

Bits 15 : 0
R/W
0x0

Wait Clock Counter (In master mode)
These bits control the number of wait states to be inserted in data transfers.
The SPI module counts SPI_SCLK by WCC for delaying next word data transfer.
0: No wait states inserted
N: N SPI_SCLK wait states inserted



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

md 5010020 1
md 5011020 1



Bit fields structure

typedef union  spi_wcr
{
  struct
  {
   unsigned wcc : 16;
   unsigned swc : 4;
   unsigned unused0 : 12;
  } b;
   unsigned long w;
} SPI_WCR
   

Allwinner H616 Manual