QQT912/新单片机-CW32L012/MCU厂资料/CW32L012_StandardPeripheral.../Examples/GTIM/gtim_timer
yuquanjun ddb927ee30 Initial: CW32F030 reference + CW32L012 BLDC port
Add working CW32F030 BLDC Hall PID reference firmware and port the application to CW32L012 with Keil MDK project QQT912_L012.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 04:31:26 +08:00
..
EWARM Initial: CW32F030 reference + CW32L012 BLDC port 2026-07-05 04:31:26 +08:00
MDK Initial: CW32F030 reference + CW32L012 BLDC port 2026-07-05 04:31:26 +08:00
USER Initial: CW32F030 reference + CW32L012 BLDC port 2026-07-05 04:31:26 +08:00
readme.txt Initial: CW32F030 reference + CW32L012 BLDC port 2026-07-05 04:31:26 +08:00

readme.txt

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

示例目的:
          演示GTIM的定时器功能

硬件资源:
          1. CW32L012FxPx StartKit
          2. 时钟HSI
          3. 系统时钟设置为HSI,24分频,96MHz/24=4MHz,PCLK、HCLK不分频,
             PCLK=HCLK=SysClk=4MHz
          4. GTIM1的分频系数1000-1,ARR设置200-1,则GTIM1每50ms溢出一次          
          5. 设置PB08为PUSH-PULL输出,驱动LED2

演示说明:
          程序运后,PB08每50ms翻转一次,驱动LED2以10HZ的频率闪烁
          
使用说明:
+ EWARM
          1. 打开project.eww文件
          2. 编译所有文件:Project->Rebuild all
          3. 载入工程镜像:Project->Debug
          4. 运行程序:Debug->Go(F5)

+ MDK-ARM
          1. 打开project.uvproj文件
          2. 编译所有文件:Project->Rebuild all target files
          3. 载入工程镜像:Debug->Start/Stop Debug Session
          4. 运行程序:Debug->Run(F5)