SF32LB52-DevKit-LCD开发板使用指南

开发板概述

SF32LB52-DevKit-LCD is a development board based on the SF32LB52x series chip module,Mainly used for developing various applications based on SPI/DSPI/QSPI or MCU/8080 interface display screens。

The development board also features analog MIC input, analog audio output, SDIO interface, USB-C interface, and supports TF cards, etc.,Providing developers with abundant hardware interface resources that can be used to develop drivers for various interface peripherals,Helping developers simplify the hardware development process and shorten the time to market for products。

SF32LB52_DevKit-LCD的外形如 {number} {number}所示。

../../_images/SF32LB52x-DevKit-LCD_Front_Look.png
../../_images/SF32LB52x_DevKit-LCD_Back_Look.png

特性列表

The development board has the following characteristics:

  1. Module: Onboard SF32LB52x-MOD-N16R8 module based on SF32LB52x chip,模组配置如下:

    • Standard configuration SF32LB525UC6 chip, built-in co-packaged configuration:

      • 8MB OPI-PSRAM, interface frequency 144MHz(正式发布可能会改变)

    • 128Mb QSPI-NOR Flash, interface frequency 72MHz, STR mode(正式发布可能会改变)

    • 48MHz crystal

    • 32.768KHz crystal

    • Onboard antenna, or IPEX antenna base, selectable via 0 ohm resistor, default is onboard antenna

    • RF matching network and other resistance-capacitance-inductance components

  2. Dedicated screen interface

    • SPI/DSPI/QSPI, supports DDR mode QSPI, led out through 22pin FPC and 40pin header

    • 8bit MCU/8080, led out through 22pin FPC and 40pin header

    • Supports touch screens with I2C interface

  3. Audio

    • Supports analog MIC input

    • Analog audio output, onboard Class-D audio PA

  4. USB

    • Type C interface, supports onboard USB to serial chip, enabling program download and software DEBUG, can supply power

    • Type C interface, supports USB2.0 FS, can supply power

  5. SD card

    • Supports TF cards using SPI interface, onboard Micro SD card slot

功能框图

../../_images/SF32LB52x_DevKit-LCD_Block_Diagram.png

组件介绍

SF32LB52-DevKit-LCD开发板的主板是整个套件的核心,该主板集成了SF32LB52-MOD-N16R8模组,并提供QSPI和MUC8的LCD连接座

../../_images/52KIT-LCD-T-Notes.png
../../_images/52KIT-LCD-B-Notes.png

应用程序开发

This section mainly introduces the methods for setting up hardware and software, as well as instructions for burning firmware to the development board and developing applications。

Essential hardware

  • 1 x SF32LB52-DevKit-LCD(含SF32-LB52X-MOD模组)

  • 1 x LCD模组

  • 1 x USB2.0数据线(标准A型转Type-C型)

  • 1 x电脑(Windows、Linux或macOS)

Note

  1. If you need to debug via UART and also use the USB interface, two USB2.0 data cables are required;

  2. Please ensure to use appropriate USB data cables some cables are only for charging and cannot be used for data transmission and program burning。

Optional hardware

  • 1 xSpeaker

  • 1 x TF Card

  • 1 x Lithium battery greater than 450mAh

硬件设置

Get the development board ready, load the first example application:

  1. Connect the screen module to the corresponding LCD connector interface;

  2. Open the SifliTrace tool software from Sichiray, select the correct COM port;

  3. Insert the USB data cable, connect PC and the development board’s USB to UART port respectively;

  4. The LCD screen lights up, you can interact with the touchscreen using your fingers。

Hardware setup is complete, next you can proceed with software setup。

软件设置

For the SF32LB52-DevKit-LCD development board, please refer to the software-related documentation for how to quickly set up the development environment。

硬件参考

This section provides more information about the development board hardware。

GPIO分配列表

The table below shows the GPIO allocation list for the SF32LB52-MOD-N16R8 module pins, used to control specific components or functions of the development board。

Important

  1. SF32LB52-DevKit-LCD is compatible with three types of modules: SF32LB-MOD-1, SF32LB-MOD-A and SF32LB-MOD-B。

  2. Pin 17 VDD33_VOUT2/AVDD33 of the module, when in SF32LB-MOD-1 module, it’s a 3.3V power output (no output by default, output is available after software configuration), when in SF32LB-MOD-A/B, it’s a 3.3V power input。

  3. Pin 27 VBAT of the module, when in SF32LB-MOD-1 module, it’s a 3.2~4.7V power input, when in SF32LB-MOD-A/B, it’s a 3.3V power input。

  4. The power-on threshold of VBAT power supply for SF32LB-MOD-1 module is set to 3.58V, and the power-off threshold is set to 3.48V。For non-battery power applications, it is recommended that VBAT supplies 3.8V voltage。

  5. Pin 62 PA21 of the module is only supported by SF32LB52-MOD-A/B, and NC for SF32LB-MOD-1。

  6. Pins 62~68 of the module are by default internally connected to Nor Flash within the module, thus cannot be used by the development board if you want to use the SDIO interface, please choose the flash-free version of the module。

40P排针接口定义

