33.5.1 I/O Lines
To use the SERCOM’s I/O lines, the I/O pins must be configured using the I/O Pin Controller (PORT). When the SERCOM is configured for SPI operation, the SERCOM controls the direction and value of the I/O pins according to the details provided in the table below.
The PORT Control bit (PINCFGn.DRVSTR) is still effective for the SERCOM output pins. The PORT Control bit( PINCFGn.PULLEN) is still effective on the SERCOM input pins, but is limited to the enabling or disabling of a pull down only (it is not possible to enable or disable a pull up).
If the receiver is disabled, the data input pin can be used for other purposes.
Pin | Host SPI | Client SPI |
---|---|---|
MOSI | Output | Input |
MISO | Input | Output |
SCK | Output | Input |
SS | Output | Input |
The combined configuration of PORT, the Data In Pinout and the Data Out Pinout bit groups in the Control A register (CTRLA.DIPO and CTRLA.DOPO) define the physical position of the SPI signals in the table above.