Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

resources:eval:sdp:sdp-b:peripherals:sport [18 May 2011 15:16] – created Jean McAdamresources:eval:sdp:sdp-b:peripherals:sport [18 May 2011 15:55] (current) – Equations fixed Jean McAdam
Line 1: Line 1:
-===== SPORT: Synchronous Serial Peripheral Port =====+==== SPORT: Synchronous Serial Peripheral Port ====
  
 Sport interface supports a variety of serial data communication protocols. Key features and capability of SPORT interface are Sport interface supports a variety of serial data communication protocols. Key features and capability of SPORT interface are
Line 11: Line 11:
 SCLK = 120MHz \\ SPORT_TCLKDIV = 0 to 65535 \\ SCLK = 120MHz \\ SPORT_TCLKDIV = 0 to 65535 \\
  
-<m> TSCLK Max = (120M/ (2 x(1+1)))=60MHz </m> \\ <m> TSCLK Min = (120M/(2 x(65535+1))) 915.52Hz </m> \\ +<m> TSCLK Max = ((120M)/ (2 x(1+1)))=60MHz </m> \\ <m> TSCLK Min = ((120M)/(2 x(65535+1))) ≈ 915.52Hz </m> \\ 
 Other allowable values : 60MHz, 30MHz, 20MHz, 12MHz, 10MHz, 7.5MHz, 6MHz \\ NOTE : The value of Transmit Frame Sync Frequency is a function of the clock frequency of the transmit clock. SPORT_TFSDIV is the number of serial clock cycles between frame sync assertions.\\  Other allowable values : 60MHz, 30MHz, 20MHz, 12MHz, 10MHz, 7.5MHz, 6MHz \\ NOTE : The value of Transmit Frame Sync Frequency is a function of the clock frequency of the transmit clock. SPORT_TFSDIV is the number of serial clock cycles between frame sync assertions.\\ 
  
Line 17: Line 17:
  
 SPORT_TFSDIV must be greater than the serial word length -1. This ensures that the the frame sync is deasserted prior to reassertion for the the framed word. Therefore depending on the word size chosen for data transmission and the clock frequency selected the Frame Sync freqency will vary. Taking a 60MHz TSCLK and a serial wordlenght of 32. The minimum and maximum SPORT TFS are calculated as follows \\ SPORT_TFSDIV must be greater than the serial word length -1. This ensures that the the frame sync is deasserted prior to reassertion for the the framed word. Therefore depending on the word size chosen for data transmission and the clock frequency selected the Frame Sync freqency will vary. Taking a 60MHz TSCLK and a serial wordlenght of 32. The minimum and maximum SPORT TFS are calculated as follows \\
-<m> SPORT TFS Max = (60M/32 +1) 1800000 Hz </m> \\ <m> SPORT TFS Min = (60M/(65536 +1)) =1000Hz </m> +<m> SPORT TFS Max = ((60M)/(32 +1)) ≈ 1800000 Hz </m> \\ <m> SPORT TFS Min = ((60M)/(65536 +1)) ≈ 1000Hz </m> 
 The Receive Clock freqency and the Receive Frame Rates available can be calculated similarily to the TSCLK and the TFS rates \\ The Receive Clock freqency and the Receive Frame Rates available can be calculated similarily to the TSCLK and the TFS rates \\
 <m> SPORT RSCLK = (SCLK/(2 x(SPORT_RCLKDIV+1))) </m> \\ <m> SPORT RSCLK = (SCLK/(2 x(SPORT_RCLKDIV+1))) </m> \\
 SCLK = 120MHz \\ SCLK = 120MHz \\
 SPORT_RCLKDIV = 0 to 65535 \\ SPORT_RCLKDIV = 0 to 65535 \\
-RSCLK Max = 60MHz, RSCLK MIN 915.52Hz \\+RSCLK Max = 60MHz, RSCLK MIN ≈ 915.52Hz \\
 <m> SPORT RFS = (RSCLK/(SPORT RFSDIV +1)) </m> <m> SPORT RFS = (RSCLK/(SPORT RFSDIV +1)) </m>
  
resources/eval/sdp/sdp-b/peripherals/sport.1305724581.txt.gz · Last modified: 18 May 2011 15:16 (external edit)