Matlab-Simulink device driver Blockset for Microchip dsPIC / PIC24 / PIC32 Microcontrollers.

DsPIC Block/SPI Configuration

From http://www.kerhuel.eu/wiki - Simulink device driver Blockset for dsPIC / PIC24 / PIC32 Microcontrollers --[[User:LubinKerhuel|LubinKerhuel]] 12:40, 3 September 2009 (UTC)
Jump to: navigation, search
Block SPI Configuration

The configuration block set the SPI parameters.

Dialog Box Parameters

SPI Configuration Dialog

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 \>