Difference between revisions of "HANcoder/STM32/Blocks/SPI Master Init"

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
Line 8: Line 8:
  
 
}}
 
}}
 +
 +
== Block parameters ==
 +
{| class="wikitable"
 +
|-
 +
! style="width:150px" | Parameter
 +
! Description
 +
|-
 +
| Channel
 +
| Select the SPI channel to use.
 +
|-
 +
| Communication speed
 +
| Select the frequency of the SPI clock signal.
 +
|-
 +
| Polarity
 +
| Select the polarity of the SPI clock signal during idle.
 +
|-
 +
| Phase
 +
| Select the edge of the SPI clock signal at which time a bit should be sampled.
 +
|}
  
 
== Examples ==
 
== Examples ==
[[HANcoder/Examples/Vehicle_Logger_Step_2|MPU6500]]
+
[[HANcoder/Examples/MPU6500|MPU6500]]
  
 
{{HANcoder/BlockFooter|
 
{{HANcoder/BlockFooter|
 
|SeeAlso = [[HANcoder/SPI_Master_Transfer|SPI master transfer]]
 
|SeeAlso = [[HANcoder/SPI_Master_Transfer|SPI master transfer]]
 
}}
 
}}

Revision as of 11:50, 27 April 2017

Supported Targets: Olimexino, E407, P405

General information about SPI Master Init

The 'SPI Master Init' block initializes a SPI master channel.

Block

SPIMasterInitBlock.png

Mask

SPIMasterInitMask.png

Block parameters

Parameter Description
Channel Select the SPI channel to use.
Communication speed Select the frequency of the SPI clock signal.
Polarity Select the polarity of the SPI clock signal during idle.
Phase Select the edge of the SPI clock signal at which time a bit should be sampled.

Examples

MPU6500

See Also

SPI master transfer