Blockset described on this wiki is deprecated since 2012.
For Model Based Design (MBD), use the free MPLAB Device Blocks for Simulink, tool from Microchip.
Updated Rapid Control Prototyping (RCP) custom projects are published at: https://lubin.kerhuel.eu.
Difference between revisions of "DsPIC Block/SPI Configuration"
LubinKerhuel (talk | contribs) m |
LubinKerhuel (talk | contribs) m (LubinKerhuel moved page Block/SPI Configuration to DsPIC Block/SPI Configuration: Block is a special page, creates many issues) |
(No difference)
|
Latest revision as of 19:30, 3 May 2015
The configuration block set the SPI parameters.
Contents
Dialog Box Parameters
n° SPI
SPI used
Mode
Master or Slave : define who is driving the clock signal
Prescaler
Choose the speed of the transmission. The resulting speed is showed in Status
SDO Enable
Send data from the microcontroller. If checked, a input entry will appear on the block to connect data to be send.
Data length
Select between 8 or 16 bits. It is the same length for input or output of the block.
Slave Select Pin Enable
When checked, The bus will be activated only rise time of Slave Select Pin. The output will be high impedence during fall time of Slave Select Pin.
Sample phase
Choose the place where the sampling take place when reading data (middle or end of bit)
Clock Active State
Choose the active state of the clock
Output change on transition
Choose where update take place when writng data.
Status
Provides information like bit rate and status
<comments \>