There is a JBL screen interface in the SF32LB52, but I want to connect a Sharp screen. I’d like to ask how to connect it.
You can refer to the 52x chip datasheet on our wiki website to locate the pins supporting the LCDC1_JDI_XXX related functions, then find the corresponding physical pins on the development board, connect them to the Sharp display, and finally modify the relevant code.
May I ask which pin the VCOM of the 52x JDI is connected to, and which pins the GEN and INTB of the Sharp are connected to?
The naming might differ, but our pinmux naming is consistent with this diagram.
According to the Sharp JDI manual I have and by cross-referencing this timing diagram, GEN should correspond to ENB, and INTB should correspond to XRST.
As for VCOM, it is directly connected to a PWM output (shared with one of FRP/XFRP) and is not part of the LCDC pinmux. The sf32lb52-lcd_n16r8_jdi board contains the relevant pinmux configuration, using lppwm2 as the output.
config JDI_FRP_LPPWM_INTERFACE_NAME
string
default "pwmlp2"
HAL_PIN_Set(PAD_PA24, PBR_LPTIM2_OUT, PIN_NOPULL, 1); //FRP
HAL_PIN_Set(PAD_PA25, PBR_LPTIM2_INV_OUT, PIN_NOPULL, 1); //XFRP
