CS line definition

The SPI-Simulyzer includes 4 CS lines and therefore allows the connection of 4 sensors in star connection.

 

Each CS line is assigned to one sensor.

By activation of the CS line the corresponding sensor is responded from the master resp. is requested to send its signal. The activation is done by a low level (changing to Gnd), if the sensor is not responsive the CS line will be on High level (Vdd).

 

The definition, what CS line is in use is done at the SPI-Bus-Configuration window by the parameter CS Mask. The combination possibilities of the used CS lines (Usage=1) are done as a bit decoded number (dual number) and is defined as a decimal value in the parameter CS Mask.

 

CS3

CS2

CS1

CS0

Dual number

Parameter
CS Mask
(Decimal value)

Effect

0

0

0

1

0001

1

Only CS0 in use

0

0

1

0

0010

2

Only CS1 in use

0

0

1

1

0011

3

CS0 and 1in use

0

1

0

0

0100

4

Only CS2 in use

0

1

0

1

0101

5

CS0 and 2 in use

0

1

1

0

0110

6

CS1 and 2 in use

0

1

1

1

0111

7

CS0, 1 and 2in use

1

0

0

0

1000

8

Only CS3 in use

1

0

0

1

1001

9

CS0 and 3 in use

1

0

1

0

1010

10

CS1 and 3 in use

1

0

1

1

1011

11

CS0, 1 and 3in use

1

1

0

0

1100

12

CS2 and 3 in use

1

1

0

1

1101

13

CS0, 2 and 3 in use

1

1

1

0

1110

14

CS1, 2 and 3 in use

1

1

1

1

1111

15

CS0, 1, 2 and 3in use

 

1_16_csmask.jpg

 

Procedure

green_browse_right.gif

Open the SPI-Bus-Configuration window.

green_browse_right.gif

Enter the both parameters in the desired field of the section Bus-Parameter by clicking on the field.