diff --git a/en/peripherals/machine.ExtInt.md b/en/peripherals/machine.ExtInt.md
index ec7ff80cfd631eef9946c331190304bd426402de..fff2f0b5427f5ad9a624ca193708ce30e25cb9a6 100644
--- a/en/peripherals/machine.ExtInt.md
+++ b/en/peripherals/machine.ExtInt.md
@@ -25,7 +25,7 @@ class machine.ExtInt(GPIOn, mode, pull, callback, [filter_time])
> parameter [filter_time] only EG912N/EG915N/EC600M/EC800M/EG810M/EC200A/UC200A series module support
Pin Correspondences of BG95M3 Module
+ Pin Correspondences of BG95M3,BG95M8 Module
GPIO2 – Pin5
GPIO3 – Pin6
GPIO6 – Pin19
GPIO7 – Pin22
GPIO8 – Pin23
GPIO9 – Pin25
GPIO11 – Pin27
GPIO12 – Pin28
GPIO14 – Pin41
GPIO16 – Pin65
GPIO17 – Pin66
GPIO18 – Pin85
GPIO19 – Pin86
GPIO22 – Pin20
GPIO23 – Pin21
GPIO24 – Pin30
GPIO25 – Pin34
GPIO26 – Pin35
GPIO29 – Pin38
GPIO30 – Pin39
class machine.SPI(spi, mode, clk, [group])
Parameter:
@@ -23,6 +23,21 @@ This class provides bus protocol of serial peripheral interface (SPI) .class machine.SPI(spi, mode, clk, [group])
+
+Parameter:
+port
- Integer type. Channel selection: [0,1].
mode
- SPI working mode.
Clock polarity CPOL: The pin level of clock signal SCLK when SPI is idle (0: low level; 1: high level)0
:CPOL=0, CPHA=0
1
:CPOL=0, CPHA=1
2
:CPOL=1, CPHA=0
3
:CPOL=1, CPHA=1
clk
- Clock frequency.0
:960kHz
1
:4.8MHz
2
:9.6MHz
3
:16MHz
4
:19.2MHz
5
:25MHz
6
:50MHz
The 50MHz clock frequency has high requirements for hardware.
class machine.SPI(spi, mode, clk, [group])
diff --git a/en/peripherals/machine.UART.md b/en/peripherals/machine.UART.md
index 078207cdd25fcf8b8ba37da989cf5ba87680b712..19a22149c15c9c3ebab1b1a6bdd04096af580fa2 100644
--- a/en/peripherals/machine.UART.md
+++ b/en/peripherals/machine.UART.md
@@ -39,6 +39,23 @@ This class transmits data through the UART.
class machine.UART(UART.UARTn, baudrate, databits, parity, stopbits, flowctl, [group])
+
+Parametric Description:
+UARTn
- UART number, int type, UARTn description is as follows:UART0
- DEBUG PORT UART1
- BT PORT UART2
- MAIN PORT UART3
- USB CDC PORT
baudratec
- Baud rate, int type, supports common baud rates such as4800
、9600
、19200
、38400
、57600
、115200
、230400
.
databits
- Data bits [5-8], int type.
parity
- Parity (0-None, 1-even, 2-odd), int type.
stopbits
- Stop bit [1 ~ 2], int type.
flowctl
- Hardware control flow (0-FC_NONE, 1-FC_HW), int type.
[group]
- The UART is selected to be used on different pins, with the default value being 0, int type.
class machine.UART(UART.UARTn, baudrate, databits, parity, stopbits, flowctl)
@@ -752,19 +769,26 @@ This class transmits data through the UART.
diff --git a/en/peripherals/misc.PWM.md b/en/peripherals/misc.PWM.md index 4b8c7d6e4395defb48f2fc065c06cdadd7ee84ce..a61f08aa9874baf880699c49e1ca6966b681daf9 100644 --- a/en/peripherals/misc.PWM.md +++ b/en/peripherals/misc.PWM.md @@ -72,6 +72,8 @@ The corresponding pins of EC200A/UC200A module for PWM0-PWM2 are as follow:When flowctl = 1, uart1 only maps uart1 to different pins and does not turn on the flow control function.
class machine.SPI(spi, mode, clk, [group])
参数描述:
@@ -23,6 +23,21 @@class machine.SPI(spi, mode, clk, [group])
+
+参数描述:
+spi
- 通道选择[0,1],int类型。
mode
- SPI 的工作模式,int类型,说明如下:
时钟极性CPOL:即SPI空闲时,时钟信号SCLK的电平(0:空闲时低电平; 1:空闲时高电平)0
:CPOL=0, CPHA=0
1
:CPOL=0, CPHA=1
2
:CPOL=1, CPHA=0
3
:CPOL=1, CPHA=1
clk
- 时钟频率,说明如下:0
:960kHz
1
:4.8MHz
2
:9.6MHz
3
:16MHz
4
:19.2MHz
5
:25MHz
6
:50MHz
50MHz时钟频率对硬件要求较高。
class machine.SPI(spi, mode, clk, [group])
diff --git a/zh/peripherals/machine.UART.md b/zh/peripherals/machine.UART.md
index ce3451d3856d73a3f50763be9f4bb87d01186d1c..1dcb9f47775754321a046dfe8cfa01df82b9be8e 100644
--- a/zh/peripherals/machine.UART.md
+++ b/zh/peripherals/machine.UART.md
@@ -55,7 +55,7 @@
class machine.UART(UART.UARTn, baudrate, databits, parity, stopbits, flowctl)
参数描述:
@@ -71,6 +71,23 @@class machine.UART(UART.UARTn, baudrate, databits, parity, stopbits, flowctl, [group])
+
+参数描述:
+UARTn
- UART编号,int类型,UARTn说明如下:UART0
- DEBUG PORT UART1
- BT PORT UART2
- MAIN PORT UART3
- USB CDC PORT
baudratec
- 波特率,int类型,支持常用波特率,如4800
、9600
、19200
、38400
、57600
、115200
、230400
等;
databits
- 数据位[5 ~ 8],int类型。
parity
- 奇偶校验(0 – NONE,1 – EVEN,2 – ODD),int类型。
stopbits
- 停止位[1 ~ 2],int类型。
flowctl
- 硬件控制流(0 – FC_NONE, 1 – FC_HW),int类型。
[group]
- 选择在不同管脚使用UART,缺省值为0。int类型。
class machine.UART(UART.UARTn, baudrate, databits, parity, stopbits, flowctl)
@@ -784,19 +801,26 @@
diff --git a/zh/peripherals/misc.PWM.md b/zh/peripherals/misc.PWM.md index 94b37d8d67b8a6276caae948be02b0cc31fb1598..4f8bf8073158433291f3d2be9d8c632d67064c32 100644 --- a/zh/peripherals/misc.PWM.md +++ b/zh/peripherals/misc.PWM.md @@ -81,7 +81,7 @@ pwm1 = PWM_V2(PWM_V2.PWM1, 100.0, 50)#频率100Hz,占空比50% | EC800G | PWM0 – 引脚号79(不可与PWM20同时使用)uart1在flowctl = 1时,仅将uart1映射到不同的引脚,未开启流控功能。