From b7588d2f421782df29dbc17a87d39eb5ad1b2ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Ye=28=E5=8F=B6=E5=89=91=29?= Date: Tue, 5 Sep 2023 16:20:22 +0800 Subject: [PATCH 1/2] Change the support list section in the display document (800G does not support mipi) and add data flow description in uart --- docs/Application_guide/zh/hardware/display.md | 12 ++++++------ .../zh/hardware/peripheral-interfaces/UART.md | 12 ++++++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/docs/Application_guide/zh/hardware/display.md b/docs/Application_guide/zh/hardware/display.md index e801e0cf..80ba99fa 100644 --- a/docs/Application_guide/zh/hardware/display.md +++ b/docs/Application_guide/zh/hardware/display.md @@ -94,7 +94,7 @@ QuecPython 系列芯片的 MIPI 接口特点: | EC800N_XXX | × | √ | | EC600M_XXX | × | √ | | EC800M_XXX | × | √ | -| EC800G_XXX | √ | √ | +| EC800G_XXX | × | √ | | EC810M_XXX | × | √ | | EG912N_XXX | × | √ | | EG912U_XXX | √ | √ | @@ -140,9 +140,9 @@ QuecPython 系列芯片的 MIPI 接口特点: ![](../media/hardware/display/screen_driver_gray.png) -​ BPP = 4 GRAM 结构 + BPP = 4 GRAM 结构 + -​ 从以上图中可以看出,映射方式大概可以分为两类: @@ -174,7 +174,7 @@ BPP < 8 时,一个字节映射到了多个像素,因此无法直接地控制 > - 对于彩色屏幕,支持 8 个方向的旋转。 > - 对于单色屏幕,如 SSD1306 等屏幕来说,只支持前 4 个方向,即不支持交换 XY 轴。 -​ **注解:** + **注解:** 显示方向还和使用的屏幕面板有关系,你可能会发现两种异常的情况: @@ -521,7 +521,7 @@ spilcd.lcd_init(init_st7789_240X320_p, 240,320,52000,1,4,0,invalid_st7789_240X32 注意: -​QuecPython 屏幕数据为大端模式。 +QuecPython 屏幕数据为大端模式。 **示例如下(ST7789V):** @@ -705,7 +705,7 @@ mipilcd.mipi_init(initbuf=bytearray(init_480X854), TransMode=1) 注意: -​ QuecPython 屏幕数据为大端模式。 + QuecPython 屏幕数据为大端模式。 **示例如下(st7701s):** diff --git a/docs/Application_guide/zh/hardware/peripheral-interfaces/UART.md b/docs/Application_guide/zh/hardware/peripheral-interfaces/UART.md index 2d8255f9..69a72926 100644 --- a/docs/Application_guide/zh/hardware/peripheral-interfaces/UART.md +++ b/docs/Application_guide/zh/hardware/peripheral-interfaces/UART.md @@ -240,13 +240,25 @@ QuecPython各模组支持情况见[machine.UART](https://python.quectel.com/doc/ ![send_data](../../media/hardware/peripheral-interfaces/UART/UART_send_data.png) +当软件FIFO中无数据超过500ms时,结束数据传输。 + +TX通信:发送数据->数据发送完毕发送事件->触发中断->触发回调函数发送事件到对应的线程处理->对应线程触发用户自定义回调函数。 + +其触发中断类型只有一种:TX_COMPLETE。 + 接收数据的数据流: ![recv_data](../../media/hardware/peripheral-interfaces/UART/UART_recv_data.png) +RX通信有两个中断,dma中断(数据接收到64byte),超时中断(接收数据字节数少于64而不产生dma中断的情况,时长40ms)。 + +其触发中断的类型有两种:RX_ARRIVED 和 RX_OVERFLOW。 + +当软件FIFO满时,再接收数据会造成数据溢出,出现丢数据问题。溢出的同时会上报RX_OVERFLOW事件。故串口接收数据需要及时处理,否则出现数据丢失,数据接收不全问题,当大量数据传输时,可考虑硬件流控。 +RX通信:接收数据满64字节或超时->触发中断->触发回调函数发送事件到对应的线程处理->对应的线程触发用户定义回调函数。 ## 功能概述 -- Gitee From 49630dec390136790c51ab293acf7dd884ad1661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Ye=28=E5=8F=B6=E5=89=91=29?= Date: Wed, 6 Sep 2023 16:30:23 +0800 Subject: [PATCH 2/2] Modify the link in the software i2c application document --- docs/API_reference/en/peripherals/machine.I2C_simulation.md | 4 +++- docs/API_reference/zh/peripherals/machine.I2C_simulation.md | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/API_reference/en/peripherals/machine.I2C_simulation.md b/docs/API_reference/en/peripherals/machine.I2C_simulation.md index 2568026b..27c34874 100644 --- a/docs/API_reference/en/peripherals/machine.I2C_simulation.md +++ b/docs/API_reference/en/peripherals/machine.I2C_simulation.md @@ -84,7 +84,9 @@ import utime as time 3. read data """ -# API manual http://qpy.quectel.com/wiki/#/zh-cn/api/?id=i2c +# API manual +# https://python.quectel.com/doc/API_reference/en/peripherals/machine.I2C_simulation.html + # AHT10 instructions # https://server4.eca.ir/eshop/AHT10/Aosong_AHT10_en_draft_0c.pdf # This example shows that driver AHT10 obtains temperature and humidity data. diff --git a/docs/API_reference/zh/peripherals/machine.I2C_simulation.md b/docs/API_reference/zh/peripherals/machine.I2C_simulation.md index 3691e077..4eb2d6fc 100644 --- a/docs/API_reference/zh/peripherals/machine.I2C_simulation.md +++ b/docs/API_reference/zh/peripherals/machine.I2C_simulation.md @@ -79,6 +79,8 @@ import utime as time 2. Trigger measurement 3. read data """ +# API 手册 +# https://python.quectel.com/doc/API_reference/zh/peripherals/machine.I2C_simulation.html # AHT10 说明书 # https://server4.eca.ir/eshop/AHT10/Aosong_AHT10_en_draft_0c.pdf -- Gitee