立创·黄山派开发板使用指南¶
(This development board is currently for internal trial use and will be released to the public after modification and improvement in the future)
开发板版本信息:¶
V1.0.0:采用SF32LB52-MOD-1模组,当前版本
开发板概述¶
Lichuang Huangshan Pai is a development board based on the SF32LB52-MOD-1 module of Sifli Technology, and it is also a prototype of smart watch bracelets。Developers can prototype smart watch bracelets based on this development board。
特性列表¶
该开发板具有以下特性:
Module: On-board SF32LB52x-MOD-1-N16R8 module based on SF32LB52x chip,模组配置如下:
标配SF32LB525UC6芯片,内置合封配置为:
8MB OPI-PSRAM,接口频率144MHz
128Mb QSPI-NOR Flash, interface frequency 72MHz, STR mode
48MHz crystal
32.768KHz crystal
On-board PCBA antenna
显示
AMOLED screen, model: ZC-A1D85W-010
1.85 inches
390*450
800 cd/m2
Quad SPI display interface
OLED Driver IC: CO5300AF-01
Power IC: BV6802W
TP IC: FT6146-M00
Dedicated screen interface
SPI/DSPI/Quad SPI,Support DDR mode QSPI, led out through 22pin FPC and 40pin pin header
Support touch screen with I2C interface
音频
On-board integrated Mems MIC
Analog audio output, on-board Class-D audio PA
External GH-1.25mm interface 3W/4 ohm or 2W/8 ohm speaker
USB
Type C-UART interface, on-board CH340N serial chip, realize program download and software DEBUG, can supply power
USB interface, support USB2.0 FS, led out through 30p interface
SD卡
Support TF card with SPI interface, on-board Micro SD card slot
按键
1x Function button
1x Power button, support long press 10s reset function
RGB-LED
1x RGB-LED, SK6812MINI-HS, GPIO control
马达
On-board motor drive circuit, reserve external motor soldering point
传感器
Six-axis IMU-Inertial Measurement Unit, LSM6DS3TR-C
Three-axis geomagnetic sensor, MMC5603NJ
Ambient light sensor, LTR-303ALS-01
电源
OVP, SY5320
Charger, SY6103
Loadswitch, LP5240HVF
LDO, ETA5055V330DS2F
Support external GH1.25mm positive line sequence interface lithium battery, maximum charging voltage 4.5V, maximum charging current 500mA
30p 功能扩展接口
2x15p,1.27mm间距排针
Extended GPIO
Support power consumption test
功能框图¶
组件介绍¶
SF32LB52黄山派开发板包含:
- Core board
- Screen board
- Battery
- Speaker
应用程序开发¶
本节主要介绍硬件和软件的设置方法,以及烧录固件至开发板以及开发应用程序的说明。
必备硬件¶
1 x SF32LB52黄山派(含SF32LB52X-MOD-1-N16R8模组)
1 x USB2.0数据线(标准A型转Type-C型)
1 x电脑(Windows、Linux或macOS)
Note
If you need to debug via UART and also use the USB interface, you need two USB2.0 data cables;
Please make sure to use the appropriate USB data cable, some data cables are only available for charging, not for data transmission and program burning。
可选硬件¶
1x Speaker
1x TF Card
1x More than 450mAh lithium battery
硬件设置¶
准备好开发板,加载第一个示例应用程序:
Open SifliTrace tool software of Sifli, select the correct COM port;
Insert the USB data cable, connect the PC and the USB to UART port of the development board respectively;
The LCD screen lights up, you can interact with the touch screen with your fingers。
The hardware setup is complete, and then the software setup can be performed。
软件设置¶
For how to quickly set up the development environment, please refer to the software-related documentation。
硬件参考¶
This section provides more information about the hardware of the development board。
GPIO分配列表¶
The following table is the GPIO allocation list of the SF32LB52-MOD-1-N16R8 module pins, which is used to control specific components or functions of the development board。
管脚 |
管脚名称 |
功能 |
---|---|---|
1 |
GND |
Ground |
2 |
PA_44 |
VBUS_DET, charger insertion detection |
3 |
PA_43 |
KEY2 |
4 |
PA_42 |
Audio_PA_EN |
5 |
PA_23 |
XTAL32K_XO, default NC |
6 |
PA_22 |
XTAL32K_XI, default NC |
7 |
PA_41 |
Touch screen interrupt INT |
8 |
PA_40 |
Sensor I2C1_SCL |
9 |
PA_39 |
传感器I2C1_SDA |
10 |
PA_38 |
VSYS to VSYS_1切换控制 |
11 |
PA_37 |
触摸屏I2C_SCL |
12 |
PA_36 |
USB_DM |
13 |
PA_35 |
USB_DP |
14 |
PA_34 |
HOME和长按Reset按键 |
15 |
PA_33 |
触摸屏I2C_SDA |
16 |
PA_32 |
RGB LED |
17 |
VDD33_VOUT2 |
3.3V电源输出 |
18 |
PA_24 |
SPI1_DIO,SD卡接口信号 |
19 |
PA_25 |
SPI1_DI,SD卡接口信号 |
20 |
PA_26 |
VSYS_1 to VCC33切换控制 |
21 |
PA_27 |
SD卡_CD信号 |
22 |
PA_28 |
SPI1_CLK,SD卡接口信号 |
23 |
PA_29 |
SPI1_CS,SD卡接口信号 |
24 |
PA_30 |
VSYS_1 to HR3V3切换控制 |
25 |
PA_31 |
Sensor INT1 |
26 |
GND |
Ground |
27 |
VBAT |
3.7~4.7V power input |
28 |
PA_20 |
vibrator PWM |
29 |
PA_19 |
DB_UART_TXD, Program download and software debugging interface |
30 |
PA_18 |
DB_UART_RXD, Program download and software debugging interface |
31 |
PA_11 |
Charger I2C0_SDA |
32 |
PA_10 |
Charger I2C0_SCL |
33 |
AU_DAC1P_OUT |
Analog audio output signal |
34 |
AU_DAC1N_OUT |
Analog audio output signal |
35 |
GND |
Ground |
36 |
MIC_BIAS |
MIC bias voltage |
37 |
MIC_ADC_IN |
MIC input signal |
38 |
PA_09 |
Touch screen interrupt RST |
39 |
PA_08 |
QSPI D3, LCD interface signal |
40 |
PA_07 |
QSPI D2, LCD interface signal |
41 |
PA_06 |
QSPI D1, E-Paper DC, LCD interface signal |
42 |
PA_05 |
QSPI D0, E-Paper SDI, LCD interface signal |
43 |
PA_04 |
QSPI CLK, E-Paper SCLK, LCD interface signal |
44 |
PA_03 |
QSPI CS, E-Paper CS, LCD interface signal |
45 |
PA_02 |
QSPI TE, E-Paper BUSY, LCD interface signal |
46 |
PA_01 |
BL PWM, LCD interface signal |
47 |
PA_00 |
RSTB, LCD interface signal |
48 |
GND |
Ground |
49 |
GND |
Ground |
50 |
GND |
Ground |
51 |
GND |
Ground |
52 |
GND |
Ground |
53 |
GND |
Ground |
54 |
GND |
Ground |
55 |
GND |
Ground |
56 |
GND |
Ground |
57 |
GND |
Ground |
58 |
GND |
Ground |
58 |
GND |
Ground |
60 |
GND |
Ground |
61 |
VBATS |
Battery voltage detection input |
62 |
NC |
NC |
63 |
PA_15 |
MPI2_D0, SD1_CMD |
64 |
PA_16 |
MPI2_CLK, SD1_D0 |
65 |
PA_17 |
MPI2_D3, SD1_D1 |
66 |
PA_14 |
MPI2_D2, SD1_CLK |
67 |
PA_13 |
MPI2_D1, SD1_D3 |
68 |
PA_12 |
MPI2_CS, SD1_D2 |
Important
SF32LB52-DevKit-ULP is compatible with SF32LB-MOD-1 module。
The VDD33_VOUT pin 17 of the module is a 3.3V power output, no output by default, internal LDO enable needs to be turned on by software。
The VBAT pin 27 of the module is the power input pin, which can be directly connected to a lithium battery. When not using battery power supply but using constant voltage power supply, the input range is 3.7V~4.7V, it is recommended to connect to 3.8V。
The startup threshold of the VBAT power supply of the SF32LB-MOD-1-N16R8 module is set to 3.58V by software, and the shutdown threshold is set to 3.48V by software。
Pins 62~68 of the SF32LB-MOD-1-N16R8 module are by default internally connected to Nor Flash in the module, the development board cannot use them if you want to use the SDIO interface, please choose a flash-free version of the module。
30P排针接口定义¶
管脚 |
管脚名称 |
功能 |
---|---|---|
1 |
USB_VBUS_5V |
USB TypeC VBUS |
2 |
USB_VBUS_5V |
USB TypeC VBUS |
3 |
GND |
Ground |
4 |
GND |
Ground |
5 |
VBAT_S |
VBAT power output, need to be shorted with the VBAT pin |
6 |
VBAT |
VBAT power input, need to be shorted with the VBAT_S pin |
7 |
VSYS_S |
VSYS power output, need to be shorted with the VSYS pin |
8 |
VSYS |
VSYS power input, need to be shorted with the VSYS_S pin |
9 |
GND |
Ground |
10 |
GND |
Ground |
11 |
VCC_3V3_S |
VCC_3V3 power output, need to be shorted with the VCC_3V3 pin |
12 |
VCC_3V3 |
VCC_3V3 power input, need to be shorted with the VCC_3V3_S pin |
13 |
PA_36 |
Default USB_DM |
14 |
PB_39 |
Default I2C1_SDA |
15 |
PA_35 |
Default USB_DP |
16 |
PA_40 |
Default I2C1_SCL |
17 |
PA_32 |
Default RGN-LED data, can be used as GPIO |
18 |
PA_30 |
Default Sensor power control, when used as GPIO, will affect PA39 and PA40 |
19 |
PA_29 |
Default SPI1_CS, can be used as GPIO, the TF card on the core board cannot be inserted during expansion |
20 |
PA_24 |
Default SPI1_DO, can be used as GPIO, the TF card on the core board cannot be inserted during expansion |
21 |
PA_28 |
Default SPI1_CLK, can be used as GPIO, the TF card on the core board cannot be inserted during expansion |
22 |
PA_25 |
Default SPI1_DI, can be used as GPIO, the TF card on the core board cannot be inserted during expansion |
23 |
PA_27 |
Default SD_DET, can be used as GPIO, the TF card on the core board cannot be inserted during expansion |
24 |
PA_20 |
Default VIB PWM, can be used as GPIO, the motor on the core board cannot be soldered during expansion |
25 |
PA_19 |
Debug UART_TXD |
26 |
PA_34 |
KEY1, power on/off and long press 10s reset |
27 |
PA_18 |
Debug UART_RXD |
28 |
PA_43 |
KEY2, function button |
29 |
PA_11 |
Default I2C0_SDA |
30 |
PA_10 |
Default I2C0_SCL |
Important
Pins 1 and 2 of the 30p are connected to the USB-TypeC V。
30p的5脚是连接在开发板的Battery座上,未和下游连接,工作时需要用跳线帽把VBAT_S和VBAT短接。
30p的6脚是连接在开发板的充电IC的VBAT引脚和模组的VBATS引脚上,这里把VBAT_S和VBAT断开是为了方便串电流表测试功耗。
30p的7脚是连接在开发板的充电IC的VSYS引脚上,未和下游连接,工作时需要用跳线帽把VSYS_S和VSYS短接。
30p的8脚是连接在模组的VSYS引脚和其他VSYS输入引脚上,这里把VSYS_S和VSYS断开是为了方便串电流表测试功耗。
30p的11脚是连接在开发板的VSYS_1转VCC_3V3的LDO输出引脚上,未和下游连接,工作时需要用跳线帽把VCC_3V3_S和VCC_3V3短接。
30p的12脚是连接在开发板的的VCC_3V3主电上,这里把VSYS_S和VSYS断开是为了方便串电流表测试功耗。
22p QSPI线序FPC接口定义¶
管脚 |
管脚名称 |
功能 |
---|---|---|
1 |
VBAT |
VBAT电源输出 |
2 |
PA_01 |
BL_PWM信号(TFT屏时使用) |
3 |
PA_07 |
QSPI D2, LCD interface signal |
4 |
PA_08 |
QSPI D3, LCD interface signal |
5 |
NC |
NC |
6 |
NC |
NC |
7 |
NC |
NC |
8 |
NC |
NC |
9 |
NC |
NC |
10 |
NC |
NC |
11 |
PA_02 |
QSPI TE,LCD接口信号 |
12 |
PA_00 |
LCD Reset,LCD接口信号 |
13 |
PA_04 |
QSPI CLK,SPI CLK,LCD接口信号 |
14 |
PB_05 |
QSPI D0,SPI SDI,LCD接口信号 |
15 |
PA_03 |
QSPI CS,SPI CS,LCD接口信号 |
16 |
PA_06 |
QSPI D1,SPI DC,LCD接口信号 |
17 |
VDD_3V3 |
3.3V电源输出 |
18 |
PA_41 |
触摸屏INT中断信号 |
19 |
PA_33 |
触摸屏I2C_SDA信号 |
20 |
PA_37 |
触摸屏I2C_SCL信号 |
21 |
PA_09 |
触摸屏RTNReset信号 |
22 |
GND |
Ground |
Power supply instructions¶
The SF32LB52 Huangshan Development Board has two power supply methods: USB Type-C and battery power supply.
The USB Type-C interface on the board can power the board.
The battery can be powered independently, which is convenient for running independently without a computer.
Hardware setting options¶
Connect the USB cable through the USB-to-UART port, open the program download tool from Sifli Technology, and select the corresponding COM port and program.
Download mode
Check the BOOT option, power on, enter the download mode after booting, and the program download can be completed.
Software development mode
Uncheck the BOOT option, power on, enter the serial port log printing mode after booting, and then enter the software debugging mode.
Reset
Reset the module by pulling down and then up the RTS# pin of CH340N.
具体请参考 固件烧录工具 Impeller
Charging and battery selection¶
The SF32LB52-Huangshan Development Board integrates the SY6103 linear charging chip, which supports a maximum charging current of 500mA and is set to 450mA constant current by default.
It is recommended to choose a single-cell polymer lithium battery with a capacity of 450mAh~500mAh. The battery interface is a GH-1.25mm female socket with forward wiring sequence. Please refer to the battery seat silkscreen on the development board for polarity.
LCD display interface¶
The SF32LB52-Huangshan core board supports QSPI interface LCD screens, with a connector of 22p-0.5pitch FPC, and dual contact points at the top and bottom. Please refer to the above definition for signal line sequence. If the line sequence is different, an adapter board test is required. Please refer to the “SF32LB52-DevKit-LCD Adapter Board Production Guide”.
Audio interface¶
The SF32LB52-Huangshan core board integrates MEMS MIC and audio amplifier chips.
Supports audio signal input from the onboard mic.
Supports external speakers (up to 3W/4 ohms), speaker connector specifications (GH-1.25mm female socket).
Sample acquisition¶
Contact the FAE of Sifli Technology to obtain the development board.