1
00:00:00,300 --> 00:00:04,066
Hello everyone, today let's learn about the SPI bus
2
00:00:04,766 --> 00:00:08,100
SPI bus is a bus consisting of four lines
3
00:00:08,766 --> 00:00:13,533
Usually used for EC or PCH to read the program in Flash ROM
4
00:00:13,966 --> 00:00:22,766
These four lines are chip select signal, serial data output, serial data input and serial clock
5
00:00:23,733 --> 00:00:32,566
These four lines are respectively on the 1st, 2nd, 5th and 6th pin of this 8-pin Flash chip
6
00:00:33,200 --> 00:00:35,566
Take a look at this pin definition
7
00:00:36,566 --> 00:00:42,900
The first pin is CS#, which is the chip select signal of the SPI bus
8
00:00:43,700 --> 00:00:48,866
The second pin is DO, which is the serial data output of the SPI bus
9
00:00:49,500 --> 00:00:53,066
Pin 5 is the serial data input of the SPI bus
10
00:00:54,133 --> 00:00:59,500
The 6th pin CLK refers to the serial clock of the SPI bus
11
00:01:00,300 --> 00:01:01,933
This is the SPI bus
12
00:01:02,966 --> 00:01:10,166
The other pins of this Flash chip are: Pin 3 WP#, which is the write protection pin of the chip
13
00:01:11,033 --> 00:01:15,266
Pin 4 GND, this is the ground pin of the chip
14
00:01:15,766 --> 00:01:20,766
Pin 7 HOLD#, this is the pause and interrupt signal of the chip
15
00:01:21,033 --> 00:01:32,500
The 8th pin VCC, this is the power supply pin of the chip, the power supply voltage is usually 3.3V or 1.8V
16
00:01:33,133 --> 00:01:36,200
With the increasing capacity of Flash chips
17
00:01:36,533 --> 00:01:40,666
Higher and higher requirements for SPI bus transmission speed
18
00:01:41,566 --> 00:01:45,566
So now there is a SPI bus called 4x speed
19
00:01:45,900 --> 00:01:47,733
Like this UO2
20
00:01:47,766 --> 00:01:53,400
It retains the 1st pin CS# (chip select signal) and the 6th pin CLK (serial clock)
21
00:01:53,600 --> 00:01:58,833
Then redefine the original 5th pin SI (serial data input) signal as IO0
22
00:01:59,300 --> 00:02:03,300
Redefine pin 2 SO (serial data output) as IO1
23
00:02:04,666 --> 00:02:10,166
Then define pin 3 WP# (write protection) as IO2
24
00:02:10,600 --> 00:02:15,166
Redefine pin 7 HOLD# (pause, interrupt) as IO3
25
00:02:15,500 --> 00:02:26,266
Input and output composed of four lines of IO0, IO1, IO2, and IO3, plus chip select signal and clock
26
00:02:26,700 --> 00:02:29,500
This is the quad-speed SPI bus
27
00:02:30,266 --> 00:02:35,433
Its transfer speed is faster than the traditional four-wire SPI bus
28
00:02:36,200 --> 00:02:40,533
Mainly used to meet large-capacity Flash ROM data transmission
29
00:02:41,333 --> 00:02:43,733
Whether it's EC or PCH
30
00:02:44,233 --> 00:02:50,666
It can measure the SPI bus waveform on any line of the SPI bus when reading the Flash ROM
31
00:02:51,566 --> 00:02:54,100
OK,this is the SPI bus