MG32L003 Standard Peripherals Firmware Library
MG32L003 StdPeriph_Lib Examples
This package contains the following examples:
Note: All examples assume the selected model has a maximum frequency of 24MHz, a flash size of 64KB, and a sram size of 4KB. When using an example, please make corresponding adjustments according to the actual model used.
IP/Module Example
Name Brief description
ADC ADC_Accumulation This example Accumulations how to use ADC auto accumulation function.
ADC_ExtLinesTrigger This example describes how to trigger ADC conversion by external line event.
ADC_GetVCAP This example describes how to get internal VCAP.
ADC_MultiChannels This example describes how to sample multi-channels continuously.
ADC_TIM1 This example describes how to use TIM1 to trigger ADC conversion.
AWK AWK_DeepSleep This example describes how to use awk wakeup deepsleep mode.
AWK_Sleep This example describes how to use awk wakeup sleep mode.
BASETIM TIM10_Count This example describes how to se the counting function of TIM10.
TIM10_Timing This example describes how to se the Timing function of TIM10.
BEEP BEEP_Output This example describes how to output a buzzer signal using BEEP.
CRC CRC_Calculation This example describes how to use the CRC module to calculate the CRC checksum of byte arrays, half-word (16-bit) arrays and word (32-bit) arrays.
FLASH FLASH_EraseProgram This example describes how to program the on-chip FLASH.
GPIO GPIO_EXTI_EdgeDebounce This example describes how to toggle the GPIO output using EXTI's edge-triggered and debounce.
GPIO_EXTI_LevelTwoSync This example describes how to output GPIO level using EXTI's level-triggered and two-sync.
GPIO_I2C_Master This example describes how to use GPIO to simulate I2C protocol to read and write EEPROM 24C02.
GPIO_InputOutput This example describes how to read GPIO input and control GPIO output.
GPIO_IOToggle This example describes how to toggle the GPIO output.
I2C I2C_24c02 This example describes how to use the I2C firmware library and an driver to communicate with an EEPROM 24C02 device.
I2C_Master This example describes how to use the I2C firmware library and an driver to communicate with an EEPROM 24C02 device.
IWDG IWDG_Interrupt This example describes how to use the IWDG's interrupt.
IWDG_Reset This example describes how to use the IWDG.
LPTIM LPTIM_SleepMode This example describes how to use LPTIM wakeup MCU from sleep mode.
LPTIM_Toggle This example describes how to use LPTIM toggle output function.
LPTIM_Update_Interrupt This example describes how to use LPTIM as a timer.
LPUART LPUART_Interrupt This example describes how to use LPUART receive and send interrupts.
LPUART_Polling This example describes how to transmit and receive serial data by polling LPUART flag bits.
LPUART_Sleep This example describes how LPUART works in low-power Sleep mode.
LVD LVD_Interrupt This example Interrupts how to use LVD low power interrupt function.
LVD_Reset This example Resets how to use LVD low power reset function.
OWIRE OWIRE_Receive This example describes how to using OWIRE to receive data.
OWIRE_Receive_IT This example describes how to using OWIRE's interrupt to receive data.
OWIRE_Transmit This example describes how to using OWIRE to transmit data.
OWIRE_Transmit_IT This example describes how to using OWIRE's interrupt to transmit data.
OWIRE_TransmitReceive This example describes how to using OWIRE to transmit and receive data.
OWIRE_TransmitReceive_IT This example describes how to using OWIRE's interrupt to transmit and receive data.
PCA PCA_HighSpeed_Output This example describes how to use PCA high speed output function.
PCA_Input_Capture This example Input_Captures how use the PCA peripheral to measure the frequency of an external signal.
PCA_Output_PWM This example describes how to use PCA peripheral genetate a PWM output.
PCA_Timer This example describes how to use PCA as a timer.
PWR PWR_DeepSleep This example describes how to enters the system to DEEPSLEEP mode and wake-up from this mode using IO interrupt.
PWR_Sleep This example describes how to enters the system to SLEEP mode and wake-up from this mode using IO interrupt.
RCC RCC_Config This example describes how to configure the system clock using the external 24MHz crystal oscillator, enable the external LSE clock.
RCC_Output This example describes how to Output the system clock. Can output HSI,HSE,LSI,LSE,SYSCLK,AHB clock.
RTC RTC_Calendar This example describes how to use the RTC peripheral.
RTC_Calendar_DeepSleep_LSE This example describes how to use the RTC peripheral in deep sleep mode.
RTC_Calendar_DeepSleep_LSI This example describes how to use the RTC peripheral in deep sleep mode.
SPI SPI_Flash This example describes how to use the SPI firmware library communicate with a SPI FLASH.
SPI_Master This example describes how to transmit data with SPI master.
SPI_Slave_IT This example describes how to transmit data with interrupt of SPI slave.
SYSTICK SYSTICK_Example This example describes how to configure the SysTick to generate a time base equal to 1 ms.
TIM TIM1_6Steps_Output This example describes how to generate PWM 6-step output using the TIM1 peripheral.
TIM1_7PWM_Output This example describes how to configure a TIM1 peripheral to generate a 7-channel PWM signal with the same frequency and 7 different duty ratios.
TIM1_Base This example describes how to toggle the GPIO output.
TIM1_Encoder This example describes how to use the encoder mode of TIM1.
TIM1_Input_Capture This example describes how to measure the width of a high level using the input capture feature of TIM1.
TIM1_PWM_ComDeadBreak This example describes how to use TIM1 complementary channel, dead zone insertion, and brake functions.
TIM1_PWM_Input This example describes how to measure the frequency and duty cycle of an external signal using TIM1.
TIM1_PWM_Output This example describes how to use TIM1 to generate two PWM waves with the same frequency and different duty ratios.
UART UART_Interrupt This example describes how to use UART receive and send interrupts.
UART_IRDA This example describes how to use the UART IrDA Mode.
UART_Polling This example describes how to transmit and receive serial data by polling UART flag bits.
UART_Printf This example describes how to retarget the standard input and output function to the UART1.
UART_Polling_Parity This example demonstrates how to use the polling method with UART flags to send and receive serial data with parity bit.
VCMP VCMP_Application This example describes how to use VCMP peripheral to compare two voltages.
VCMP_OutputConfig_LPTIM_Gate This example describes how to put VCMP comparation outcome into LPTIM timer gate.
WWDG WWDG_Interrupt This example describes how to use the WWDG's interrupt.
WWDG_Reset This example describes how to use the WWDG.

© COPYRIGHT 2023 megawin Technology