Digi NS7520 manual SPI master transmitter

Models: NS7520

1 332
Download 332 pages 47.95 Kb
Page 232
Image 232

S P I m o d e

3Configure the buffer GAP timer, if you want. The buffer GAP timer terminates a DMA transfer at a programmable interval from the time the first character is received. (See "Serial Channel 1, 2 Receive Buffer Gap Timer," beginning on page 255, for more information).

4Configure the character GAP timer, if you want. The character GAP timer terminates a DMA transfer if the time between the receipt of two characters exceeds a programmable interval. (See "Serial Channel 1, 2 Receive Character Gap Timer," beginning on page 256, for more information.)

5Configure Serial Channel Control Register B as shown:

RBGT: 1 to enable the buffer GAP timer

RCGT: 1 to enable the character GAP timer

MODE: 10 for master mode

BITORDR: user-defined

6Configure Serial Channel Control Register A as shown:

CE: 1 for enable

WLS: 11 for 8-bit operation

SPI master transmitter

The SPI master transmitter operates as follows:

Changes its TXD output on the falling edge of the SPI clock signal while the SPI enable signal is driven active low. The SPI slave devices should sample data in the rising edge of the SPI clock signal.

Drives the SPI enable signal active low from the falling edge of the SPI clock for the first bit of a byte being transmitted, and inactive high after the rising edge of the SPI clock signal during the eighth bit of the byte currently transmitted.

Drives the SPI enable signal active low to identify when data is being transmitted. The SPI clock signal never transitions from low to high while the internal SPI enable signal is inactive high.

Transmits bytes when data is available in the TX FIFO. When the TX FIFO becomes empty, the SPI enable signal is driven inactive high until more data is available in the TX FIFO.

2 1 8

N S 7 5 2 0 H a r d w a r e R e f e r e n c e , R e v . D 0 3 / 2 0 0 6

Page 232
Image 232
Digi NS7520 manual SPI master transmitter