Digi NS7520B-1-C36 Hardware Reference Manual page 227

Table of Contents

Advertisement

number of bytes for transfer. The SPI master port simultaneously transmits and
receives the same number of bytes. A single clock signal controls the transfer of
information; for SPI master mode, the signal is an output. Information is also
qualified with an enable signal, which is controlled by the SPI master. The SPI enable
signal must be active low for data transfer to occur, regardless of the SPI clock signal.
The SPI enable function allows for multiple slaves to be addressed individually in a
multi-drop configuration.
Signals
The GEN module must be configured appropriately to allow the SPI interface signals
to interface with the PORTA and PORTC GPIO pins (see "PORTA Configuration register"
on page 73 and "PORTC Configuration register" on page 77).
Configuration
The SER module must be configured properly to operate in either master or slave
mode. For master mode operation, the MODE field in Serial Channel Control Register
B must be set to 10 before the CE field in Serial Channel Control Register A is set to 1.
Use this suggested configuration order for SPI master mode:
Reset the serial port by writing a 0 to Serial Channel Control Register A.
1
Configure the Serial Channel Bit-Rate register as shown:
2
EBIT: 1 for enable
TMODE: 1 for 1x mode
RXSRC: 0 for internal
TXSRC: 0 for internal
RXEXT: 0 for disable
TXEXT: either 1 or 0 — the setting has no effect
CLKMUX: user-defined
TXCINV: 0 for normal
RXCINV: 0 for normal
N: user–defined
Configure the buffer GAP timer, if you want. The buffer GAP timer terminates a
3
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
250, for more information).
S e r i a l C o n t r o l l e r M o d u l e
w w w . d i g i e m b e d d e d . c o m
2 1 5

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NS7520B-1-C36 and is the answer not in the manual?

This manual is also suitable for:

Ns7520b seriesNs7520b-1-i46Ns7520b-1-c55

Table of Contents