Lemontree

[Hangshun Training Camp] Learning board design based on Hangshun HKF030

 
Overview

Learning board design based on Hangshun HKF030 to verify chip functions

Physical map

tkfBKhVmAmu6MwiUoeEAYN0XQ7Nblfsjlxsu0FHD.jpegThe device purchased from Lichuang Mall was lost by express delivery, and we are still negotiating.

1. Verification board function

  • Main control: Hangshun HK32F030c8t6, ​​48-pin, 64K Flash (domestic chip with M0 core, domestically produced)
  • Power supply: USB-TypeC power supply, regulated to 3.3V by AMS1117 to power the system
  • Serial port: adopts CH340E, small package, does not occupy space
  • Digital tube: 4-bit common cathode digital tube is used, the driver chip is TMP1650, and the IIC interface is used for driving
  • Display: 0.96-inch OLED display, IIC interface driver
  • Buzzer: Electromagnetic active integrated buzzer HNB09A03, size 9x5.5mm
  • Temperature and humidity: DHT11, single line control, more commonly used
  • Infrared: The transmitter uses IR928-6C with a wavelength of 940nm; the receiver uses TSDP34138

2. Detailed introduction

1. Main control

  The main control adopts Hangshun HK32F030C8T6. Let’s first understand the background of chip production: Shenzhen Hangshun Chip Technology Research Co., Ltd. has developed and designed three series of chips: HK32F030, HK32F031, and HK32F03X based on ARM Cortex-M0, collectively referred to as the HK32F03x product line. When choosing a certain MCU, you must first understand your needs, and then choose the appropriate MCU model based on your needs. Here are some main parameters of this chip:

  • Power supply: 2.0V ~ 5.5V
  • Stop standby power consumption: 10uA@3.3V
  • Clock: (all clock sources of the chip can be selected as system clock)
    • External HSE: supports 4~16MHz crystal oscillator, typical 8MHz crystal oscillator
    • External LSE: 32.768KHz crystal oscillator
    • On-chip RC oscillator clock: 8MHz/14MHz/56MHz configurable
    • On-chip LSI clock: 40KHz
  • ADC converter: 12-bit, 16 external analog signal input channels
  • Temperature sensor: Analog output internally connected to separate channel of A/D converter
  • SWD debug port
  • Universal serial communication interface: 2 USART, 2 high-speed SPI, 2 I2C
  • Timer: TIME1 has 6-channel PWM output, TIM3/TIM14/TIM15/TIM16/TIM17 general timer, TIM6 basic timer
  • General IO: Up to 55 GPIO pins, all GPIO pins can be configured as external interrupt inputs, providing up to 20mA drive current. Knowing the above information, you basically understand the resources of an MCU. More detailed content needs to be discussed in During the development process, refer to: Hangshun HK32F030C8T6 Reference Manual .

2. Power supply

  The power supply interface uses a TYPE-C3.1 female socket with 16 contacts, which should be enough to power the entire system. The voltage stabilizing chip selected is the linear voltage regulator AMS1117. AMS1117 is a positive voltage output low voltage drop three-terminal linear voltage regulator circuit with a voltage drop of 1.2V at 1A output current. Assuming that the input terminal is 5V, under 1A operating current, the system operating voltage can be reached 3.3V, which meets the system requirements.

3. Serial port

  The size of CH340E is MSOP-10 package, which is smaller than SOP8 size. It contains the most commonly used serial port signals and has a 485 transceiver enable pin TNOW to support 3.3V or 5V power supply.

4. Digital tube

  The digital tube uses a 0.56-inch four-digit common cathode digital tube, the display color is red, and the power consumption is about 50mW. The driver chip is TMP1650, supports 2.8V-5.5V power supply voltage, and uses IIC interface for driving. TM1650 is a dedicated circuit for driving and controlling LED (light emitting diode display) with keyboard scanning interface. Internally integrated MCU input and output control digital interface, data latch, LED driver, keyboard scanning, brightness adjustment and other circuits. TM1650 has stable performance, reliable quality and strong anti-interference ability, and can be suitable for 24-hour long-term continuous working applications. The reason for using TMP1650 to drive the digital tube is to save IO ports and use IIC communication. The detailed IIC communication protocol can be viewed in the data sheet .

5. Display

  It is the most commonly used 0.96 OLED screen, driven by IIC or SPI. The attachments include drivers, which contain OLED usage routines for commonly used MCUs such as STC51, STM32, and Arduino. Personal test, can be used.

6. Buzzer

  The buzzer uses an active buzzer, which is easy to drive. NPN transistors are used for driving, and the transistors are S9013 to enhance the IO driving capability.

7. Temperature and humidity

  DHT11 digital temperature and humidity sensor is a temperature and humidity composite sensor with calibrated digital signal output. It applies dedicated digital module acquisition technology and temperature and humidity sensing technology to ensure that the product has extremely high reliability and excellent long-term stability, low cost, relative humidity and temperature measurement, ultra-fast response, strong anti-interference ability, and ultra-long signal transmission distance, digital signal output, precise calibration. The sensor includes a capacitive humidity sensing element and an NTC temperature measuring element, and is connected to a high-performance 8-bit microcontroller. Can be used in HVAC, dehumidifiers, testing and inspection equipment, consumer products, automobiles, automatic controls, data loggers, weather stations, home appliances, humidity regulators, medical, and other related humidity detection and control.

8. Infrared

  The transmitter uses IR928-6C, the wavelength is 940nm, its forward voltage is 1.2V, and the operating current is 50mA. The HK32F030C8T6 pin cannot provide such a large current, so when driving it, a three-stage tube is used for driving. The transistor uses the same NPN type S9013 transistor as the buzzer, and controls the infrared emitted signal through the PB1, TIME3_CH4, and PWM pins. The infrared receiver is TSDP34138, whose operating temperature range is -25℃~85℃, which meets the needs of daily use. When it receives a signal with a frequency of 38KHZ, the pin outputs a high level, otherwise the output is a low level. For detailed protocols about infrared, please refer to (just understand the NEC protocol): Detailed explanation of several infrared protocols

9. Others

  • Because it is a learning board, all IOs are introduced, and all IOs are marked at the corresponding pin headers, LEDs, buttons, and test points to facilitate development and debugging.

3. Insights from participating in this training camp

  • I don’t have time to watch videos during the day and work overtime at night (actually I’m too good at it). I basically didn’t have time to watch the live broadcast this time. I went back to the dormitory at night and hurriedly watched the video and drew it according to Mo Gong’s schematics. Fortunately, I had participated in a training camp before, so part of the circuit was already ready-made. I am very fortunate to have persisted in watching the live broadcast replay, persisted in drawing the schematic diagram, soldered the components before handing in the homework, and basically completed the project introduction at 00:07:34 on March 30, 2021. Of course, there are still regrets, that is, some components have not been soldered because they are missing, and the program debugging has basically not been carried out yet, and more work is needed.
  • Lichuang actually cultivates a habit in each training camp: writing relevant documents in time after completing the project and summarizing the project. I didn’t write anything before the training camp, so I didn’t do well. I’ll keep working hard in the future.
  • Finally, I would like to thank the staff of Lichuang EDA, Hangshun, and Innovation Workshop such as Mo Gong, Liu Gong, and Xiao Juzi. It must be very annoying to answer various small questions, review projects, and issue coupons every day.
  • I hope Lichuang’s activities can be of higher quality and teach more about hardware related knowledge.
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-15 16:25:54

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号