通过软件的方式,控制芯片引脚的高低电平

时间:2024-03-16 18:18:28
  1. 首先可以进入该芯片或者SOC的后台,既终端界面;
  2. 要有芯片或SOC的端口控制表,如:

通过软件的方式,控制芯片引脚的高低电平

NO

Name

Description

1

GND1

 Ground connections

2

VDD1

 Power supply 3.3V is required

3

VDD2

 Power supply 3.3V is required

4

UART_TXD0

 UART0 TXD, GPIO#12

5

UART_RXD0

 UART0 RXD, GPIO#13

6

GND2

 Ground connections

7

RXIP0

 RXIP0

8

RXIN0

 RXIN0

9

TXOP0

 TXOP0

10

TXON0

 TXON0

11

TXOP1

 TXOP1, SPIS_CS, GPIO#14, PWM_CH0

12

TXON1

 TXON1, SPIS_CLK, GPIO#15, PWM_CH1

13

RXIP1

 RXIP1, SPIS_MISO, GPIO#16, UART_TXD2

14

RXIN1

 RXIN1, SPIS_MOSI, GPIO#17, UART_RXD2

15

RXIP2

 RXIP2, GPIO#18, PWM_CH0

16

RXIN2

 RXIN2, GPIO#19, PWM_CH1

17

TXON2

TXON2, UART_RXD2, GPIO#21, PWM_CH3

18

TXOP2

TXOP2, UART_TXD2, GPIO#20, PWM_CH2

19

TXOP3

TXOP3, SD_WP, GPIO#22

20

TXON3

TXON3, SD_CD, GPIO#23

21

RXIP3

 RXIP3, SD_D1, GPIO#24

22

RXIN3

 RXIN3, SD_D0, GPIO#25

23

RXIN4

 RXIN4, SD_CMD, GPIO#27

24

RXIP4

 RXIP4, SD_CLK, GPIO#26

25

TXOP4

TXOP4, SD_D3, GPIO#28

26

TXON4

TXON4, SD_D3, GPIO#29

27

GND3

 Ground connections

28

 USB_D+

 USB positive differential data lines

29

 USB_D-

 USB negative differential data lines

30

GND4

 Ground connections

31

LED4

 Port #4 activity LED, GPIO#39

32

LED2

 Port #2 activity LED, GPIO#41

33

LED0

Port #0 activity LED, GPIO#43

34

LED1

Port #1 activity LED, GPIO#42

35

LED3

 Port #3activity LED, GPIO#40

36

WLED_N

 WLAN Activity LED, GPIO#44

37

1.8V_OUT

 1.8V_OUT, 10mA

38

GND5

 Ground connections

39

CPU_RST_N

 Power on reset, low active

40

3.3V_OUT

 3.3V_OUT, 100mA

41

 PERST_N

 PERST_N , GPIO#36

42

REF_CLKO

 REF_CLKO, GPIO#37

43

WDT_RST_N

 Watchdog reset, GPIO#38

44

 I2S_DI

 I2S_SDI, I2C_SCLK, GPIO#0, PCMDRX

45

 I2S_WS

 I2S_WS, I2C_SCLK, GPIO#2, PCMCLK

46

 I2S_CLK

 I2S_CLK, I2C_SD, GPIO#3, PCMFS

47

 I2S_DO

 I2S_SDO, I2C_SD, GPIO#1, PCMDTX

48

UART_TXD1

 UART1 TXD, GPIO#45

49

UART_RXD1

 UART1 RXD, GPIO#46

50

 I2C_SD

 I2C Data, GPIO#5

51

 I2C_SCL

 I2C Clock, GPIO#4,

52

SPI_MOSI

 SPI_MOSI, GPIO#8

53

SPI_MISO

 SPI_MISO, GPIO#9

54

SPI_CLK

 SPI_CLK, GPIO#7,

55

SPI_CS1

 SPI_CS1, GPIO#6, REF_CLKO

56

GPIO0

 GPIO11, REF_CLKO, PERST_N

57

GND6

 Ground connections

58

GND7

 Ground connections

   3. 通过命令操作后台,来控制引脚电平

 

通过软件的方式,控制芯片引脚的高低电平

这里是将56脚的电平,通过软件的方式将它置1;56脚的脚名为GPIO0,它的GPIO口为GPIO11