MBSP

Microcontroller Board Support Package

User Tools

Site Tools


spi

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
spi [ 04.02.2025 21:48] – [API] larsspi [ 05.02.2025 01:31] (current) lars
Line 2: Line 2:
  
 Different variants exist. Usually SPI refers to the Motorola Serial Peripheral Interface. Other variants are the Texas Instruments Serial protocol (SSP) and the National Instruments Microwire. Different variants exist. Usually SPI refers to the Motorola Serial Peripheral Interface. Other variants are the Texas Instruments Serial protocol (SSP) and the National Instruments Microwire.
 +
 +===== Protocol =====
 +
 +Most significant bit first
  
  
Line 23: Line 27:
   - data bits are read when clock goes to idle level.   - data bits are read when clock goes to idle level.
      
-^ mode ^ CPOL ^ CPHA ^ write bit ^ read bit ^ +^ mode ^ CPOL ^ CPHA ^ write bit                               ^ read bit        
-| 0 | 0 | 0 | falling clock, and when /CS activates | rising clock  +| 0    | 0    | 0    | clock goes low, and when /CS activates  | clock goes high 
-| 1 | 0 | 1 | rising clock                          falling clock | +| 1    | 0    | 1    | clock goes high                         | clock goes low  
-| 2 | 1 | 0 | rising clock, and when /CS activates  falling clock | +| 2    | 1    | 0    | clock goes high, and when /CS activates | clock goes low  
-| 3 | 1 | 1 | falling clock                         rising clock  |+| 3    | 1    | 1    | clock goes low                          | clock goes high |
  
  
spi.1738702113.txt.gz · Last modified: 04.02.2025 21:48 by lars