6.4.8.7 Data Format

The data framing format of both the transmitter and the receiver are programmable through the Transmitter Frame Mode Register (SSC_TFMR) and the Receive Frame Mode Register (SSC_RFMR). In either case, the user can independently select the following parameters:

  • Event that starts the data transfer (START)
  • Delay in number of bit periods between the start event and the first data bit (STTDLY)
  • Length of the data (DATLEN)
  • Number of data to be transferred for each start event (DATNB)
  • Length of synchronization transferred for each start event (FSLEN)
  • Bit sense: most or least significant bit first (MSBF)

Additionally, the transmitter can be used to transfer synchronization and select the level driven on the TD pin while not in data transfer operation. This is done respectively by the Frame Sync Data Enable (FSDEN) and by the Data Default Value (DATDEF) bits in SSC_TFMR.

Table 6-9. Data Frame Registers
TransmitterReceiverFieldLengthComment
SSC_TFMRSSC_RFMRDATLENUp to 32Size of word
SSC_TFMRSSC_RFMRDATNBUp to 16Number of words transmitted in frame
SSC_TFMRSSC_RFMRMSBFMost significant bit first
SSC_TFMRSSC_RFMRFSLENUp to 256Size of Synchro data register
SSC_TFMRDATDEF0 or 1Data default value ended
SSC_TFMRFSDENEnable send SSC_TSHR
SSC_TCMRSSC_RCMRPERIODUp to 512Frame size
SSC_TCMRSSC_RCMRSTTDLYUp to 255Size of transmit start delay
Figure 6-47. Transmit and Receive Frame Format in Edge/Pulse Start Modes

In the example illustrated above, the SSC_THR is loaded twice. The FSDEN value has no effect on the transmission. SyncData cannot be output in Continuous mode.

Figure 6-48. Transmit Frame Format in Continuous Mode (STTDLY = 0)
Figure 6-49. Receive Frame Format in Continuous Mode (STTDLY = 0)