返回列表 发新帖我要提问本帖赏金: 10.00元(功能说明)

[开发板与模块] 【HT32F52352 Starter Kit测评】 加肥版扩展板^_^

[复制链接]
1969|12
 楼主| tlled 发表于 2022-4-29 16:27 | 显示全部楼层 |阅读模式
本帖最后由 eltonchang2001 于 2022-11-9 11:35 编辑

#申请原创#          @21小跑堂
    给HT32F52352 Starter Kit开发板设计了个扩展板,装起来发现有点肥了。过程如下:
    一、硬件电路

    1.1、电路图部分
    101.png

    1.2、PCB
    100.png

    1.3、打样的PCB
    001.jpg
    002.jpg

    1.4、焊接后装配图
    003.jpg
    004.jpg

    二、程序

    2.1、测试下LCD显示屏,移植了开源的lkdgui到开发板

    lkdgui地址:https://gitee.com/nhxgygrd053/lkdGui/

    007.png
    main.c
  1. #include "ht32.h"
  2. #include "ht32_board.h"
  3. #include "delay.h"
  4. #include "led.h"
  5. #include "timer.h"
  6. #include "UC1698Driver.h"
  7. #include "lkdGui.h"
  8. //#include "menutest.h"
  9. //#include "keyDriver.h"

  10. extern void defaultFontInit(void);



  11. void NVIC_Configuration(void);
  12. void CKCU_Configuration(void);
  13. void GPIO_Configuration(void);
  14. #if (ENABLE_CKOUT == 1)
  15. void CKOUTConfig(void);
  16. #endif

  17. int main(void)
  18. {
  19.   u8 input=0;
  20.         
  21.         lkdColour  color;

  22.   NVIC_Configuration();               /* NVIC configuration                                                 */
  23.   CKCU_Configuration();               /* System Related configuration                                       */
  24.   GPIO_Configuration();               /* GPIO Related configuration                                         */
  25.   RETARGET_Configuration();           /* Retarget Related configuration                                     */
  26.         
  27.         delay_init();
  28.         init_led();
  29.         init_timer();
  30.         LcdInit();                                
  31.         defaultFontInit();        
  32.         GuiUpdateDisplayAll();        
  33.         
  34.         color = GuiGetForecolor();  
  35.    
  36.         GuiRowText(0, 2,160, FONT_MID,"HT32F52352 Starter Kit");
  37.         GuiHPointLine(0, 15, 160, 2, color);
  38.         GuiRowText(0, 60,160, FONT_MID,"https://www.holtek.com.cn");
  39.         GuiRowText(0, 80,160, FONT_MID,"https://www.21ic.com");
  40.         GuiRowText(0, 100,160, FONT_MID,"id:tlled");
  41.         GuiUpdateDisplayAll();

  42.         while(1)
  43.         {
  44.                 GPIO_SetOutBits(HT_GPIOC, GPIO_PIN_14);
  45.                 delay_ms(100);
  46.                 GPIO_ClearOutBits(HT_GPIOC, GPIO_PIN_14);
  47.                 delay_ms(1000);
  48.         }
  49. }
   2.2、显示界面
    测试只在屏幕上显示了文字信息

    005.jpg
    006.jpg

    三、附件

     3.1、原理图pdf: ESK32-EXT-V1.0.PDF (603.82 KB, 下载次数: 4)
     3.2、电路板geber文件: ESK32-EXT-V1.0_GEBER.rar (117.84 KB, 下载次数: 4)
     3.3、测试程序源代码: ht32f52325_lkdgui_prj.rar (6.53 MB, 下载次数: 9)

   






打赏榜单

eltonchang2001 打赏了 10.00 元 2022-04-29
理由:开发板评测自己洗PCB板,太给力了

mutable 发表于 2022-5-17 21:39 | 显示全部楼层
都开始准备上项目了么,厉害
盗铃何须掩耳 发表于 2022-5-24 11:13 | 显示全部楼层
要是也用合泰一样颜色的油,就太帅了
rosemoore 发表于 2022-5-28 12:53 | 显示全部楼层
扩展板子效果怎么样呢
51xlf 发表于 2022-5-28 13:23 | 显示全部楼层
引脚是怎么扩展的?
mituzu 发表于 2022-5-28 13:49 | 显示全部楼层
支持arduino的板子吗/
10299823 发表于 2022-5-28 14:22 | 显示全部楼层
那个是12864的屏幕吗
earlmax 发表于 2022-5-28 15:07 | 显示全部楼层
楼主行动很迅速呢。  
linfelix 发表于 2022-6-2 14:10 | 显示全部楼层
pcb也是开源的吗?
pklong 发表于 2022-6-2 14:20 | 显示全部楼层
HT32F52352 怎么样?
pmp 发表于 2022-6-2 15:28 | 显示全部楼层
这个板子设计的真是好呢。   
tifmill 发表于 2022-6-2 17:35 | 显示全部楼层
这些接口设计的真是复杂。  
abotomson 发表于 2022-6-2 19:09 | 显示全部楼层
HT32F52352 Starter Kit不错。   
您需要登录后才可以回帖 登录 | 注册

本版积分规则

132

主题

701

帖子

7

粉丝
快速回复 在线客服 返回列表 返回顶部