Difference between revisions of "HANcoder/STM32/Blocks/SPI Master Init"
From OpenMBD
(Created page with "{{HANcoder/Block |info = The 'SPI Master Init' block initializes a SPI master channel. |blockImage = SPIMasterInitBlock.png |maskImage = SPIMasterInitMask.png }}") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
|maskImage = SPIMasterInitMask.png | |maskImage = SPIMasterInitMask.png | ||
+ | }} | ||
+ | |||
+ | == 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 == | ||
+ | [[HANcoder/Examples/MPU6500|MPU6500]] | ||
+ | |||
+ | {{HANcoder/BlockFooter| | ||
+ | |SeeAlso = [[HANcoder/STM32/Blocks/SPI_Master_Transfer|SPI master transfer]] | ||
}} | }} |
Latest revision as of 10:22, 5 May 2017
Supported Targets: Olimexino, E407, P405
Contents
General information about SPI Master Init
The 'SPI Master Init' block initializes a SPI master channel.
Block
Mask
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. |