30.4.3.2 Preloading of the Client Shift Register

When starting a transaction, the client first transmits the contents of the shift register before loading new data from the DATA register. The first character sent can be either the reset value of the shift register, if this is the first transmission since the last reset, or the last received character in the previous transaction.

Preloading can be used to preload data into the shift register while SS is high, eliminating the need to send a dummy character at the start of a transaction.

Only one data character can be preloaded into the shift register while the synchronized SS signal is high. If the next character is written to DATA before SS is pulled low, the second character is stored in DATA until the transfer begins.

For proper preloading, sufficient time must elapse between SS going low and the first SCK sampling edge, as shown in the following figure. See also the Electrical Characteristics chapter for timing details.

Preloading is enabled by writing ’1’ to the Client Data Preload Enable bit in the CTRLB register (CTRLB.PLOADEN).

The preload function must not be used when the Host cannot maintain the SS line in a low state until transmission is complete.

Figure 30-4. Timing Using Preloading