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 [2025/03/03 11:26] arisoturaspi [2025/04/17 15:44] (current) arisotura
Line 17: Line 17:
 | 0xF000440C | FIFO status | | 0xF000440C | FIFO status |
 | 0xF0004410 | Data input/output | | 0xF0004410 | Data input/output |
-| 0xF0004414 | ?? |+| 0xF0004414 | SPI low-level control |
 | 0xF0004418 | IRQ enable | | 0xF0004418 | IRQ enable |
 | 0xF0004420 | Number of bytes to read | | 0xF0004420 | Number of bytes to read |
Line 30: Line 30:
 | 0-2  | Clock source | | 0-2  | Clock source |
 | 3-10 | Clock divider | | 3-10 | Clock divider |
 +| 11-14 | ?? |
 | 15   | SPI enable (possibly just clock enable) | | 15   | SPI enable (possibly just clock enable) |
  
Line 112: Line 113:
 **0xF0004414** **0xF0004414**
  
-Unknown. Bits 0-1, 415 set by firmware code.+Controls low-level aspects of the SPI protocol. 
 + 
 +Bits ^ Desc. ^ 
 +   | CPHA Clock phase | 
 +   | CPOL - Clock polarity; 0=invert source clock1=use source clock as-is | 
 +   | ?? | 
 +15   | ?? | 
 + 
 +Clearing bit 15 has weird effects: seems to force CPOL to 1? This causes the transmitted data to be offset by one bit unless CPHA is 1.
  
  
spi.1741001167.txt.gz · Last modified: 2025/03/03 11:26 by arisotura

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki