Electronic Components Datasheet Search |
|
AN921 Datasheet(PDF) 11 Page - Silicon Laboratories |
|
AN921 Datasheet(HTML) 11 Page - Silicon Laboratories |
11 / 24 page 5.2 Manchester Encoder In this section, we will demonstrate how to use the CLUs and SPI to combine SPI data and clock signals into a single Manchester- encoded signal with little CPU intervention. 5.2.1 Manchester Encoder Implementation The implementation of the Manchester encoder will encode the SPI output into a Manchester-encoded signal. The SPI module signals for SCK and MOSI are sent to the GPIOs via the priority crossbar decoder, and the CLUs will take these 2 pins as inputs to encode into Manchester code. The block diagram of the encoder logic is shown below: SPI CLU0 CLU1 Priority Crossbar Decoder MOSI SCK MOSI D Q SCK SYSCLK D Q Manchester MXB MXA X1 MXB MXA Figure 5.2. Manchester Encoder Block Diagram The timing diagram of the Manchester encoded signal and the original SPI clock and MOSI data are shown below: MOSI Manchester X1 1 SCK SYSCLK A 0 B Figure 5.3. Timing Diagram of Manchester Encoder The implementation is based on SPI configured with low idle state (CKPOL = 0) and data centered on the first edge (CKPHA = 0), the rising edge in the implementation. The implementation generates a Manchester code where the bit boundary is aligned with the rising edge of SCK delayed by a half SYSCLK cycle. In the implementation, CLU0 is used to generate a data bit representation of MOSI that is valid between the rising edges of SCK (X1, event A). X1 is then XORed with the SCK in CLU0 to generate the Manchester coded signal. If the LUT output of CLU0 was used for the Manchester code, there would be glitches because the inputs of the XOR gate, SCK, and X1 transition on the same edge. Hence, this output is clocked by the inverted SYSCLK to avoid glitches. Due to the synchronous design of the SPI block, we know that the rising edge of SCK will be aligned to the rising edge of SYSCLK. Hence, we can avoid glitches by using the falling edge of SYSCLK to clock the XOR output (event B). AN921: Configurable Logic Unit Manchester Encoder/Decoder silabs.com | Smart. Connected. Energy-friendly. Rev. 0.1 | 10 |
Similar Part No. - AN921 |
|
Similar Description - AN921 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.NET |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
Family Site : ic2ic.com |
icmetro.com |