
HK32 MCU Forum:https://bbs.21ic.com/iclist-1010-1.html*Reading Instructions: The following application cases are briefly introduced; for detailed evaluation processes and related source code, materials, etc., please copy the original link into your browser to view.
01
Collection of HK32F030M Series MCU Example Codes
https://bbs.21ic.com/icview-3236132-1-1.html
Basic Examples:
1. Project Template: HK32F030MF4P6_Fwlib-Template.zip2. GPIO Output: Using Firmware Library to Light Up LED.zip3. GPIO Input: Key Detection.zip4. RCC-MCO Output.zip5. EXTI: External Interrupt.zip
Extended Examples:
HK32F030MF4P6_Endian_Test.zipHK32F030MF4P6_TIM_Encoder.zipHK32F030MF4P6_Systick_Interrupt.zipHK32F030MF4P6_SPI_FLASH.zipHK32F030MF4P6_sf_I2C.zipHK32F030MF4P6_with_USMART.zipHK32F030MF4P6_IR_Decoding_Example.zipHK32F030MF4P6_NEC_IR_Remote_Simulated_IR_Remote_Control_Example.zipHK32F030M Hardware I2C Master/Slave Example Code.zipHK32F030MF4P6_PA3_PD6_USART_Timeout_Interrupt_Receive_Variable_Length_Data.zipHK32F030MF4P6_RJM101_DEMO.zipHK32F030MF4P6_Encoder_Switch_Example.zip
02
Share of HK32F030M Hardware I2C Master/Slave Example Code
https://bbs.21ic.com/icview-3235888-1-1.html
Example Code:
HK32F030Mxx_Hardware_IIC_Master.zip
HK32F030Mxx_Hardware_IIC_Slave.zip

03
HK32F030MF4P6 IR Decoding Code
https://bbs.21ic.com/icview-3166164-1-1.html
HK32F030MF4P6 hardware is compatible with STM8S003, so it can replace STM8S003.
Example Code:HK32F030MF4P6_IR_Decoding_Example.zip
04
Reference Code for RJGT101 Single Wire Communication Encryption Chip HK32F030MF4P6
https://bbs.21ic.com/icview-3161964-1-1.html
Example Code:HK32F030MF4P6_RJM101_DEMO.zip
05
HK32F030MF4P6 IR Decoding Example
https://bbs.21ic.com/icview-3160850-1-1.html

06
HK32F030MF4P6 Encoder Switch Example
https://bbs.21ic.com/icview-3160834-1-1.html
HK32F030MF4P6 Encoder Switch Example, sensitive detection, basically no false triggers.
In the serial assistant window, L indicates left rotation, R indicates right rotation, M indicates middle button pressed. Each time an L operation is detected, the variable value increases by 1; each time an R operation is detected, the variable value decreases by 1.
07
HK32F030MF4P6 OLED Example
https://bbs.21ic.com/icview-3160798-1-1.html

08
Project Template for HK32F030MF4P6 with USMART Component
https://bbs.21ic.com/icview-3158546-1-1.html
This component is ported from the examples of the Zhitian Atom’s STM32F103 development board.
Example Code:HK32F030MF4P6_with_USMART.zip
09
HK32F030F4P6, 3-Channel ADC Sampling Example (DMA Mode)
https://bbs.21ic.com/icview-3063556-1-1.html
Project Introduction: ADC1 converts the ADC values of 3 channels at once, DMA transfers the conversion results. Convert channel_0(PA0), channel_1(PA1), channel_16 (internal temperature sensor channel).
10
HK32F030MF4P6 Interrupt Sending, Interrupt Receiving, Receiving Timeout Interrupt Judgement Completion
https://bbs.21ic.com/icview-3063414-1-1.html
HK32F030MF4P6 interrupt mode sending can release the CPU without blocking it.
Receive interrupt + receive timeout interrupt can barely replace the regret of not having DMA and achieve variable length data reception.
The example code loops back the data received from the serial port. After you send a string of data, the MCU receives this string and sends it back out.
Example Code:HK32F030MF4P6_USART_INT_TX_INT_RX_with_RxTimeout.zip
11
HK32F030C8T6 IR Decoding IR_Decode Example
https://bbs.21ic.com/icview-3055776-1-1.html
A decoding program based on periodic execution has been written, which can decode as long as it is executed periodically. The biggest advantage of such a decoding program is that it does not occupy CPU resources, does not require delay functions, and is also so easy to port!
Example Code:HK32F030C8T6_IR_Decoding_Example.zip
12
HK32F030C8T6 IAR Project Template
https://bbs.21ic.com/icview-3053174-1-1.html
Example Code:HK32F030C8T6_template(IAR8.10).zip
13
HK32F030MF4P6 Using ADC Internal Reference Voltage Channel to Measure Battery Voltage
https://bbs.21ic.com/icview-3051454-1-1.html
This example uses the ADC’s internal reference voltage channel to measure the voltage of VDD. If VDD is powered directly by a battery, it can also measure the battery voltage.
Example Code:HK32F030MF4P6_ADC_Internal_Reference_Voltage.zip

Click “Read Original” to view the summary post.