toothache

【CW32】Clock display based on CW32

 
Overview

Introduction

I originally planned to make a brushless driver, but later I found that there was a problem with the output of the gate driver IC of the driver board. Since I only had a multimeter in hand, the debugging circuit could not solve the problem, so I used the control board to make a clock display. By getting the RTC clock, I got the current The date and time will be displayed on the LCD. The time can be changed through the serial port software.

Design plan and presentation

This solution uses CW32F030 as the main controller to generate PWM drive inverter to control the brushless motor. The driving scheme uses EG2134 as the gate driver IC, and the MOS uses IRFH7440TRPBF (40V, 85A). The drive board is equipped with reverse electromotive force detection, bus current, A-phase and B-phase current detection. Powered by 12V model aircraft lithium battery.

June 1st: The output PWM was debugged in the evening, the driver board was welded, and connected for testing. The driver board is smoking.

CW32 brushless

6.10: After testing the driver for several days, I found that there are many problems and it cannot be used. The design is changed to the main control board clock display.

Implement function

1. RTC time: Get the current time information by obtaining the RTC real-time clock. Turn on the RTC1Hz interrupt to periodically refresh the current time information.

2. Serial port communication: Set the time and date through serial port 2.

3. LED flashing LED flashing is used to indicate that the system is operating normally.

4. LCD display: The screen is a 1.54-inch LCD screen from Zhongjingyuan. It communicates through SPI. Initially, I wanted to use hardware SPI to control the screen. Later, after transplantation, I found that it could not be used, so I changed to using software SPI to control it. The system clock uses a frequency of 64MHz, and it also has a certain refresh rate when running software SPI, which can ensure that there is no too high visual delay.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-24 13:44:01

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号