梦溪开物 发表于 2021-3-26 15:10

【HC32F460开发板测评】(第一篇)HC32F460开发板的初次相识

本帖最后由 梦溪开物 于 2021-5-10 19:53 编辑

<p><span style="font-size:24px;">一、实物展示</span></p>

<p><span style="font-size:12px;">&nbsp; &nbsp;</span><span style="font-size:16px;">&nbsp; &nbsp; &nbsp; 周末收到华大的HC32F460开发板了,板子做得非常紧凑,使用的都是一些0603的贴片电容、贴片电感和贴片电阻。所有元器件都放在了正面,接口基本上放在了板子边沿位置,整体上非常美观。有两点不足,第一点是,丝印字太小了,看得比较累;第二点是小屏幕有点歪斜松垮,可能会接触不良,这是让人很担心的一点。开发板正反面图如图1-1和图1-2所示。</span></p>

<p></p>

<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;图1-1 开发板正面图</p>

<p>&nbsp;</p>

<p></p>

<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;图1-2 开发板反面图</p>

<p>&nbsp;</p>

<p><span style="font-size:24px;">二、功能框图</span></p>

<p><span style="font-size:16px;">&nbsp; &nbsp; &nbsp; 华大的HC32F460开发板的功能框图如图2-1所示。部分外设用红框在实物图上标示了出来,如图2-2所示。刚收到开发板的时候,板上插了一个很大的模块,刚开始以为是调试器,后来查了一下手册【1】,发现是SMART CARD,之前也没使用过这个模块,这次正好可以学习一下。</span></p>

<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 图2-1 功能框图</p>

<p>&nbsp;</p>

<p></p>

<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;图2-2 实物图功能展示</p>

<p>&nbsp;</p>

<p><span style="font-size:24px;">三、入门学习</span></p>

<p>&nbsp; &nbsp; &nbsp; &nbsp;<span style="font-size:16px;">看了华大给出的关于HC32F460开发环境使用手册【2】,有keil和IAR两种开发环境,但是看到大多数程序都是基于IAR软件的,所以为了方便学习,也下载了IAR的ARM版本编译器,软件界面如图3-1所示。下载了官方提供的程序源码文件【3】,发现有template和dll两个文件夹,看了手册以后发现,template是模板工程,用户可以在改模板上添加需要的文件以便快速开发;而dll是例程文件,用户可以通过例程中的程序实现快速入门。既然是上手入门,就先从例程学起吧。开始GPIO流水灯的测试。</span></p>

<p></p>

<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;图3-1 IAR界面</p>

<p>&nbsp;</p>

<p>&nbsp; &nbsp; &nbsp; &nbsp;<span style="font-size:16px;">&nbsp;原厂对于这次的测评没有提供仿真下载器,所以找了实验室前人用的用于STM32的SWD下载器,让后转接JTAG口到HC32F460开发板上。仿真器如图3-2所示,GPIO的流水灯例程结果运行如图3-3所示。该程序就是每隔一段时间切换一组灯的状态,例如LED0_TOGGLE()函数,它是一个一组GPIO口状态的宏定义:#define &nbsp;LED0_TOGGLE() &nbsp; &nbsp;(PORT_Toggle(LED0_PORT, LED0_PIN))。</span></p>

<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;图3-2 SWD转JTAG</p>

<p>&nbsp;</p>

<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;图3-3 流水灯运行图</p>

<p>&nbsp;</p>

<p><span style="font-size:24px;">四、总结</span></p>

<p><span style="font-size:16px;">&nbsp; &nbsp; &nbsp; &nbsp;华大的HC32F460开发板总体来说,提供的中文资料还是非常详细的,所以对于新手的入门帮助极大。要是华大那边能够提供仿真器就更好了。</span></p>

<p>&nbsp;</p>

<p><span style="font-size:24px;">五、参考文献</span></p>

<p>【1】华大半导体有限公司.EV-HC32F460-LQFP100设计文件.zip.(2020).https://bbs.eeworld.com.cn/data/attachment/elecplay/upload/file/20210225/1614242516950924.zip.</p>

<p>【2】华大半导体有限公司.HC32F460系列的MCU开发工具用户手册Rev1.0.pdf.(2020).https://bbs.eeworld.com.cn/data/attachment/elecplay/upload/file/20210225/1614242486880105.pdf.</p>

<p>【3】华大半导体有限公司.hc32f46x_ddl_Rev1.3.0.zip.(2020).https://bbs.eeworld.com.cn/data/attachment/elecplay/upload/file/20210225/1614242626111594.zip.</p>

w494143467 发表于 2021-3-27 10:34

<p>不错哈,这个板子的可玩性还是挺高的,期待后续测评帖!!!</p>

Jacktang 发表于 2021-3-28 16:49

<p>华大仿真下载用STM32的SWD下载器,直接用了么,软件哪里不用设置么</p>

littleshrimp 发表于 2021-3-28 17:48

<p>读卡器上边再粘一块屏幕就帅了</p>

梦溪开物 发表于 2021-5-6 09:35

Jacktang 发表于 2021-3-28 16:49
华大仿真下载用STM32的SWD下载器,直接用了么,软件哪里不用设置么

<p>我是直接用的,用的IAR软件,没有设置什么参数</p>

freebsder 发表于 2021-5-6 16:18

<p>第一次看到国产芯片默认提供iar环境的。。。</p>

pijiu 发表于 2021-5-19 17:10

请问这个哪里可以买到啊
页: [1]
查看完整版本: 【HC32F460开发板测评】(第一篇)HC32F460开发板的初次相识