../../_images/SF32LB52x_DevKit-40p-define.png

22p QSPI线序FPC接口定义

Table 1 QSPI-FPC-J0102 信号定义

管脚

管脚名称

功能

1

LEDK

Cathode of LCD backlight diode

2

LEDA

Anode of LCD backlight diode

3

PA_07

MIPI-DBI(8080) B0, QSPI D2, LCD interface signal

4

PA_08

MIPI-DBI(8080) B1, QSPI D3, LCD interface signal

5

PA_37

MIPI-DBI(8080) B2, LCD interface signal

6

PB_39

MIPI-DBI(8080) B3, LCD interface signal

7

PB_40

MIPI-DBI(8080) B4, LCD interface signal

8

PA_41

MIPI-DBI(8080) B5, LCD interface signal

9

PA_42

MIPI-DBI(8080) B6, LCD interface signal

10

PA_43

MIPI-DBI(8080) B7, LCD interface signal

11

PA_02

MIPI-DBI(8080) TE, QSPI TE, LCD interface signal

12

PA_00

LCD Reset, LCD interface signal

13

PA_04

MIPI-DBI(8080) WRx, QSPI CLK, SPI CLK, LCD interface signal

14

PB_05

MIPI-DBI(8080) RDx, QSPI D0, SPI SDI, LCD interface signal

15

PA_03

MIPI-DBI(8080) CSx, QSPI CS, SPI CS, LCD interface signal

16

PA_06

MIPI-DBI(8080) DCx, QSPI D1, SPI DC, LCD interface signal

17

VDD_3V3

3.3V power output

18

PA_31

Touch screen INT interrupt signal

19

PA_33

Touch screen I2C_SDA signal

20

PA_30

Touch screen I2C_SCL signal

21

PA_09

触摸屏RTN复位信号

22

GND

Ground

供电说明

SF32LB52-DevKit-LCD开发板有2种供电方式:USB Type-C和电池供电。

  1. 板上2个USB Type-C接口都可以给板子供电,下载和调试时,请用 USB-to-UART 端口。

  2. 可以电池单独供电,便于脱离电脑独立运行。

硬件设置选项

通过USB-to-UART端口连上USB线,打开思澈科技的程序下载工具,选取相应的COM口和程序。

  1. 下载模式

  • 勾选BOOT项,上电,开机后进入下载模式,就可以完成程序的下载。

  1. 软件开发模式

  • 去掉BOOT项,上电,开机后进入串口log打印模式,便进入软件调试模式。

具体请参考 固件烧录工具 Impeller

充电及电池选型

SF32LB52-DevKit-LCD开发板集成了ETA9640P 线性充电芯片,最大支持1A充电电流,默认设置为450mA恒流电流。

电池推荐选取450mAh~500mAh单芯聚合物锂电池,电池接口为2.0mm HDR母座,极性请参考开发板上电池座丝印。

LCD显示屏接口

SF32LB52-DevKit-LCD开发板支持QSPI接口LCD屏,接插件为22p-0.5pitch FPC,上翻下接触。 信号线序请参考上文定义,线序不同需要做转接板测试,请参考《SF32LB52-DevKit-LCD Adapter Production Guide》。

Audio接口

SF32LB52-DevKit-LCD开发板集成MEMS MIC和Audio功放芯片。

  • 支持板上mic的Audio信号输入。

  • 支持外接喇叭(最大支持3W/4欧姆),喇叭接插件规格(2.0mm 间距 HDR母座)。

样品获取

联系思澈科技的FAE,获取开发板。

相关文档

Development Board Version Information:

  • V1.2.0:Adopting SF32LB52-MOD-1/A/B module, SF32LB52-MOD-1 (SF32LB525UC6) to be launched

序号

V1.2.0更新内容

1

Modify the SD card plug-in detection signal input pin to use PA26, sharing one IO with external Flash2 chip select and GPIO LED。

  • V1.1.0:Adopting SF32LB52-MOD-A/B module, current physical objects include (-A:SF32LB52BU36 and -B:SF32LB52EUB6)

序号

V1.1.0更新内容

1

Update the charging chip schematic library to solve the problem of incorrect 5V output from the charging chip。

2

Remove the MOS tube VBUS and VBAT switching circuit, the subsequent circuits are all powered by the 5V output of the charging chip, solving the abnormal VBUS and VBAT switching problem。

3

Adjust the amplification factor of the audio PA。

4

Solve the problem of Reset button abnormality。

5

Remove the level conversion part in the RGBLED circuit, which does not meet the timing of RGBLED。

6

Upgraded the pin definition of the module, added 2 IOs, solving the compatibility issue between -1 module and -A/B module。

7

Update the power supply section, AVDD of -A/B is changed to LDO power supply, solving the RF sensitivity problem caused by large ripple in the original DCDC output。

8

Add support for dual flash。

9

Add SD card plug-in detection function, only -A/B supports this function。

10

Add SDIO WiFi function option, only -A supports this function。

11

Modify the positioning hole type, PCB slot on the back of the antenna。

12

Modified the access point position of the EOS protection device for VBUS input。

  • V1.0.0:Adopting SF32LB52-MOD module, current version